JanetDocsI'm feeling luckyGithub sign in

type



    cfunction

    (type x)
    
    Returns the type of x as a keyword. x is one of
      :nil
      :boolean
      :number
      :array
      :tuple
      :table
      :struct
      :string
      :buffer
      :symbol
      :keyword
      :function
      :cfunction
    
    or another keyword for an abstract type.


1 exampleSign in to add an example
Loading...
(map type [nil true 42 [] @[] {} @{} "a" @"b" 'c :d identity (fn [])])
# => @[:nil :boolean :number :tuple :array :struct :table :string :buffer :symbol :keyword :function :function]
cellularmitosis