From d046c7d20fd283c90495d3af4bb53d1cfb2a0812 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Thu, 8 Aug 2024 14:44:48 +0100 Subject: misc --- doc.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'doc.txt') diff --git a/doc.txt b/doc.txt index d65c981..0c84bcc 100644 --- a/doc.txt +++ b/doc.txt @@ -40,17 +40,20 @@ (clock): clock(3) (say x): print representation of x, followed by newline (write x): print representation of x, with no newline + (writebytes a): a is a list of nums in [0,255] (arr): create new empty array - (append a x): appends to array a, returns a - (len a): get length of array a + (append! a x): appends to array a in place, returns a + (# a): get length of array a (, ...): pend. concatenates arrays, promotes non-arrays to arrays (, [1 2 3] 4) -> [1 2 3 4] (, [1 2 3] [4 5]) -> [1 2 3 4 5] (, 10 20) -> [10 20] etc + (s, ...): spend. concatenates strings # cmdline args bth [-Dl] [-Dt] filenames... -Dl: print bytecode listing before execution -Dt: trace each executed bytecode instruction + -Ds: dump read s-expressions filename "-" can be provided to mean stdin. -- cgit v1.2.3