JanetDocsPlaygroundI'm feeling luckyGitHub sign in

string/trimr



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

    (string/trimr str &opt set)

    Trim trailing 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/trimr " foo ")  # => " foo"
(string/trimr "_!_foo_!_" "_!")  # => "_!_foo"
cellularmitosisPlayground