JanetDocsSourcePlaygroundI'm feeling luckyCommunityGitHub sign in

dictionary?

core-api


    cfunction
    src/core/corelib.c on line 688, column 1

    (dictionary? x)

    Check if x is a table or struct.


1 exampleSign in to add an example
Loading...
(map dictionary? [ 'ab   :ab   "ab"   @"ab"  [97 98]  @[97 98]  {0 97 1 98}  @{0 97 1 98}  ])
# =>            @[ false false false  false  false    false     true         true          ]

(map struct?     [ 'ab   :ab   "ab"   @"ab"  [97 98]  @[97 98]  {0 97 1 98}  @{0 97 1 98}  ])
# =>            @[ false false false  false  false    false     true         false         ]

(map table?      [ 'ab   :ab   "ab"   @"ab"  [97 98]  @[97 98]  {0 97 1 98}  @{0 97 1 98}  ])
# =>            @[ false false false  false  false    false     false        true          ]
cellularmitosisPlayground