JanetDocsSourcePlaygroundTutorialsI'm Feeling luckyCommunityGitHub sign in

string/check-set

core-api


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

    (string/check-set set-bytes bytes)

    Checks that only bytes from `set-bytes` are contained in `bytes`. 
    Returns true if all bytes in `bytes` appear in `set-bytes` or false 
    if at least one byte in `bytes` does not appear in `set-bytes`. 
    Both arguments are bytes types.


1 exampleSign in to add an example
Loading...
(string/check-set "0123456789abcdef" "deadbeef") # => true
sogaiuPlayground