JanetDocsPlaygroundI'm feeling luckyGitHub sign in

symbol/slice



    cfunction
    src/core/string.c on line 187, column 1

    (symbol/slice bytes &opt start end)

    Same a string/slice, but returns a symbol.


1 exampleSign in to add an example
Loading...
(def s (symbol/slice :hello 2 4))

(print (type s)) # symbol
(print s)        # ll
wrqPlayground