![]() |
![]() |
|
Instructions:
str+for
string-append,
str=?for
string=?,
def/cfor
define/contract,
def-str/cfor
define-struct/c,
mk-…for
make-…, and
nat?for
natural?.
// Java: boolean hasNext( String s ) /* Is the next token equal to `s` (or, matches `s` as a regex)? Consumes no input. */ boolean hasNextDouble() /* Is the next token a numeral? Consumes no input. */ String next() /* Return the next token from the input stream, consuming it. */ String next( String s ) /* Return the next token from the input stream, consuming it; throw exception if the token doesn't match the regular expression `s`. */ boolean nextDouble() /* Return the next token from the input stream as a double, consuming it. */ ;; Racket: |
This page licensed CC-BY 4.0 Ian Barland Page last generated | Please mail any suggestions (incl. typos, broken links) to ibarland ![]() |