JanetDocsPlaygroundI'm feeling luckyGitHub sign in

keyword



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

    (keyword & xs)

    Creates a keyword by concatenating the elements of `xs` together. 
    If an element is not a byte sequence, it is converted to bytes via 
    `describe`. Returns the new keyword.


4 examplesSign in to add an example
Loading...
(->> ["small" "cuddly" "creature"]
     (interpose "-")
     splice
     keyword)
# => :small-cuddly-creature
sogaiuPlayground
(keyword :)
# => :
sogaiuPlayground
(keyword)
# => :
sogaiuPlayground
(keyword "")
# => :
sogaiuPlayground