JanetDocsI'm feeling luckyGithub sign in

string/find



    cfunction

    (string/find patt str)
    
    Searches for the first instance of pattern patt in string str. Returns
    the index of the first character in patt if found, otherwise returns
    nil.


1 exampleSign in to add an example
Loading...
(string/find "needle" "hay hay hay needle hay") # => 12
sogaiu