time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

repl.txt (778B)


      1 
      2 {{alias}}( str[, keepWhitespace] )
      3     Tokenizes a string.
      4 
      5     To include whitespace characters (spaces, tabs, line breaks) in the output
      6     array, set `keepWhitespace` to `true`.
      7 
      8     Parameters
      9     ----------
     10     str: string
     11         Input string.
     12 
     13     keepWhitespace: boolean (optional)
     14         Boolean indicating whether whitespace characters should be returned as
     15         part of the token array. Default: `false`.
     16 
     17     Returns
     18     -------
     19     out: Array
     20         Array of tokens.
     21 
     22     Examples
     23     --------
     24     > var out = {{alias}}( 'Hello Mrs. Maple, could you call me back?' )
     25     [ 'Hello', 'Mrs.', 'Maple', ',', 'could', 'you', 'call', 'me', 'back', '?' ]
     26 
     27     > out = {{alias}}( 'Hello World!', true )
     28     [ 'Hello', ' ', 'World', '!' ]
     29 
     30     See Also
     31     --------
     32