JanetDocsPlaygroundI'm feeling luckyGitHub sign in

abstract?



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

    (abstract? x)

    Check if x is an abstract type.


1 exampleSign in to add an example
Loading...
(abstract? (file/temp))  # => true
(abstract? (int/s64 1))  # => true

(map abstract?  [ nil true 97 'a :a "a" ])
# => @[false false false false false false]

(map abstract?  [ [97]  @[97]  {0 97}  @{0 97} ])
# => @[false false false false]

(map abstract?  [ even? loop file/open  (fn [])  ])
# => @[false false false false]

(map abstract?  [ (file/temp)  (fiber/new (fn []))  ])
# => @[true false]
cellularmitosisPlayground