JanetDocsSourcePlaygroundTutorialsI'm Feeling luckyCommunityGitHub sign in

string/triml

core-api


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

    (string/triml str &opt bytes)

    Trim leading whitespace from a byte sequence `str`. If argument 
    `bytes` is provided, treat only characters in `bytes` as 
    whitespace.


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