JanetDocsPlaygroundI'm feeling luckyGitHub sign in

string/triml



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

    (string/triml str &opt set)

    Trim leading whitespace from a byte sequence. If the argument `set` 
    is provided, consider only characters in `set` to be whitespace.


1 exampleSign in to add an example
Loading...
(string/triml " foo ")  # => "foo "
(string/triml "_!_foo_!_" "_!")  # => "foo_!_"
cellularmitosisPlayground