diff options
author | Case Duckworth | 2023-08-09 22:00:31 -0500 |
---|---|---|
committer | Case Duckworth | 2023-08-09 22:00:31 -0500 |
commit | 14847f7800a477544df8ea16bf5fec1d9ceddea0 (patch) | |
tree | b974ec83fa0670014a0277451fa05ea0ba49f977 /README.md | |
parent | Update README (diff) | |
download | chicanery-14847f7800a477544df8ea16bf5fec1d9ceddea0.tar.gz chicanery-14847f7800a477544df8ea16bf5fec1d9ceddea0.zip |
Add with-{input-from,output-to}-string
Inspired by CHICKEN
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md index c8b1fcd..c275ffb 100644 --- a/README.md +++ b/README.md | |||
@@ -34,6 +34,8 @@ Other extras include | |||
34 | - `(read-port)`, `(read-port port)` reads a port until hitting end-of-file (IDK | 34 | - `(read-port)`, `(read-port port)` reads a port until hitting end-of-file (IDK |
35 | why this isn't in R7RS!), in chunks of `read-port-chunk-size` | 35 | why this isn't in R7RS!), in chunks of `read-port-chunk-size` |
36 | - `(defined? x)` returns whether the symbol `x` is bound to a variable | 36 | - `(defined? x)` returns whether the symbol `x` is bound to a variable |
37 | - `(with-input-from-string str thunk)` calls `thunk` with `str` bound as the current-input-port. | ||
38 | - `(with-output-to-string thunk)` calls `thunk` and returns a string of the output. | ||
37 | - `(displayed x)`, `(->string x)` returns `x` as a string (via `display`) | 39 | - `(displayed x)`, `(->string x)` returns `x` as a string (via `display`) |
38 | - `(written x)` returns `x` as a string (via `write`) | 40 | - `(written x)` returns `x` as a string (via `write`) |
39 | - `(print x ...)` displays `x ...` followed by a newline | 41 | - `(print x ...)` displays `x ...` followed by a newline |