JanetDocsI'm feeling luckyGithub sign in

abstract?



    cfunction

    (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]
cellularmitosis