(*builtins* #(NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL #fn("n10<:" 5) #fn("n10=:" 5) NIL NIL NIL NIL #fn("n10B:" 5) NIL NIL NIL NIL NIL #fn("n10H:" 5) NIL NIL NIL #fn("z0700}2:" #(<) 6) NIL #fn("n201N:" 6) NIL #fn("n201P:" 6) #fn("n201Q:" 6) #fn("n10R:" 5) #fn("n10S:" 5) #fn("n10T:" 5) NIL #fn("n10V:" 5) NIL #fn("n10X:" 5) #fn("n10Y:" 5) #fn("n10Z:" 5) #fn("n10[:" 5) #fn("n10\\:" 5) #fn("n10]:" 5) NIL #fn("n201_:" 6) NIL NIL NIL #fn("n201c:" 6) #fn("n201d:" 6) #fn("z00:" 4) #fn("z0700}2:" #(apply) 6) #fn("z0700}2:" #(+) 6) #fn("z0700}2:" #(-) 6) #fn("z0700}2:" #(*) 6) #fn("z0700}2:" #(/) 6) #fn("z0700}2:" #(div0) 6) #fn("z0700}2:" #(=) 6) #fn("n201m:" 6) NIL #fn("z0700}2:" #(vec) 6) #fn("z0700}2:" #(aset!) 6) NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL #fn("z0700}2:" #(aref) 6) NIL #fn("n201\x87:" 6)) *properties* #table(*formals-list* #table(append (lists) io-eof? ((io)) path-exists? ((path)) cadddr ((lst)) scanl ((fn zero lst)) sort ((lst less-than? (:key identity))) fixnum? ((v)) exit (((status NIL))) __finish ((status)) caaar ((lst)) s32 (((n 0))) u8 (((n 0))) any ((pred lst)) nthcdr ((lst n)) os-getenv ((name)) s8 (((n 0))) io-close ((io)) io-line! ((io new-line-number)) num? ((v)) assert ((expr)) vec->list ((vc)) 1+ ((n)) throw ((tag value)) positive? ((n)) atan ((x) (y x)) remprop ((symbol key)) io-copy-until ((io-dest io-src r)) delete-file ((path)) cdddar ((lst)) set-cdr! ((cell new-second)) stacktrace (NIL) eq? ((a b)) io->str ((io)) bound? ((sym)) list->vec ((lst)) def ((form body₀ . rest) (id expr)) odd? ((n)) list? ((v)) str-rep ((term k)) time ((expr)) size-of ((v)) sym ((term . rest)) tanh ((r)) for ((start limit fn)) begin (body) const? ((term)) str-trim ((s (lead-pred rune-whitespace?) (trail-pred lead-pred))) io-pos! ((io new-position)) return (((value (void)))) tan ((r)) table (rest) __rcscript (NIL) doc-group ((group-name doc)) cdaaar ((lst)) bounds-error ((seq index . msg)) even? ((n)) zero? ((n)) proper-list? ((v)) io-filename! ((io new-name)) random ((max)) reverse! ((lst)) eval ((x)) cdaadr ((lst)) u32 (((n 0))) cons ((first second)) filter ((pred lst)) assq ((key lst)) io-buffer-mode! ((io)) del! ((table key)) when ((cond . body)) vec? ((v)) min ((v . rest)) cddaar ((lst)) num->str ((n (:base 10))) io? ((term)) eof-object? ((v)) help ((topic (:print-header help-print-header) . rest)) mod ((a n)) if ((cond then . else)) p32 (((n 0))) io-read-lines ((io)) io-line ((io)) sym-set-doc ((symbol doc-seq . formals-list)) macrocall? ((e)) trycatch ((try catch)) iterate ((fn zero n)) table-values ((ta)) macroexpand ((e)) caadr ((lst)) type-of ((v)) top-level-value ((sym)) defstruct ((name docs… options… (slot-1 DEFAULT) slot-2 slot-3) (name (:type vec) (:named T) (:constructor T) (:conc-name T) (:predicate T) . slots)) caadar ((lst)) foldl1 ((fn lst)) buffer (NIL) assoc-list (kvs) builtin? ((v)) str-map ((fn s)) macroexpand-1 ((e)) str (terms) negative? ((n)) void (rest) assert-fail ((expr . what)) io-read-line ((io)) and (rest) 1- ((n)) io-buffer-mode ((io)) equal? ((a b)) unquote ((expr)) cddar ((lst)) or (rest) = ((n . rest)) fn? ((v)) caaadr ((lst)) make-system-image ((filename)) subseq ((seq start (end NIL))) set! ((id expr . rest)) vm-stats (((io *io-out*))) ptr (((n 0))) caddar ((lst)) print-stack-trace ((st)) cosh ((x)) < ((v . rest)) copy-tree ((lst)) f32 (((n 0.0))) sin ((r)) io-copy ((io-dest io-src (n NIL))) delete-duplicates ((lst)) > ((v . rest)) str-rune ((s n)) scanl1 ((fn lst)) foldl ((fn zero seq)) with-output-to ((io . body)) abs ((n)) str? ((v)) cons? ((v)) str-split ((str (sep " \n\t\v\f") (:trim NIL))) io-read ((io type (endian +endianness+)) (io type (n NIL) (endian +endianness+))) aset! ((sequence subscripts… new-value)) - ((n . rest)) makunbound ((sym)) io-truncate ((io nbytes)) rand (NIL) quasiquote ((expr)) io-column! ((io new-column-number)) copy-list ((lst (n NIL))) logand (ints) time-now (NIL) sinh ((r)) top-level-exception-handler ((e)) identity ((v)) untrace ((sym)) count ((pred lst)) io-pos ((io)) map-int ((fn count)) table->assoc-list ((ta)) length< ((seq n)) unless ((cond . body)) str->time ((str)) get-syntax ((sym)) ptr? ((v)) expt ((x p)) io-read-all ((io)) gc (NIL) io-write ((io v (endian +endianness+))) table-invert ((ta)) lz-unpack ((data :to destination) (data :size decompressed-bytes)) div ((a n)) princ (args) last-cdr ((lst)) trace ((sym)) io-filename ((io)) gensym? ((v)) defdoc ((term . doc)) cdddr ((lst)) copy-table ((ta)) set-car! ((cell new-first)) partition ((pred lst)) has? ((table key)) vec (rest) while ((cond . body)) rune (((n 65533))) cadar ((lst)) type-error ((expected-type got-value . msg)) file ((path (mode 420) (:read NIL) (:write NIL) (:create NIL) (:truncate NIL) (:append NIL))) nth ((lst n)) cdr ((lst)) / ((n . rest)) newline (((io *io-out*))) separate-doc-from-body ((body (doc NIL))) rand-u64 (NIL) cdadar ((lst)) sqrt ((x)) foldr ((fn zero seq)) reverse ((lst)) lz-pack ((data (level 0))) *prompt* (NIL) member ((item lst)) bignum? ((v)) fixnum (((n 0))) f64 (((n 0.0))) memq ((item lst)) str->num ((s (base NIL))) exp ((p)) caaaar ((lst)) io-column ((io)) traced? ((fn)) s64 (((n 0))) io-flush ((io)) assoc ((key lst)) + (rest) cadadr ((lst)) foldr1 ((fn lst)) compare ((a b)) error (msg) print-exception ((e)) set-top-level-value! ((sym expr)) load ((path/io)) getpid (NIL) keyword? ((v)) aref ((sequence subscript0 . rest)) sym? ((v)) defmacro ((form . body)) u64 (((n 0))) assv ((key lst)) bignum (((n 0))) copy-vec ((vec)) eqv? ((a b)) list (rest) __init_globals (NIL) rand-u32 (NIL) revappend ((lst tail)) quote ((expr)) nreconc ((lst tail)) defc*r ((name)) read-all-of ((fn io)) cddddr ((lst)) prog1 ((expr . rest)) logior (ints) cadr ((lst)) cdadr ((lst)) nan? ((v)) caar ((lst)) div0 ((a n)) set-syntax! ((sym fn)) mod0 ((a n)) last-pair ((lst)) path-cwd (((to NIL))) arr? ((v)) cadaar ((lst)) unwind-protect ((expr finally)) cos ((r)) io-skip ((io offset (:end NIL))) every ((pred lst)) atom? ((v)) p64 (((n 0))) str-utf8? ((s)) apply ((f arg . rest)) cddr ((lst)) not ((v)) print (args) cdar ((lst)) cdaar ((lst)) iota ((count (start 0) (step 1))) caaddr ((lst)) environment (NIL) getprop ((symbol key (def NIL))) putprop ((symbol key val)) * (rest) rand-f32 (NIL) repl (NIL) io-read-until ((io r)) get ((table key (failed-result))) table? ((v)) u16 (((n 0))) logxor (ints) acos ((x)) time->str ((sec)) caddr ((lst)) to-proper ((lst)) table-keys ((ta)) catch ((tag expr)) __start ((argv interactive)) floor ((x)) add-exit-hook ((fn)) str-join ((strlist sep)) >= ((v . rest)) lognot ((int)) void? ((v)) length= ((seq n)) int? ((v)) nanoseconds-monotonic (NIL) io-discard-buffer ((io)) with-input-from ((io . body)) car ((lst)) <= ((v . rest)) ceiling ((x)) arr ((type . rest)) length> ((seq n)) arg-error (msg) asin ((x)) put! ((table key value)) log ((x (base (exp 1)))) cdaddr ((lst)) ash ((int nbits)) str-sub ((s start (end NIL))) cddadr ((lst)) memv ((item lst)) max ((v . rest)) closure? ((v)) read-all ((io)) rand-f64 (NIL) help-print-header ((term sigs (:kind NIL) (:lpad ""))) sleep ((sec)) s16 (((n 0))) rune? ((v)) os-setenv ((name value)) __script ((path))) *doc* #table(append "Return the concatenation of the arguments.\n\nLists are copied, except the last one, which becomes the `cdr` of the\nfinal dotted pair. It's returned as is if it was the only argument.\nNo lists are changed in-place.\n\nExamples:\n\n (append '(1) '(2 3) '(4))\n ; ↳ (1 2 3 4)\n\n (append '(1))\n ; ↳ (1)" (doc group error) "Errors and exception handling." io-eof? "Return `T` if `io` is currently in the \"end of file\" state, `NIL`\notherwise." path-exists? "Return `T` if `path` exists on the filesystem, `NIL` otherwise." cadddr "Shorthand for (car (cdr (cdr (cdr lst))))." scanl "Like `foldl` but return a list of each successive left-associative application of\nthe function.\n\nExamples:\n\n (scanl + 0 (iota 10 1))\n ; ↳ (0 1 3 6 10 15 21 28 36 45 55)" (doc group string) "Strings and runes." sort "Return a copy of the list sorted by comparing elements with the\ntwo-argument function `less-than?`.\n\nAn optional keyworded argument `:key` is used to provide a function to\nretrieve terms (the _key_) from the list items in order to perform\ncomparison. By default the terms compared are the list elements\nthemselves.\n\nExamples:\n\n ; simple sort (note: symbols > numbers)\n (sort '(1a 1 0 2b e 3) <)\n ; ↳ (0 1 3 1a 2b e)\n\n ; sort in lexicographical order (as strings)\n (sort '(1a 1 0 2b e 3) < :key str)\n ; ↳ (0 1 1a 2b 3 e)\n\n ; sort by type (note how the numbers stayed in the same order)\n (sort '(3 \"a\" 1 a #\\a 2)\n (λ (a b) (< (type-of a) (type-of b))))\n ; ↳ (3 1 2 #\\a \"a\" a)" fixnum? "Return `T` if `v` is of a fixnum type, `NIL` otherwise." exit "Terminate the process with the specified status. Does not return.\nThe status is expected to be a string in case of an error.\n\nExamples:\n\n (exit) ; exit with status 0 (nil on Plan 9)\n (exit \"error\") ; exit with status 1 (\"error\" on Plan 9)" __finish "A function called right before exit by the VM.\n\nThe exit `status` is either `NIL` or a string referring to an error\ncondition." caaar "Shorthand for (car (car (car lst)))." s32 "Construct a 32-bit signed number." u8 "Construct a 8-bit unsigned number." any "Return `T` if the predicate is true for _any_ element of the list,\n`NIL` otherwise.\n\nExample:\n\n ; is there any even number?\n (any even? '(1 3 5 7))\n ; ↳ NIL\n\n ; is there any string longer than one rune?\n (any (λ (s) (length> s 1))\n '(\"ab\" \"cd\" \"e\"))\n ; ↳ T" nthcdr "Return the reminder of the list after at most `n` elements, or `NIL`\nif the list is shorter.\n\nExamples:\n\n (def l '(a b c))\n (nthcdr l 1)\n ; ↳ (b c)\n (nthcdr l 2)\n ; ↳ (c)\n (nthcdr l 10)\n ; ↳ NIL" os-getenv "Return the value of the environment variable `name` or `NIL` if it's\nnot set." s8 "Construct a 8-bit signed number." io-close "Close the IO object.\n\nNo further operations on the IO object are possible, those will throw\nan exception if attempted. The only exception is `(io-filename io)`,\nwhich might be useful in some cases for debugging purposes.\n\nExamples:\n\n (def f (file \"/dev/random\"))\n (io-read f 'u8)\n ; ↳ #u8(123)\n (io-close f)\n (io-read f 'u8)\n ; ‼ I/O error: closed file" io-line! "Change the current line number of the IO object." num? "Return `T` if `v` is of a numerical type, `NIL` otherwise.\n\nNumerical types include floating point, fixnum, bignum, etc.\nNote: ironically, a NaN value is considered a number by this function\nsince it's only testing the _type_ of the value." +os-name+ "The name of the operating system this StreetLISP VM executable was\nbuilt for.\n\nIt's set to a lowercase string and its value is considered \"best\neffort\" - it might not always be accurate.\n\nPossible values: `\"unknown\"`, `\"plan9\"`, `\"linux\"`, `\"openbsd\"`,\n`\"netbsd\"`, `\"dragonflybsd\"`, `\"freebsd\"`, `\"haiku\"`, `\"macosx\"`,\n`\"macos\"`, `\"dos\"`." assert "Throw an exception if `expr` evaluates to `NIL`. Return `T` in any\nother case.\n\nExamples:\n\n (def s \"abc\")\n (assert (= (length s) 3))\n ; ↳ T\n (assert (eq? (str-rune s 0) #\\x))\n ; ‼ assertion failed: ..." vec->list "Return the vector converted to a list.\n\nExamples:\n\n (vec->list #(1 2 a))\n ; ↳ (1 2 a)" 1+ "Equivalent to `(+ n 1)` - increment by one." throw "Raise an exception consisting of a tag and a value.\n\nThis exception can be caught by `catch`." positive? "Return `T` if `n` is greater than zero. Shorthand for `(> n 0)`." atan "Return the arc tangent of `y/x` in radians." *builtins* "VM instructions as closures." remprop "Remove a property value associated with the symbol." io-copy-until "Copy bytes from the source IO object to the destination until\nencountering the delimiting rune `r` and return the number of bytes\ncopied. The copied bytes include the delimiter." (doc group list) "Working with lists." delete-file "Delete the file from the filesystem.\n\nThrows an IO error if file does not exist or it failed to be deleted." (doc group compare) "Comparison operators." cdddar "Shorthand for (cdr (cdr (cdr (car lst))))." set-cdr! "Modify a cons cell (a list) in-place by putting `new-second` as its\nsecond element (tail of the list). Return the modified cons\ncell (list).\n\nExamples:\n\n (def q '(1 2 3 4 5))\n (set-cdr! q '(6 7))\n ; ↳ (1 6 7)\n q\n ; ↳ (1 6 7)" stacktrace "Return the current stack trace." eq? "Return `T` if `a` and `b` are the same object, `NIL` otherwise.\n\nExamples:\n\n (eq? 0.0 0)\n ; ↳ NIL\n\n (eq? 0 0)\n ; ↳ T\n\n (def a \"1\")\n (def b \"1\")\n (eq? a b)\n ; ↳ NIL\n\n (def a '(1))\n (def b '(1))\n (eq? a b)\n ; ↳ NIL" io->str "Return the data of the in-memory `io` buffer as a string." bound? "Return `T` if `sym` has a value associated with it, `NIL` otherwise.\n\nExamples:\n\n (bound? 'bound?)\n ; ↳ T\n\n (bound? 'doesnotcompute)\n ; ↳ NIL" list->vec "Return the list converted to a vector.\n\nExamples:\n\n (list->vec '(1 2 a))\n ; ↳ #(1 2 a)" odd? "Return `T` if `n` is an odd integer, `NIL` otherwise." def "Assign the function (first form) or the result of the expression\n(second form) to the identifier.\n\nDocumentation for the definition may also be supplied after `form` in\nthe same manner as with `defdoc`.\n\nFunction definitions themselves may contain other definitions internal\nto the function.\n\nExamples:\n\n ; a function with documentation (first form)\n (def (f x)\n \"Return the square of doubled `x`.\n\n Examples:\n\n (f 3)\n ; ↳ 36\"\n :doc-group cool-funcs ; documentation group for (help groups)\n :doc-see g ; reference another function in the documentation\n (def (g y) ; an internal function\n (+ y y))\n (* (g x) (g x)))\n (f 2)\n ; ↳ 16\n\n ; a variable (second form)\n (def x (length \"hello\"))\n x\n ; ↳ 5" list? "Return `T` if the value is either `NIL` or a cons cell, `NIL`\notherwise." str-rep "Return the concatenation of the term formatted as a string, repeated\n`k` times.\n\nExamples:\n\n (str-rep \"oi\" 3)\n ; ↳ \"oioioi\"\n\n (str-rep #\\ы 5)\n ; ↳ \"ыыыыы\"\n\n (str-rep 'a 3)\n ; ↳ \"aaa\"\n\n (str-rep 1 5)\n ; ↳ \"11111\"" time "Display the elapsed time of evaluating `expr` to `*io-out*`, return\nthe result of the evaluated expression.\n\nExamples:\n\n (time (begin (sleep 0.1) 12345))\n ; ‼ Elapsed time: 0.10013356 seconds\n ; ↳ 12345" size-of "Return the size of the value in bytes, if applicable.\n\nWorks only with C integer types, arrays, strings and in-memory\nbuffers.\n\nExamples:\n\n (size-of \"hello\")\n ; ↳ 5\n\n (size-of (arr 'u32 1 2 3))\n ; ↳ 12\n\n (def b (buffer))\n (io-write b \"hello\")\n (size-of b)\n ; ↳ 5" sym "Return a symbol with the name being the concatenation of terms\nformatted as strings.\n\nThis is equivalent to `(sym (str …))`.\n\nExamples:\n\n (sym \"a\" 'b 1)\n ; ↳ ab1" tanh "Return the hyperbolic tangent of `x`." for "Call the function `f` with a single argument in a loop until the argument\nreaches `limit` or greater.\n\nThe argument is incremented by `1` after each call, with the initial value\nset to `start`.\n\nExamples:\n\n (for 0 2 (λ (i) (print i)))\n ; ‼ 01" begin "Evaluate the expressions in order and return the result of the last\nexpression.\n\nExamples:\n\n (if 1\n (begin (print 1)\n (newline)\n 'ignored\n 'done)\n (print 0)\n (newline)\n 'else)\n ; ‼ 1\n ; ↳ done" const? "Return `T` if the term refers to a constant, `NIL` otherwise.\n\nConstants cannot be modified with `set!`. Trying to do so will result\nin an exception.\n\nExamples:\n\n (const? 12345) ; a number\n ; ↳ T\n\n (const? 'const?) ; a function\n ; ↳ NIL\n\n (const? 'pi) ; a mathematical constant\n ; ↳ T" str-trim "Return the portion of the string with all leading runes satisfying\n`lead-pred` (and trailing runes satisfying `trail-pred`) removed.\n\nWithout predicates explicitly specified, `str-trim` will remove\nwhitespace from both sides of the string.\n\nPass `NIL` as the predicate to disable trimming on either side.\n\nExamples:\n\n (str-trim \" \\nhello\\t\\v\")\n ; ↳ \"hello\"\n\n (str-trim \" \\nhello\\t\\v\"\n (λ (r) (str-find \" \\v\" r)))\n ; ↳ \"\\nhello\\t\"\n\n (str-trim \"123abc!456def\"\n rune-numeric?\n rune-alphabetic?)\n ; ↳ \"abc!456\"" io-pos! "Change the current absolute position within the IO object in bytes,\nreturn the resulting position.\n\nExamples:\n\n (def f (buffer))\n (io-write f \"hello, world!\")\n (io-pos! f 64)\n ; ↳ 13\n (io-pos! f 7)\n ; ↳ 7\n (read f)\n ; ↳ world!" return "Return from the function with the specified value as the result.\n\nExamples:\n\n (def (f x) (when (not x)\n (return 0))\n (princ \"hi\")\n (newline)\n 1)\n (f 'a)\n ; ‼ hi\n ; ↳ 1\n (f NIL)\n ; ↳ 0" *stderr* "Standard error output IO stream." tan "Return the tangent of `r`, where `r` is given in radians." table "Construct a table from keys from the arguments.\n\nEvery two arguments are expected to be a key and a value associated\nwith that key.\n\nExamples:\n\n (table)\n ; ↳ #table()\n\n (table 'a 1 'b 2)\n ; ↳ #table(a 1 b 2)" __rcscript "Execute, if exists, the user's \"run commands\" file.\n\nThe file path is predefined and depends on the OS:\n\n * `$home/lib/slrc` on Plan 9\n * `$HOME/.slrc` on other operating systems\n\nIt is automatically loaded by StreetLISP when running in interactive\nmode. The user may wish to use this file to change the look of the\nprompt, load additional functionality they want to use without having\nto do the process manually each time, and so on." doc-group "Define documentation for a group." cdaaar "Shorthand for (cdr (car (car (car lst))))." bounds-error "Raise a bounds error exception." even? "Return `T` if `n` is an even integer, `NIL` otherwise." *properties* "All properties of symbols recorded with `putprop` are recorded in this\ntable." zero? "Return `T` if `n` is zero. Shorthand for `(= n 0)`." proper-list? "Return `T` is the value is a proper list. That is, a non-circular\nlist with the last element being `NIL`, as opposed to a dotted list.\n\nExamples:\n\n ; empty list\n (proper-list? NIL)\n ; ↳ T\n\n ; a list with one element\n (proper-list? '(1))\n ; ↳ T\n\n ; a pair, cdr of the cell is 2\n (proper-list? '(1 . 2))\n ; ↳ NIL\n\n ; on a circular list\n (def l '(1))\n (set-cdr! l l)\n ; ↳ #0=(1 . #0#)\n (length l)\n ; ↳ +inf.0\n (proper-list? l)\n ; ↳ NIL" io-filename! "Change the filename of the IO object, return the new filename.\n\nChanging the filename does not cause any side effects. The filename\nis purely informative and does not necessarily reflect the actual\npath.\n\nExamples:\n\n (def f (buffer))\n (io-filename b)\n ; ↳ \"\"\n (io-filename! b \"new name\") ; change the filename\n ; ↳ \"new name\"\n (io-filename b)\n ; ↳ \"new name\"" random "Return a random number in the range `[0, max]` (inclusive).\n\nThe result is either an integer or a floating point number, depending\non the type of the `max` argument.\n\nExamples:\n\n (random 1)\n ; ↳ 1\n\n (random 1.0)\n ; ↳ 0.69517" *directory-separator* "OS-specific path separator.\n\nIt is preferred over hardcoded `\"/\"`, for portability." reverse! "Return the list with its elements in reverse order.\n\nThe original list may be modified by this function since it's a\ndestructive operation.\n\nExamples:\n\n (def a '(1 2 3))\n (reverse! a)\n ; ↳ (3 2 1)\n a\n ; ↳ (1) ; original list has been modified in-place" eval "Evaluate expression.\n\nExamples:\n\n (eval '(begin (set! x 1 y 2) (+ x y)))\n ; ↳ 3\n x\n ; ↳ 1\n y\n ; ↳ 2" cdaadr "Shorthand for (cdr (car (car (cdr lst))))." u32 "Construct a 32-bit unsigned number." cons "Return a cons cell containing two arguments.\n\nExamples:\n\n (cons 1 2)\n ; ↳ (1 . 2)\n\n (cons 1 '(2))\n ; ↳ (1 2)\n\n (cons 1 (cons 2 (cons 3 NIL)))\n ; ↳ (1 2 3)" filter "Return a copy of the list with only the elements of the original\nthat satisfy the predicate.\n\nExamples:\n\n (filter odd? '(0 1 2 3 4))\n ; ↳ (1 3)" assq "Return a pair of a matching key and the associated value, or `NIL` if\nnone matched. Keys are compared using `eq?`." io-buffer-mode! "Changed the output buffering behavior of the writable IO, return the\napplied value.\n\nSee `io-buffer-mode` for supported modes." most-positive-fixnum "A constant integer closest to positive infinity that can be\nrepresented by fixnum type on this particular platform." del! "Remove any existing mapping for `key` and return the table.\n\nExamples:\n\n (def t #table(a 1 b 2))\n (del! t 'c)\n ; ↳ #table(b 2 a 1)\n (del! t 'b)\n ; ↳ #table(a 1)\n t\n ; ↳ #table(a 1)" when "Shorthand for `(if cond body NIL)`.\n\nA non-empty body is required.\n\nExamples:\n\n (when (eq? cmd 'exit)\n (princ \"exiting!\")\n (newline)\n (exit))" vec? "Return `T` if `v` is a vector, `NIL` otherwise." min "Return the smallest among the arguments.\n\nExamples:\n\n (min 3 1 9 4)\n ; ↳ 1\n\n (min 'c 'h 'z 'a)\n ; ↳ a\n\n (min \"t\" \"g\" \"a\")\n ; ↳ \"a\"" cddaar "Shorthand for (cdr (cdr (car (car lst))))." num->str "Return the number formatted as a string.\n\nFloating point numbers can only be formatted in base 10. Bignums are\nsupported with bases 2, 4, 8, 10, 16 and 32. The rest of the\nnumerical types are valid for any base from 2 to 36.\n\nNote: unlike other LISP dialects, StreetLISP's base-32 encoding is\ndone according to RFC 4648.\n\nExamples:\n\n (num->str 65535 :base 16)\n ; ↳ \"FFFF\"\n\n (num->str (s8 -7))\n ; ↳ \"-7\"" io? "Return `T` if `term` is of `io` type, `NIL` otherwise." eof-object? "Return `T` if the argument is `#`, `NIL` otherwise.\n\nThis object is returned by I/O functions to signal end of file,\nwhere applicable." help "Display documentation for a specific term or group of terms, if\navailable.\n\nAn optional symbol `group` is used to query for documentation on a\ngroup instead of a single term. All available documentation groups\ncan be displayed with `(help groups)`.\n\nAsterisk can be added to the beginning and/or end of the term in order\nto list the matching terms defined in the current environment. This\ncan be useful to recall a function's name.\n\nExamples:\n\n (help str?) ; show documentation for str?\n (help groups) ; show documentation groups\n (help type group) ; list items for dealing with types\n (help group type) ; same as ^\n (help str->*) ; find functions converting from strings\n (help *->str) ; find functions converting to strings\n (help *num*) ; find anything related to numbers" (doc group array) "Arrays and vectors." mod "Return the remainder of the Euclidean division `a/n`.\n\nExamples:\n\n (mod 10 3)\n ; ↳ 1\n\n (mod -10 3)\n ; ↳ 2\n\n (mod -10 -3)\n ; ↳ 2\n\n (mod 10 -3)\n ; ↳ 1" if "Return the result of `then` if `cond` evaluated as \"true\", `else`\notherwise.\n\nThe `else` is not optional unlike in many other LISP implementations.\nPrimary purpose is to spot errors involving wrong parenthesis\nplacement. Another reason is to force a certain coding style.\n\nExamples:\n\n (def x '(1))\n (if x (begin (print \"yep!\") (newline) 'yes) 0)\n ; ‼ yep!\n ; ↳ yes\n (if (str? x) 1 (print \"nope!\") (newline) 'no)\n ; ‼ nope!\n ; ↳ no" p32 "Construct a 32-bit abstract pointer value." io-read-lines "Return a list of lines read from the IO object until it ran out of\ndata.\n\nThe file is split into lines by `#\\linefeed`. Each string will have\nthe character, except the last line if EOF has been reached\nbeforehand.\n\nExamples:\n\n ; read current process' segments on Plan 9\n (def seg (file (str \"/proc/\" (getpid) \"/segment\")))\n (io-read-lines seg)\n ; ↳ (\"Stack 1feff0000 1ffff0000 1\\n\"\n \"Text R 10000 70000 1\\n\"\n \"Data 70000 d0000 1\\n\"\n \"Bss d0000 1a0000 1\\n\"\n \"Bss 1fcff0000 1feff0000 1\\n\"\n \"Bss 1faff0000 1fcff0000 1\\n\")" io-line "Return the current line number of the IO object.\n\nLine number is purely informative and is only being automatically\nupdated with the files opened for reading. If the cursor position is\nchanged via `io-skip` or `io-pos!`, the behavior is undefined." sym-set-doc "Set the documentation for the symbol." macrocall? "Return the macro application function if `e` refers to a macro call,\n`NIL` otherwise.\n\nExamples:\n\n (macrocall? '(car NIL))\n ; ↳ NIL\n\n (macrocall? '(let ((x 1)) 2))\n ; ↳ #fn(...)" trycatch "Return the result of evaluation of the expression `try` or, if an\nexception has been thrown, the one-argument function `catch`.\n\nExamples:\n\n (trycatch (+ 1 2) (λ (e) e))\n ; ↳ 3\n (trycatch (+ 1 NIL) (λ (e) e))\n ; ↳ (type-error num NIL)" (doc group builtin) "Built-in operators." iterate "Return the list of length `n` containing results of applying function\n`fn` to `zero`, 0 through `n` times.\n\nThe result is of form\n\n [zero (fn zero) (fn (fn zero)) (fn (fn (fn zero))) …]\n\nExamples:\n\n (iterate 1+ 5 3)\n ; ↳ (5 6 7)\n\n (iterate (λ (x) (* x x)) 2 5)\n ; ↳ (2 4 16 256 65536)\n\n (iterate (λ (s) (str-sub s 1)) \"hello\" 5)\n ; ↳ (\"hello\" \"ello\" \"llo\" \"lo\" \"o\")" *syntax-environment* "Table containing macro definitions.\n\nThe keys are macro names, the values are their application functions." table-values "Return the list of all values of the table.\n\nExamples:\n\n (def t #table(a 1 b 2 c 1))\n (table-values t)\n ; ↳ (1 2 1)" macroexpand "Return a fully macro-expanded expression.\n\nExpansion will continue until no more macro calls are left.\n\nExamples:\n\n (let ((a 3) (b 4) (c 5))\n (macroexpand `(let* {[x ,a] [y ,b]} (+ x y ,c))))\n ; ↳ ((λ (x)\n ((λ (y)\n (+ x y 5))\n 4))\n 3)" caadr "Shorthand for (car (car (cdr lst)))." type-of "Return the underlying type of the value.\n\nExamples:\n\n (type-of 1)\n ; ↳ fixnum\n\n (type-of NIL)\n ; ↳ null\n\n (type-of T)\n ; ↳ bool\n\n (type-of \"hello\")\n ; ↳ str\n\n (type-of (arr 'u32 0 1 2))\n ; ↳ (arr u32)" top-level-value "Return the value bound to the symbol in the top level (global)\nenvironment.\n\nExamples:\n\n (def abc 1)\n (let {[abc 2]}\n (cons abc (top-level-value 'abc)))\n ; ↳ (2 . 1)\n abc\n ; ↳ 1" defstruct "Declare a new structure type with the specified name and slots.\n\nThe default underlying type is a \"named\" vector (`:type vec`), where\nthe first element is the name of the structure's type, the rest are\nthe keyworded slot values. A list with slot values alone can be used\ninstead by adding `:type list` option. The list will not contain the\nname of the struct by default, which can be enabled with `:named T`\noption.\n\nAs an example, the following declaration generates the default\nconstructor for a structure of three slots, with one of them (`c`)\nhaving a non-`NIL` default value and marked as read-only:\n\n (defstruct blah \"Return stuff.\" :doc-group stuff a b (c 1 :read-only T))\n ; (make-blah (:a NIL) (:b NIL) (:c 1))\n ; (blah-a s)\n ; (blah-b s)\n ; (blah-c s)\n ; (blah-a! s new-a)\n ; (blah-b! s new-b)\n\nSlot's options, if any, should be specified after its default value.\nSupported options are:\n\n ; mark the slot as read-only\n ; its value can be read, but trying to modify it will throw an error\n … :read-only T\n\nThe constructor can be changed in several ways:\n\n ; disable the constructor altogether\n (defstruct blah :constructor NIL a b c)\n ; only change its name\n (defstruct blah :constructor blargh a b c)\n ; rename AND avoid using keywords\n (defstruct blah :constructor (blah a b c) a b c)\n\nThe option `:conc-name` specifies the slot accessor/setter prefix,\nwhich defaults to `structname-`. Prefix can be disabled entirely with\n`:conc-name NIL`.\n\nSlot setters are generated for writable slots by appending `!`\n(exclamation mark) to the accessor's name.\n\nDefault predicate can be disabled or its name, which defaults to\n`structname?`, changed:\n\n ; use \"blargh?\" instead of \"blah?\"\n (defstruct blah :predicate blargh? a b c)\n ; without predicate\n (defstruct blah :predicate NIL a b c)" caadar "Shorthand for (car (car (cdr (car lst))))." foldl1 "Same as `foldl` but using the first element of the list as the\ninitial accumulator.\n\nExamples:\n\n (foldl1 * (iota 6 1))\n ; ↳ 720" buffer "Return an in-memory buffer for I/O, of `io` type.\n\nA buffer can be used for both reading and writing at the same\ntime." assoc-list "Construct an association list from the arguments.\n\nEvery two arguments are expected to be a key and a value associated\nwith that key.\n\nExamples:\n\n (assoc-list 'a 0 'b 1)\n ; ↳ ((a . 0) (b . 1))" builtin? "Return `T` if `v` is a built-in function implemented in C, `NIL`\notherwise.\n\nExamples:\n\n (builtin? map)\n ; ↳ T\n\n (builtin? macroexpand)\n ; ↳ NIL" str-map "Return the concatenation of the values produced by `fn` when applying\nto each rune of the string `s`.\n\nFunction `fn` may return a value of any type suitable for `io-write` -\na rune, string, array of C primitives. If `fn` returns `NIL`, the\nrune is ignored.\n\nExamples:\n\n (str-map rune-upcase\n \"hello, world!\")\n ; ↳ \"HELLO, WORLD!\"\n\n (str-map (λ (r) (str r r))\n \"hello\")\n ; ↳ \"hheelllloo\"\n\n (str-map (λ (r) (and (not (rune-whitespace? r)) r))\n \"! this is great !\")\n ; ↳ \"!thisisgreat!\"" macroexpand-1 "Return a macro-expanded expression.\n\nIf the expression is not a macro call, it is returned unchanged.\nOnly a single level of expansion is performed.\n\nExamples:\n\n (let ((a 3) (b 4) (c 5))\n (macroexpand-1 `(let* {[x ,a] [y ,b]} (+ x y ,c))))\n ; ↳ ((λ (x) ; note how the inner let* expression isn't expanded\n (let* ((y 4)) (+ x y 5)))\n 3)" +endianness+ "Endianess of the CPU the VM is running on, a constant.\n\nSet to either `:big-endian` or `:little-endian`." str "Return concatenation of terms formatted as strings.\n\nThis is equivalent to `(princ terms…)`, except the string is\n_returned_, rather than printed.\n\nExamples:\n\n (str \"a\" 'b 1 #(0))\n ; ↳ \"ab1#(0)\"" negative? "Return `T` if `n` is a negative number. Shorthand for `(< n 0)`." void "Return the constant `#` while ignoring any arguments.\n\n`#` is mainly used when a function has side effects but does not\nproduce any meaningful value to return, so even though `T` or `NIL` could\nbe returned instead, in case of `#` alone, REPL will not print\nit." assert-fail "Throw an \"assertion failed\" exception if evaluating `expr` itself does\nnot result in an exception thrown. Return `T` otherwise.\n\nTo test for a specific exception type, an optional `what` argument can\nbe used.\n\nExamples:\n\n (def s \"abc\")\n (assert-fail (= (length s) 3))\n ; ‼ assertion failed: ...\n (assert-fail (= s 1) type-error)\n ; ↳ T" io-read-line "Return a single line of input read from `io`.\n\nReading stops at either a `#\\linefeed` character or upon reaching EOF.\nThe line feed character is included in the returned value unless EOF\nhas been reached beforehand.\n\nEOF (`#`) is returned if the IO object had no data.\n\nExamples:\n\n ; read one line from the kernel messages file\n (io-read-line (file \"/dev/kmesg\"))\n ; ↳ \"127 holes free\\n\"\n\n ; /dev/null has no data - EOF is returned\n (eof-object? (io-read-line (file \"/dev/null\")))\n ; ↳ T" and "Return `NIL` and stop evaluating the arguments if one of them\nevaluated to `NIL`. Return the last value otherwise.\n\nExamples:\n\n (and)\n ; ↳ T\n\n (and 1 2 (print 'yes) 3)\n ; ‼ yes\n ; ↳ 3\n\n (and 1 NIL (print 'yes) 3)\n ; ↳ NIL" 1- "Equivalent to `(- n 1)` - decrement by one." io-buffer-mode "Return the output buffering mode of the writable IO.\n\nPossible values include:\n\n* `NIL` - no buffering, data is written immediately\n* `:line` - data is written when `#\\newline` is encountered\n* `:block` - data is written when the buffer is full\n* `:memory` - the IO is an in-memory buffer itself" that "The result of the last expression evaluated in the REPL.\n\nExamples:\n\n (map rune-upcase \"hello, world!\")\n ; ↳ \"HELLO, WORLD!\"\n (str-sub that 0 5)\n ; ↳ \"HELLO\"\n (map rune-downcase that)\n ; ↳ \"hello\"" (doc group prop) "Dealing with properties of symbols." (doc group vm) "VM-related functions." equal? "Return `T` if both `a` and `b` are of the same value. For non-leaf\ntypes (cons cell and vector), the equality test is performed\nthroughout the whole structure of the values.\n\nExamples:\n\n (equal? 0.0 0)\n ; ↳ NIL\n\n (equal? 0 0)\n ; ↳ T\n\n (def a \"1\")\n (def b \"1\")\n (equal? a b)\n ; ↳ T\n\n (def a '(1))\n (def b '(1))\n (equal? a b)\n ; ↳ T" cddar "Shorthand for (cdr (cdr (car lst)))." *interactive* "Variable indicating whether VM is running in \"interactive\" mode (`T`,\nREPL is active) or not (`NIL`, REPL is not active).\n\nInteractive mode can be forced by adding `-i` as the first command\nline argument." unquote "Evaluate the expression, which is a part of a quasiquoted expression\nitself.\n\nShorthand for `(unquote expr)`.\n\nExamples:\n\n `(0 1 ,(+ 2 3)) ; same as (quasiquote (0 1 (unquote (+ 2 3))))\n ; ↳ (0 1 5)" or "Return the first evaluated argument that is not `NIL` and stop\nevaluating the rest of the arguments. Return `NIL` otherwise.\n\nExamples:\n\n (or)\n ; ↳ NIL\n\n (or 1 2 (print 'first) (print 'second) 3)\n ; ↳ 1\n\n (or NIL NIL (print 'first) (print 'second) 3)\n ; ‼ first" = "Numerical equality test. Return `T` if all numbers are equal,\n`NIL` otherwise." fn? "Return `T` if `v` is a function, `NIL` otherwise.\n\nExamples:\n\n (fn? (void))\n ; ↳ NIL\n\n (fn? map)\n ; ↳ T\n\n (fn? macroexpand)\n ; ↳ T" (doc group type) "Dealing with types." caaadr "Shorthand for (car (car (car (cdr lst))))." make-system-image "Build and store a \"system image\" of the runtime environment to a file." subseq "Return a bounded part of a sequence.\n\nThe returned value is always a copy of the subsequence of the\noriginal. It is an error if either `start` or `end` (if specified)\nare out of bounds.\n\nExamples:\n\n (subseq \"hello\" 1 2)\n ; ↳ \"e\"\n\n (subseq '(1 2 3) 0 2)\n ; ↳ (1 2)\n\n (subseq #(a b c) 2)\n ; ↳ #(c)" set! "Evaluate the expression, assign the result to the identifier and\nreturn the value.\n\nThe identifier must already be bound in the same environment,\notherwise this results in a compilation error.\n\nMultiple identifiers and expressions may be specified in pairs. The\nreturned value will be the result of the last expression.\n\nExamples:\n\n (def a NIL)\n (def b NIL)\n (def c NIL)\n (set! a 1 b 2 c (+ a b))\n ; ↳ 3\n a\n ; ↳ 1\n b\n ; ↳ 2\n c\n ; ↳ 3" vm-stats "Print various VM-related information, such as the number of GC\ncalls so far, heap and stack size, etc." ptr "Construct an abstract pointer value. The bit width is either 32-bit\nor 64-bit, depending on the platform the code is executing on.\n\nNote: certain arithmetic operations on pointers, such as division and\nmultiplication, will throw an error. This is done on purpose since\ndoing that on pointers rarely makes sense." caddar "Shorthand for (car (cdr (cdr (car lst))))." print-stack-trace "Print the stacktrace." *stdin* "Standard input IO stream." cosh "Return the hyperbolic cosine of `x`." < "Return `T` if the arguments are in strictly increasing order (next\none is greater than the previous one). With a single argument\nthe result is always `T`." (doc group time) "Measuring, manipulating and displaying time." copy-tree "Return a recursive copy of the list.\n\nUnlike `copy-list`, this function copies subelements of the list\nrecursively.\n\nExamples:\n\n (def a '(1 (2 3)))\n (def b (copy-tree a))\n (equal? a b)\n ; ↳ T\n (eq? a b)\n ; ↳ NIL\n (equal? (cadr a) (cadr b))\n ; ↳ T\n (eq? (cadr a) (cadr b))\n ; ↳ NIL" f32 "Construct a 32-bit floating point number." sin "Return the sine of `r`, where `r` is given in radians." io-copy "Copy bytes from the source IO object to the destination and return\nthe number of bytes copied. If `n` is provided, copy up to that many\nbytes." delete-duplicates "Return a copy of the list with duplicated elements removed.\n\nElements are tested for duplicates using `equal?`. The order of the\nelements is preserved in the resulting list.\n\nExamples:\n\n (delete-duplicates '(a 0 b c1 a b 3 c 5))\n ; ↳ (a 0 b c1 3 c 5)" > "Return `T` if the arguments are in strictly decreasing order (previous\none is greater than the next one)." str-rune "Return the nth rune of the string.\n\nThrows an exception if the index `n` is out of bounds.\n\nExamples:\n\n (str-rune \"йцукен\" 3)\n ; ↳ #\\к" scanl1 "Same as `scanl` but using the first element of the list as the\ninitial accumulator.\n\nExamples:\n\n (scanl1 + (iota 10))\n ; ↳ (0 1 3 6 10 15 21 28 36 45)" foldl "Reduce the sequence to a single value by repeatedly applying the function\nleft-associatively.\n\nThe function should be of the form `(fn elt acc)`, with `elt` being successive\nelements of the sequence and `acc` initially set to `zero` and subsequently\nto the previous value of the function application.\n\nThe result will be:\n\n (fn eₙ (…(fn e₁ (fn e₀ zero))…))\n\nNote that `foldl` is tail call recursive.\n\nExamples:\n\n (foldl cons NIL (iota 5))\n ; ↳ (4 3 2 1 0)\n\n (foldl + 0 (iota 5))\n ; ↳ 10" +os-version+ "The \"version\" of the operating system this StreetLISP VM executable\nwas built for.\n\nThe availability of the constant and its value depends on the\noperating system and is only provided for the user to see. No logic\nshould depend on it.\n\nExamples:\n\n +os-version+\n ; ↳ \"6.14.5-0-edge\" ; Alpine Linux kernel version" abs "Return absolute value of the argument." with-output-to "Evaluate expressions in `body` with `*io-out*` set to `io` during the\nevaluation.\n\nExamples:\n\n ; write a string \"hello, world!\" to a file\n ; end with a newline\n (with-output-to (file \"/tmp/1.txt\" :create :truncate :write)\n (print \"hello, world!\")\n (newline))" *linefeed* "OS-specific _line_ _feed_ value.\n\nIt is preferred over hardcoded `\"\\n\"`, for portability." str? "Return `T` if the argument is a string, `NIL` otherwise." cons? "Return `T` if `v` is a cons cell, `NIL` otherwise.\n\nExamples:\n\n (cons? 0)\n ; ↳ NIL\n\n (cons? NIL)\n ; ↳ NIL\n\n (cons? '(1))\n ; ↳ T" str-split "Return a list of substrings of `str` by splitting at any character in\nthe string `sep`. The splitting characters are removed.\n\nBy default the string is split on space, line feed (newline),\nhorizontal and vertical tab, and form feed.\n\nTrim removes empty strings from the list.\n\nExamples:\n\n (str-split \"hello world\")\n ; ↳ (\"hello\" \"world\")\n\n (str-split \"multiple spaces \")\n ; ↳ (\"multiple\" \"\" \"\" \"spaces\" \"\")\n\n (str-split \"multiple spaces \" :trim T)\n ; ↳ (\"multiple\" \"spaces\")\n\n (str-split \"too many vowels\" \"aeiou\")\n ; ↳ (\"t\" \"\" \" m\" \"ny v\" \"w\" \"ls\")" io-read "Return a value of the specified type by reading it from the IO\nobject.\n\nThe `type` must specify a fixed-width number, pointer or rune.\n\nNumerical values may be read in a specific endianness order by setting\n`endian` to either `:little-endian` or `:big-endian`. Host CPU\nendianness is used if not specified.\n\nIf the parameter `n` is provided, read `n` values of the type,\nreturning an array of the values or a string when `type` is `utf8`.\n\nExamples:\n\n (io-read f 'utf8 5)\n ; ↳ \"hello\"\n\n (io-read f 'u32)\n ; ↳ 57\n\n (io-read f 'u32 3)\n ; ↳ #arr(u32 0 1 2)\n\n (io-read f 'rune 6)\n ; ↳ #arr(rune #\\λ #\\a #\\m #\\b #\\d #\\a)" aset! "Modify the sequence element specified by the subscripts and return the\nnew value. The sequence can be an array, vector, a list.\nMulti-dimensional sequences of variating types are also supported.\n\nExamples:\n\n (def a '((1 #(2 (3)) 4)))\n (aset! a 1 'x)\n ; ‼ index 1 out of bounds\n (aset! a 0 0 'x)\n ; ↳ x\n a\n ; ↳ ((x #(2 (3)) 4))\n (aset! a 0 1 9)\n ; ↳ 9\n a\n ; ↳ ((x #(9 (3)) 4))" - "Return the result of subtraction. With only one argument a\nnegation is performed.\n\nExamples:\n\n (- 1.5)\n ; ↳ -1.5\n\n (- 3 2)\n ; ↳ 1" makunbound "Make the symbol unbound.\n\nExamples:\n\n (def x 1)\n (bound? 'x)\n ; ↳ T\n x\n ; ↳ 1\n (makunbound 'x)\n (bound? 'x)\n ; ↳ NIL\n x\n ; ‼ eval: variable x has no value" io-truncate "Truncate the underlying IO object to the specified number of bytes." rand "Return a random non-negative fixnum on its maximum range." quasiquote "Same as `'expr` but allows evaluating (\"unquoting\") parts of\nthe expression.\n\nShorthand for `(quasiquote expr)`.\n\nExamples:\n\n `(0 1 (+ 2 3)) ; same as (quasiquote (0 1 (+ 2 3)))\n ; ↳ (0 1 (+ 2 3))" io-column! "Change the current column number of the IO object." copy-list "Return a copy of the list.\n\nThe number of elements to be copied can be limited with the optional\nargument `n`.\n\nExamples:\n\n (def a '(1 2 3 4))\n (def b (copy-list a))\n b\n ; ↳ (1 2 3 4)\n (eq? a b)\n ; ↳ NIL\n (equal? a b)\n ; ↳ T\n (copy-list a 3)\n ; ↳ (1 2 3)\n (copy-list a 10)\n ; ↳ (1 2 3 4)" logand "Return the result of bitwise AND operation on integers.\n\nExamples:\n\n (logand)\n ; ↳ 0\n\n (logand 2)\n ; ↳ 2\n\n (logand 2 3)\n ; ↳ 2\n\n (logand 2 3 4)\n ; ↳ 0" time-now "Return the number of seconds since Epoch (1970-01-01 00:00:00).\n\nThis measures the system-wide real (wall-clock) time.\n\nExample:\n\n (time-now)\n ; ↳ 1746494461.2773349285" sinh "Return the hyperbolic sine of `x`." *argv* "The list of command line arguments.\n\nIf StreetLISP was started in interactive mode without a file specified\nfor execution, `*argv*` will be a list containing just one value - the\nname of the `sl` executable.\n\nOtherwise, the file specified for execution and the rest of the remaining\narguments will form the `*argv*` list.\n\nStreetLISP's own options, such as `-i` and `-H ...` will be stripped\nout in any case.\n\nExamples:\n\n ; $ sl -i -H 12345\n *argv*\n ; ↳ (\"sl\")\n\n ; $ sl script.sl -i abc\n *argv*\n ; ↳ (\"script.sl\" \"-i\" \"abc\")" top-level-exception-handler "Print the exception `e` and the stack trace to `*stderr*`.\n\nThis is the top level exception handler that is used by `load` and\n`repl` functions to handle exceptions that weren't handled at the\nlower level." identity "Return `v`." untrace "Disable tracing for the function bound to the symbol.\n\nExamples:\n\n (trace 'map)\n (map odd? (list (+ 1 2) (+ 3 4)))\n ; ‼ (map #fn(\"n170051S:\" #(even?) odd? 6) (3 7))\n ; ↳ (T T)\n (untrace 'map)\n (map odd? (list (+ 1 2) (+ 3 4)))\n ; ↳ (T T)" count "Return the number of elements in the list that satisfy the predicate.\n\nExamples:\n\n (count (λ (s) (length> s 1))\n '(\"ab\" \"c\" \"d\" \"ef\"))\n ; ↳ 2" io-pos "Return the current absolute position within the IO object in bytes.\n\nExamples:\n\n (def f (buffer))\n (io-write f \"hello, world!\")\n (io-pos f)\n ; ↳ 13" map-int "Return a list of elements generated by repeated calls to `fn`.\n\nThe lambda `fn` will be called with a single argument which is an\nincreasing number in the range `[0, count)` (exclusive). The\nresulting list contains the values returned by `fn`.\n\n\nExamples:\n\n (map-int even? 5)\n ; ↳ (T NIL T NIL T)\n\n (map-int (λ (i) (str i i i)) 4)\n ; ↳ (\"000\" \"111\" \"222\" \"333\")" table->assoc-list "Return the table converted to an association list (pairs of each\nkey and value).\n\nExamples:\n\n (def t #table(a 1 b 2 c 1))\n (table->assoc-list t)\n ; ↳ ((a . 1) (b . 2) (c . 1))" length< "Shorthand for a bounded length test `(< (length seq) n)`." unless "Shorthand for `(if cond NIL body)`.\n\nA non-empty body is required.\n\nExamples:\n\n (unless (cons? x)\n (princ \"oops!\")\n (newline)\n (type-error 'cons x))" str->time "Return the number of seconds since Epoch from a time and date\nformatted as a string.\n\nBecause the supported format is limited, the returned value will have\n(at most) precision in full seconds.\n\nExamples:\n\n (str->time \"Tue May 6 03:21:01 CES 2025\")\n ; ↳ 1746494461" get-syntax "Return a macro application function based on its name, or `NIL` if\nit's not defined." (doc group table) "Tables of keys with associated values." ptr? "Return `T` if the argument is an abstract pointer, `NIL` otherwise." expt "Return the value of `x` raised to the power of `p`.\n\nExamples:\n\n (expt 3 3) ; cube of 3\n ; ↳ 27\n\n (expt 27 (/ 1 3)) ; cube root of 27\n ; ↳ 3" io-read-all "Return a string containing all of the data read from the IO object\nuntil it ran out of data.\n\nAn empty string (`\"\"`) is returned if the IO object had no data.\n\nExamples:\n\n ; read current user on Plan 9\n (io-read-all (file \"/dev/user\"))\n ; ↳ \"glenda\"" gc "Force a garbage collection run.\n\nOne does not need to execute this function manually since garbage\ncollection will happen automatically, based on the amount of data\nallocated." (doc group rand) "Random numbers generation." io-write "Write the value to the IO object, return the number of bytes written.\n\nThe value may be a string, a fixed-width number or pointer, a rune\nor an array.\n\nNumerical values may be written in a specific endianness order by\nsetting `endian` to either `:little-endian` or `:big-endian`. Host\nCPU endianness is used if not specified.\n\nWhen writing a rune or an array of runes, they will be converted and\nwritten as an UTF-8 string.\n\nExamples:\n\n (io-write *stdout* \"hello\")\n ; ‼ hello\n ; ↳ 5\n\n (io-write *stdout* (u32 #x44434241) :little-endian)\n ; ‼ ABCD\n ; ↳ 4\n\n (io-write *stdout* #\\λ)\n ; ‼ λ\n ; ↳ 2\n\n (io-write *stdout* (arr 'rune #\\λ #\\= #\\l #\\a #\\m #\\b #\\d #\\a))\n ; ‼ λ=lambda\n ; ↳ 9" table-invert "Return a new table with the keys and values from the original table\nbut entries _inverted_ - values to keys and keys to values.\n\nNote that if the original table had several keys mapped to the same\nvalue, only one such mapping will be stored in the new table.\n\nExamples:\n\n (def t #table(a 1 b 2 c 1))\n (table-invert t)\n ; ↳ #table(1 a 2 b)" lz-unpack "Return decompressed data previously compressed using lz-pack.\n\nEither destination for the decompressed data or the expected size of\nthe decompressed data must be specified. In the latter case a new\narray is allocated." div "Return the quotient of the Euclidean division `a/n`.\n\nExamples:\n\n (div 10 3)\n ; ↳ 3\n\n (div -10 3)\n ; ↳ -4\n\n (div -10 -3)\n ; ↳ 4\n\n (div 10 -3)\n ; ↳ -3" princ "Print the arguments to *io-out* with `*print-readably*` set to `NIL`.\n\nExamples:\n\n (princ 1 2 \"abc\")\n ; ‼ 12abc" (doc group struct) "Declaring and manipulating structures." last-cdr "Return the second element of the last cell in the list.\n\nIt will always evaluate to `NIL` with any proper list.\n\nExamples:\n\n (last-cdr '(1 2 3))\n ; ↳ NIL\n\n (last-cdr '(1 2 . 3))\n ; ↳ 3" trace "Enable tracing for the function bound to the symbol.\n\nWhen tracing is enabled for the function, before evaluating the call\nthe name and arguments will be printed to `*io-out*`.\n\nExamples:\n\n (trace 'map)\n (map odd? (list (+ 1 2) (+ 3 4)))\n ; ‼ (map #fn(\"n170051S:\" #(even?) odd? 6) (3 7))\n ; ↳ (T T)" io-filename "Return the filename of the IO object.\n\nExamples:\n\n (def f (file \"/dev/random\"))\n (io-filename f)\n ; ↳ \"/dev/random\"\n (io-close f)\n (io-filename f) ; preserved even after it's closed\n ; ↳ \"/dev/random\"\n\n (io-filename *io-out*)\n ; ↳ \"*stdout*\"" gensym? "Return `T` if the argument is a gensym, `NIL` otherwise." (doc group syntax) "StreetLISP syntax and macros." defdoc "Define documentation for a top level term.\n\nIf `term` is a function signature and `doc` is not specified, just\nthe signature will be included in the documentation, without\nreplacing any previously defined.\n\nFirst `doc` argument is supposed to be a string with the description\nof the term. The following arguments are expected to be optional tag\npairings that provide grouping for multiple symbols and \"see also\"\nreferences.\n\nUseful in cases where setting the documentation for a term can't\n(or not preferred to) be done during the definition of said term.\nOne of those reasons could be that the term is a built-in function\nimplemented in C.\n\nExamples:\n\n (defdoc (func arg (arg2 0))\n \"Return something about the `arg` and `arg2`. This is a short\n description.\n\n This is the longer description, following the short one.\n\n Examples:\n\n (func 0)\n ; ↳ T\n\n (func 1 3)\n ; ↳ NIL\"\n :doc-group stuff\n :doc-see func2)\n (defdoc (func arg (:another-variant NIL)))" cdddr "Shorthand for (cdr (cdr (cdr lst)))." copy-table "Return a new copy of the table with the keys and values preserved.\n\nNo copies of the keys nor values are created - original ones are\nreused.\n\nExamples:\n\n (def t #table(a (1 2 3)))\n (def q (copy-table t))\n (eq? t q)\n ; ↳ NIL\n (eq? (get t 'a) (get q 'a))\n ; ↳ T" set-car! "Modify a cons cell (a list) in-place by putting `new-first` as its\nfirst element (head of the list). Return the modified cons\ncell (list).\n\nExamples:\n\n (def q '(1 2 3 4 5))\n (set-car! q 0)\n ; ↳ (0 6 7)\n q\n ; ↳ (0 6 7)" partition "Return two lists where the first contains the elements of the original\nlist which satisfy the predicate and the second containing the rest of\nthe elements.\n\nBoth lists will have the elements appear in the same order as in the\noriginal list.\n\nExamples:\n\n ; split the list into numbers and non-numbers\n (def q '(1a 1 0 2b e 3))\n (receive (nums other) (partition num? q)\n (print nums other)\n (newline))\n ; ↳ (1 0 3) (1a 2b e)" has? "Return `T` if the table has a value associated with the key, `NIL` otherwise.\n\nExamples:\n\n (def t #table(a 1 b 2))\n (has? t 'c)\n ; ↳ NIL\n (has? t 'a)\n ; ↳ T" vec "Construct a vector containing the specified arguments.\n\nExamples:\n\n (vec) ; empty vector\n ; ↳ #()\n\n (vec 1 2.5 \"a\" 'b)\n ; ↳ #(1 2.5 \"a\" b)" while "Evaluate the body expressions until `cond` evaluates to `NIL`.\n\nExamples:\n\n (def x 3)\n (while (> x 0)\n (princ #\\x)\n (set! x (1- x)))\n ; ‼ xxx" rune "Construct a rune from a Unicode code point. Without code point\nspecified, an \"invalid\" rune is returned." *exit-hooks* "Internal variable, a list containing functions to call right before VM\nprocess exits." cadar "Shorthand for (car (cdr (car lst)))." type-error "Raise a type error exception." file "Open a file for I/O.\n\nAn `io` object is returned. Without any modes specified the file\nmust already exist and is opened in read-only mode.\n\nFiles are created with the default mode bits #o644." nth "Return nth element of the list, or `NIL` if the list is shorter.\n\nExamples:\n\n (def l '(a b c))\n (nth l 0)\n ; ↳ a\n (nth l 2)\n ; ↳ c\n (nth l 10)\n ; ↳ NIL" cdr "Return the second element of a cons cell (tail of a list) or `NIL` if\nnot available.\n\nExamples:\n\n (cdr NIL)\n ; ↳ NIL\n\n (cdr '(1 2 3))\n ; ↳ (2 3)\n\n (cdr '(1 . 2))\n ; ↳ 2" / "Return the division of the arguments. With only one argument the\nresult of `1/x` is returned. If the result is integer-valued, it is\nreturned as an integer.\n\nExamples:\n\n (/ 2)\n ; ↳ 0.5\n\n (/ 7 2 2)\n ; ↳ 1.75\n\n (/ 10 -2)\n ; ↳ -5 ; a fixnum\n\n (/ 6.9 1.9)\n ; ↳ 3.6315…" newline "Write a single OS-specific line feed to the output.\n\nOn most systems it's a single character - `#\\linefeed` (`\\n`)." separate-doc-from-body "Take a list of terms and return a pair `(doc . body)`, where the first\nelement contains a list of documentation-related terms, and the second\ncontains the rest of the terms." rand-u64 "Return a random integer on interval [0, 2⁶⁴-1]." cdadar "Shorthand for (cdr (car (cdr (car lst))))." sqrt "Return the square root of `x`.\n\nExamples:\n\n (sqrt 9.0)\n ; ↳ 3.0" foldr "Reduce the sequence to a single value by repeatedly applying the function\nright-associatively.\n\nThe function should be of the form `(fn elt acc)`, with `elt` being successive\nelements of the sequence and `acc` initially set to `zero` and subsequently\nto the previous value of the function application.\n\nThe result will be:\n\n (fn e₀ (fn e₁ (…(fn eₙ zero)…)))\n\nNote that `foldr` is NOT tail call recursive.\n\nExamples:\n\n (foldr cons NIL (iota 5))\n ; ↳ (0 1 2 3 4)\n\n (foldr + 0 (iota 5))\n ; ↳ 10" reverse "Return the list with its elements in reverse order.\n\nThe original list is copied to construct the reversed version.\n\nExamples:\n\n (def a '(1 2 3))\n (reverse a)\n ; ↳ (3 2 1)\n a\n ; ↳ (1 2 3)" lz-pack "Return data compressed using Lempel-Ziv.\n\nThe data must be an array, returned value will have the same type.\nThe optional `level` is between `0` and `10`. With `level` set to\n`0` a simple LZSS using hashing will be performed. Levels between\n`1` and `9` offer a trade-off between time/space and ratio. Level\n`10` is optimal but very slow." *prompt* "Function called by REPL to tell the user it's expecting input.\n\nThe default `*prompt*` function prints `#;> `, which by itself is a\ncommented-out expression, allowing the user to copy-paste the entire\nline (with the prompt) to re-evaluate." member "Return the tail of a list beginning with the item, or `NIL` otherwise.\nList elements are compared to the `item` using `equal?`.\n\nExamples:\n\n (member 1 '(3 2 1 0))\n ; ↳ (1 0)\n\n (member 1 '(2 3))\n ; ↳ NIL" bignum? "Return `T` if the argument is a bignum, `NIL` otherwise." fixnum "Construct a fixnum." f64 "Construct a 64-bit floating point number." memq "Return the tail of a list beginning with the item, or `NIL` otherwise.\nList elements are compared to the `item` using `eq?`." str->num "Return the number using the radix `base` in the string `s`.\n\nReturns `NIL` if the number could not be parsed or there were\nleft-over trailing characters.\n\nExamples:\n\n (str->num \"1.2\")\n ; ↳ 1.2\n\n (str->num \"#x123\")\n ; ↳ 291\n\n (str->num \"ffff\" 16)\n ; ↳ 65535\n\n (str->num \"777\" 8)\n ; ↳ 511" exp "Return the exponential - value of `e` (natural logarithms base) raised\nto the power of `p`.\n\nExamples:\n\n (exp 1)\n ; ↳ 2.71828… ; e¹" (doc group debug) "Debugging utilities." caaaar "Shorthand for (car (car (car (car lst))))." io-column "Return the current column number of the IO object.\n\nColumn number is purely informative and is only being automatically\nupdated with the files opened for reading. If the cursor position is\nchanged via `io-skip` or `io-pos!`, the behavior is undefined." traced? "Return `T` if the tracing is enabled for the function, `NIL`\notherwise.\n\nExamples:\n\n (traced? map)\n ; ↳ NIL\n (trace 'map)\n (traced? map)\n ; ↳ T\n (untrace 'map)\n (traced? map)\n ; ↳ NIL" (doc group io) "Files and I/O functionality." s64 "Construct a 64-bit signed number." io-flush "Flush the contents of the output buffer to the underlying IO." assoc "Return a pair of a matching key and the associated value, or `NIL` if\nnone matched. Keys are compared using `equal?`.\n\nExamples:\n\n (def L (assoc-list 'a 0 'b 1))\n (assoc 'b L)\n ; ↳ (b . 1)\n (assoc 'c L)\n ; ↳ NIL" + "Return sum of the arguments or `0` when none specified." cadadr "Shorthand for (car (cdr (car (cdr lst))))." foldr1 "Same as `foldr` but using the first element of the list as the\ninitial accumulator.\n\nExamples:\n\n (foldr1 + (iota 10))\n ; ↳ 45" compare "Return -1 if `x` is less than `y`, 0 if equal, and `1` if `y` is\ngreater than `x`.\n\nExamples:\n\n (compare 'a 'b)\n ; ↳ -1\n\n (compare 1 1)\n ; ↳ 0\n\n (compare \"b\" \"a\")\n ; ↳ 1" error "Raise an error exception." *io-err* "Current (default) error output IO stream.\n\nFunctions may use `*io-err*` for error output, which then can be\nredirected to a different IO using `with-bindings`." print-exception "Print the exception in a human-readable form.\n\nExceptions are lists containing various information about the error.\nThey may optionally, as the first element, contain the error location\nof the form `(io row column)`.\n\nExamples:\n\n (def e (list (list *stdin* 3 10) 'type-error 'str 123))\n (print-exception e)\n ; ‼ *stdin*:3:10: type error: expected str, got fixnum: 123" set-top-level-value! "Evaluate the expression and assign the result to the symbol in the top\nlevel (global) environment.\n\nThe use of this function is discouraged. For the usual assignment of\nvalues to names it is recommended instead to use `(def …)` and/or\n`(set! …)`.\n\nExamples:\n\n (let {[abc 2]}\n (set-top-level-value! 'abc 123)\n abc)\n ; ↳ 2\n abc\n ; ↳ 123" load "Read and evaluate expression from the file or IO object.\n\nIf the argument is an IO object it is _not_ closed after the load\nfinishes.\n\nExamples:\n\n (load \"stuff.sl\")" getpid "Return the process ID of the StreetLISP VM within the operating system\nit's running on." keyword? "Return `T` if the argument is a keyword, `NIL` otherwise." aref "Return the sequence element specified by the subscripts. The sequence\ncan be an array, vector, a list. Multi-dimensional sequences\nof variating types are also supported.\n\nExamples:\n\n (def a '((1 #(2 (3)) 4)))\n (aref a 0)\n ; ↳ (1 (2 (3)) 4)\n (aref a 1)\n ; ‼ index 1 out of bounds\n (aref a 0 0)\n ; ↳ 1\n (aref a 0 1 0)\n ; ↳ 2\n (aref a 0 2)\n ; ↳ 4" sym? "Return `T` if `v` is a symbol, `NIL` otherwise." defmacro "Define a new macro.\n\nExamples:\n\n (defmacro (inc! v)\n \"Increments and returns the value.\"\n :doc-group my-cool-macros\n :doc-see my-other-cool-macro\n (if (num? v)\n (1+ v)\n `(set! ,v (1+ ,v))))\n (inc! 1)\n ; ↳ 2\n (set! x 1)\n (inc! x)\n ; ↳ 2\n x\n ; ↳ 2" u64 "Construct a 64-bit unsigned number." Instructions "VM instructions mapped to their encoded byte representation." assv "Return a pair of a matching key and the associated value, or `NIL` if\nnone matched. Keys are compared using `eqv?`." bignum "Construct a bignum. As opposed to a fixnum, its value is not limited." copy-vec "Return a copy of the vector with the same elements.\n\nNo copies of the values themselves are created, the original values\nare reused.\n\nExamples:\n\n (def v #vec(1 2 \"three\"))\n (def q (copy-vec v))\n (eq? v q)\n ; ↳ NIL\n (equal? v q)\n ; ↳ T\n (map eq? v q)\n ; ↳ #(T T T)" eqv? "Return `T` if both `a` and `b` are of the same value and primitive\n(leaf) type, `NIL` otherwise. Neither cons cell nor vector are not\nconsidered primitive types as they may define deep structures.\n\nExamples:\n\n (eqv? 0.0 0)\n ; ↳ NIL\n\n (eqv? 0 0)\n ; ↳ T\n\n (def a \"1\")\n (def b \"1\")\n (eqv? a b)\n ; ↳ T\n\n (def a '(1))\n (def b '(1))\n (eqv? a b)\n ; ↳ NIL" list "Return a list constructed of the arguments.\n\nExamples:\n\n (list) ; empty list\n ; ↳ NIL\n\n (list 1 2.5 \"a\" 'b)\n ; ↳ (1 2.5 \"a\" b)" __init_globals "Initialize globals that need to be set at load time." rand-u32 "Return a random integer on interval [0, 2³²-1]." revappend "Return list with its elements in reverse order, with `tail` appended\nto its end.\n\nThe original list is copied to construct the reversed version.\n\nExamples:\n\n (def a '(4 5 6))\n (revappend a '(3 2 1))\n ; ↳ (6 5 4 3 2 1)\n a\n ; ↳ (4 5 6)" quote "Leave the expression unevaluated.\n\nShorthand for `(quote expr)`.\n\nExamples:\n\n '(0 1 (+ 2 3)) ; same as (quote (0 1 (+ 2 3)))\n ; ↳ (0 1 (+ 2 3))" nreconc "Return list with its elements in reverse order, with `tail` appended\nto its end.\n\nThe original list may be modified by this function.\n\nExamples:\n\n (def a '(4 5 6))\n (nreconc a '(3 2 1))\n ; ↳ (6 5 4 3 2 1)" defc*r "Define a shorthand for list access using `car` and `cdr`.\n\nExamples:\n\n (defc*r caaaaaaaaddr) ; define the function" (doc group misc) "Miscellaneous." read-all-of "Call `fn` on an IO object until it runs out of data. Return the list\ncontaining the values returned by `fn` on each call." cddddr "Shorthand for (cdr (cdr (cdr (cdr lst))))." prog1 "Evaluate the expressions in order, return the result of the first one.\n\nExamples:\n\n (prog1 (+ 1 2 3)\n (print \"hi\")\n (newline))\n ; ↳ 6" logior "Return the result of bitwise OR (inclusive OR) operation on integers.\n\nExamples:\n\n (logior)\n ; ↳ 0\n\n (logior 2)\n ; ↳ 2\n\n (logior 2 3)\n ; ↳ 3\n\n (logior 2 3 4)\n ; ↳ 7" cadr "Shorthand for `(car (cdr lst))`, that is, _first element of the\nsecond element_.\n\nExamples:\n\n (cadr '(1 2 3))\n ; ↳ 2\n\n (cadr '(1))\n ; ↳ NIL\n\n (cadr NIL)\n ; ↳ NIL" cdadr "Shorthand for (cdr (car (cdr lst)))." (doc group doc) "Writing and reading documentation." nan? "Return `T` if `v` is a floating point representation of NaN, either\nnegative or positive, `NIL` otherwise." caar "Shorthand for (car (car lst))." div0 "Return the quotient of the truncated division `a/n`.\n\nExamples:\n\n (div0 10 3)\n ; ↳ 3\n\n (div0 -10 3)\n ; ↳ -3\n\n (div0 -10 -3)\n ; ↳ 3\n\n (div0 10 -3)\n ; ↳ -3" set-syntax! "Associate a macro name with its application function." mod0 "Return the remainder of the truncated division `a/n`.\n\nExamples:\n\n (mod0 10 3)\n ; ↳ 1\n\n (mod0 -10 3)\n ; ↳ -1\n\n (mod0 -10 -3)\n ; ↳ -1\n\n (mod0 10 -3)\n ; ↳ 1" last-pair "Return the last cell (pair) of the list.\n\nExamples:\n\n (last-pair '(1 2 3))\n ; ↳ (3)\n\n (last-pair '(1 2 . 3))\n ; ↳ (2 . 3)" path-cwd "Return the full path to the current directory of the process, or\nchange it to the path specified with `to` argument." (doc group compress) "Compression." arr? "Return `T` if the argument is either a vector or an array, `NIL`\notherwise." cadaar "Shorthand for (car (cdr (car (car lst))))." unwind-protect "Evaluate `expr` first, then `finally`, regardless of whether\nevaluating the former resulted in any exception thrown or not.\n\nIf an exception has been thrown, it will be raised _after_ evaluating\n`finally`, else the result of `expr` is returned.\n\nExamples:\n\n (unwind-protect (begin (print \"a\") (newline)\n (print (/ 1 0)) (newline) ; an error here\n (print \"b\") (newline)\n (begin (print \"c\") (newline))))\n ; ↳ \"a\"\n ; ↳ \"c\"\n ; ‼ /: division by zero" cos "Return the cosine of `r`, where `r` is given in radians." io-skip "Update the current absolute position within the IO object by the\nrelative offset in bytes, return the resulting absolute position.\n\nTo specify the position relative to the end of the file, use the\noptional `:end T` argument with a negative offset.\n\nExamples:\n\n (def f (buffer))\n (io-write f \"hello, world!\")\n (io-skip f -6 :end T)\n ; ↳ 7\n (read f)\n ; ↳ world!" *io-in* "Current (default) input IO stream.\n\nFunctions may use `*io-in*` for input, which then can be redirected\nfrom a different IO using either `with-input-from` or (a more general)\n`with-bindings`." every "Return `T` if the predicate is true for _every_ element of the list,\n`NIL` otherwise.\n\nExample:\n\n ; is every number odd?\n (every odd? '(1 3 5 7))\n ; ↳ T\n\n ; is every string longer than one rune?\n (every (λ (s) (length> s 1))\n '(\"ab\" \"cd\" \"e\"))\n ; ↳ NIL" atom? "Return `T` if `v` is a _not_ a cons cell, `NIL` otherwise. This is\nthe opposite of `cons?`.\n\nThe term \"atom\" comes from the idea of being indivisible.\n\nExamples:\n\n (atom? \"a\")\n ; ↳ T\n\n (atom? NIL)\n ; ↳ T\n\n (atom? '(1))\n ; ↳ NIL" p64 "Construct a 64-bit abstract pointer value." str-utf8? "Return `T` if `s` is a valid UTF-8 string, `NIL` otherwise.\n\nExamples:\n\n (str-utf8? \"привет\")\n ; ↳ T\n\n (str-utf8? \"при\\xffвет\")\n ; ↳ NIL" apply "Return the result of applying a function `f` to a list of arguments.\n\nThe last argument must always be a list which gets spliced as\narguments to the function.\n\nExamples:\n\n (apply + 1 2 '(3 4 5))\n ; ↳ 15\n\n (apply vec '(1 2 3))\n ; ↳ #(3 4 5)\n\n (apply arr 'u8 '(3 4 5))\n ; ↳ #vu8(3 4 5)" cddr "Shorthand for (cdr (cdr lst))." not "Return `T` if `v` is `NIL`, `T` otherwise." print "Print the arguments to *io-out* with `*print-readably*` set to `T`.\n\nMultiple arguments are separated with a single `#\\space`.\n\nExamples:\n\n (print 1 2 \"abc\")\n ; ‼ 1 2 \"abc\"" cdar "Shorthand for (cdr (car lst))." cdaar "Shorthand for (cdr (car (car lst)))." iota "Return a list of generated indices.\n\nThe sequence of numbers generated will contain the elements\n\n (start start+step … start+(count-1)*step)\n\nExamples:\n\n (iota 4)\n ; ↳ (0 1 2 3)\n\n (iota 4 6)\n ; ↳ (6 7 8 9)\n\n (iota 4 6 -0.5)\n ; ↳ (6 5.5 5.0 4.5)" caaddr "Shorthand for (car (car (cdr (cdr lst))))." environment "Return the list of all bound top level symbols." getprop "Return a property value associated with the symbol or `def` if\nmissing.\n\nIf the default value is not supplied and the property is missing,\nan exception will be thrown." putprop "Associate a property value with the symbol." T "A boolean \"true\".\n\nExamples:\n\n (not T)\n ; ↳ NIL\n\n (if T 'yes 'no)\n ; ↳ yes" * "Return product of the arguments or `1` when none specified." *io-out* "Current (default) output IO stream.\n\nFunctions may use `*io-out*` for output, which then can be redirected\nto a different IO using either `with-output-to` or (a more general)\n`with-bindings`." rand-f32 "Return a random 32-bit floating pointer number on [0.0, 1.0] interval." repl "Run interactive prompt in a loop, reading and evaluating the\nexpressions entered by the user and printing the results.\n\nThis function is executed automatically if StreetLISP is started in\ninteractive mode." io-read-until "Return a string by reading from the IO object until encountering the\ndelimiting rune `r`. The returned string includes the delimiter." get "Return the value associated with the `key` in the table.\n\nIf the key isn't in the table then either return the optional\n`failed-result` argument or (if called without the argument) throw a\n`key-error` exception.\n\nExamples:\n\n (def t #table(a 1 b 2))\n (get t 'a)\n ; ↳ 1\n (get t 'b NIL)\n ; ↳ 2\n (get t 'c)\n ; ‼ key not found: a\n (get t 'c 123)\n ; ↳ 123" table? "Return `T` if the argument is a table, `NIL` otherwise." u16 "Construct a 16-bit unsigned number." logxor "Return the result of bitwise XOR (exclusive OR) operation on integers.\n\nExamples:\n\n (logxor)\n ; ↳ 0\n\n (logxor 2)\n ; ↳ 2\n\n (logxor 2 3)\n ; ↳ 1\n\n (logxor 2 3 4)\n ; ↳ 5" acos "Return the arc cosine of `x` in radians." time->str "Return the number of seconds since Epoch formatted as time and date.\n\nThis is the opposite of `str->time`.\n\nExamples:\n\n (time->str (time-now))\n ; ↳ \"Tue May 6 03:21:01 CES 2025\"" caddr "Shorthand for (car (cdr (cdr lst)))." to-proper "Return a proper list that is a copy of the original list.\n\nExamples:\n\n (to-proper '(1 2))\n ; ↳ (1 2)\n\n (to-proper '(1 . 2))\n ; ↳ (1 2)" table-keys "Return the list of all keys of the table.\n\nExamples:\n\n (def t #table(a 1 b 2 c 1))\n (table-keys t)\n ; ↳ (a b c)" catch "Evaluate `expr` and catch any exception thrown while evaluating by a\ncall to `throw` with the specified `tag`.\n\nIf no exception was thrown, return the result of the expression. In\ncase an exception thrown has a different tag, raise it further, to be\ncaught on a higher level of exception handling logic." __start "The system boot image entry.\n\nThis is the first function executed by the VM after initialization." NIL "An empty list. Can be used as the opposite of T in boolean\nexpressions.\n\nExamples:\n\n (not NIL)\n ; ↳ T\n\n (if NIL 'yes 'no)\n ; ↳ no\n\n (car NIL)\n ; ↳ NIL\n\n (cdr NIL)\n ; ↳ NIL" floor "Return the largest integer that is less than or equal to `x`.\n\nInfinity and NaN `floor` to themselves.\n\nExamples:\n\n (floor 1.2)\n ; ↳ 1.0\n\n (floor -1.2)\n ; ↳ -2.0\n\n (floor -5)\n ; ↳ -5.0" pi "Mathematical constant π." add-exit-hook "Puts an one-argument function on top of the list of exit hooks.\n\nOn shutdown each exit hook is called with the exit status as a single\nargument, which is (usually) `NIL` on success and a string describing\nan error otherwise.\n\nThe hook added last will be called first." str-join "Return concatenated elements of `strlist`, separated between each\nother with `sep`, as a single string.\n\nThe separator can be of any type suitable for `io-write` - a rune,\nstring, array of C primitives.\n\nExamples:\n\n (str-join '(\"\" \"n\" \"9\" \"heh\")\n *directory-separator*)\n ; ↳ \"/n/9/heh\"\n\n (str-join '(\"a\" \"b\" \"c\") #\\.)\n ; ↳ \"a.b.c\"" (doc group sys) "OS-specific functions." >= "Return `T` if the arguments are in non-increasing order (previous\none is greater than or equal to the next one)." lognot "Return the result of bitwise NOT (complement) operation on an integer.\n\nExamples:\n\n (lognot 0)\n ; ↳ -1\n\n (lognot #s8(63))\n ; ↳ #s8(-64)\n\n (lognot #u16(32767))\n ; ↳ #u16(32768)" void? "Return `T` if `v` is `#`, `NIL` otherwise." length= "Perform a bounded length test and return `T` if the length is `n`,\n`NIL` otherwise.\n\nUse this instead of `(= (length seq) n)`, since it avoids unnecessary\nwork and always terminates.\n\nThe value of `seq` can be of any sequence type." int? "Return `T` if the argument is an integer, `NIL` otherwise." nanoseconds-monotonic "Return the number of nanoseconds passed since the first call to this\nfunction.\n\nThe first call will always return 0.\n\nExamples:\n\n (nanoseconds-monotonic)\n ; ↳ #u64(0)\n (nanoseconds-monotonic)\n ; ↳ #u64(47840)" io-discard-buffer "Discard the contents of the output buffer of the writable IO." with-input-from "Evaluate expressions in `body` with `*io-in*` set to `io` during the\nevaluation.\n\nExamples:\n\n ; read a single expression from a file\n ; and print it\n (with-output-to (file \"/tmp/1.txt\" :read)\n (print (read *io-in*))\n (newline))" *stdout* "Standard output IO stream." car "Return the first element of a cons cell (head of a list) or `NIL` if\nnot available.\n\nExamples:\n\n (car NIL)\n ; ↳ NIL\n\n (car '(1 2 3))\n ; ↳ 1\n\n (car '(1 . 2))\n ; ↳ 1" ceiling "Return the smallest integer that is greater than or equal to `x`.\n\nInfinity and NaN `ceiling` to themselves.\n\nExamples:\n\n (ceiling 1.2)\n ; ↳ 2.0\n\n (ceiling -1.2)\n ; ↳ -1.0\n\n (ceiling -5)\n ; ↳ -5.0" arr "Construct a packed array containing the specified arguments.\n\nThe arguments will be coerced to a single `type` which must be\na fixed-width number or pointer type, or rune.\n\nExamples:\n\n (arr 's8 0 1 2)\n ; ↳ #arr(s8 0 1 2)\n\n (arr 'rune 0 1 2)\n ; ↳ #arr(rune #\\nul #\\soh #\\stx)" <= "Return `T` if the arguments are in non-decreasing order (previous\none is less than or equal to the next one)." length> "Perform a bounded length test and return `T` if the length is greater\nthan `n`, `NIL` otherwise.\n\nUse this instead of `(> (length seq) n)`, since it avoids unnecessary\nwork and always terminates.\n\nThe value of `seq` can be of any sequence type." arg-error "Raise an argument error exception." asin "Return the arc sine of `x` in radians." put! "Store the value associated with the key and return the table.\n\nAny existing value associated with the key will be replaced.\n\nExamples:\n\n (def t #table(a 1 b 2))\n (put! t 'c 3)\n ; ↳ #table(c 3 b 2 a 1)\n (put! t 'a \"hello\")\n ; ↳ #table(c 3 b 2 a \"hello\")" log "Return the logarithm of `x` in `base`.\n\nDefault base is `e`, returning natural logarithm of the first\nargument.\n\nExamples:\n\n (log 100 10)\n ; ↳ 2.0\n\n (log 256 2)\n ; ↳ 8.0\n\n (log (exp 4))\n ; ↳ 4.0" (doc group number) "Operations on numbers, mathematical constants." cdaddr "Shorthand for (cdr (car (cdr (cdr lst))))." ash "Return the integer shifted by the specified number of bits to the\nright (negative `nbits`) or left (positive `nbits`).\n\nExamples:\n\n (ash -3 3)\n ; ↳ -24\n\n (ash 1 3)\n ; ↳ 8" str-sub "Return the portion of the string within the specified bounds.\n\nThe `start` and `end` index by rune. Specifying any index out of bounds\nof the string will result in an exception thrown.\n\nIf `end` isn't specified the portion is assumed to begin at `start`\nuntil the end of the original string.\n\nExamples:\n\n (str-sub \"hello\" 2)\n ; ↳ \"llo\"\n\n (str-sub \"hello\" 3 3)\n ; ↳ \"\"\n\n (str-sub \"hello\" 2 4)\n ; ↳ \"ll\"" most-negative-fixnum "A constant integer closest to negative infinity that can be\nrepresented by fixnum type on this particular platform." memv "Return the tail of a list beginning with the item, or `NIL` otherwise.\nList elements are compared to the `item` using `eqv?`." max "Return the largest among the arguments.\n\nExamples:\n\n (max 3 1 9 4)\n ; ↳ 9\n\n (max 'c 'h 'z 'a)\n ; ↳ z\n\n (max \"t\" \"g\" \"a\")\n ; ↳ \"t\"" cddadr "Shorthand for (cdr (cdr (car (cdr lst))))." closure? "Return `T` if the argument is a function that is implemented in LISP\n(as opposed to a C builtin), `NIL` otherwise.\n\nExamples:\n\n (closure? closure?)\n ; ↳ T\n\n (closure? length)\n ; ↳ NIL" read-all "Return a list of terms read from the IO object until it ran out of\ndata.\n\nExamples:\n\n ; read current process' status file on Plan 9\n (def status (file (str \"/proc/\" (getpid) \"/status\")))\n (read-all status)\n ; ↳ (sl glenda Pread 40 0 4940 0 0 0 1856 10 10)" rand-f64 "Return a random 64-bit floating point number on interval [0.0, 1.0]." help-print-header "Format and print signature(s) of the term for `(help term)` output." arg-counts "VM instructions mapped to their expected arguments count." sleep "Halt the StreetLISP VM for the specified duration of time in seconds.\n\nExamples:\n\n (sleep 0.1) ; sleep for 100ms" s16 "Construct a 16-bit signed number." rune? "Return `T` if the value is a rune, `NIL` otherwise." os-setenv "Add or replace the value of the environment variable `name` to\n`value`.\n\nIf `value` is `NIL`, the variable is deleted from the environment if\nit exists." __script "Execute a single file at `path`.\n\nAn unhandled exception will result in it being printed to `*io-err*`\nand the process exiting with a non-zero (non-empty in case OS is Plan\n9) status signaling an error to its parent.") *doc-extra* #table(append ((:doc-group . list) (:doc-see . nconc) (:doc-see . revappend)) io-eof? ((:doc-group . io)) path-exists? ((:doc-group . io) (:doc-see . file) (:doc-see . delete-file)) cadddr ((:doc-group . list)) scanl ((:doc-group . list) (:doc-see . foldl) (:doc-see . scanl1)) sort ((:doc-group . list) (:doc-see . partition)) fixnum? ((:doc-group . type) (:doc-group . number) (:doc-see . fixnum) (:doc-group . builtin)) exit ((:doc-group . sys)) __finish ((:doc-group . vm) (:doc-see . __start)) caaar ((:doc-group . list)) s32 ((:doc-group . number) (:doc-see . u32)) u8 ((:doc-group . number) (:doc-see . s8)) any ((:doc-group . list) (:doc-see . every)) nthcdr ((:doc-group . list) (:doc-see . nth)) os-getenv ((:doc-group . sys) (:doc-see . os-setenv)) s8 ((:doc-group . number) (:doc-see . u8)) io-close ((:doc-group . io) (:doc-see . file)) io-line! ((:doc-group . io) (:doc-see . io-line) (:doc-see . io-column!)) num? ((:doc-group . type) (:doc-group . number) (:doc-see . nan?) (:doc-group . builtin)) +os-name+ ((:doc-group . sys) (:doc-see . +os-version+)) assert ((:doc-group . debug) (:doc-see . assert-fail)) vec->list ((:doc-group . list) (:doc-see . list->vec)) 1+ ((:doc-group . number) (:doc-see . 1-)) throw ((:doc-group . error) (:doc-see . catch)) positive? ((:doc-group . number) (:doc-group . compare)) atan ((:doc-group . number)) *builtins* ((:doc-group . builtin)) remprop ((:doc-group . prop)) io-copy-until ((:doc-group . io) (:doc-see . io-copy)) delete-file ((:doc-group . io) (:doc-see . file) (:doc-see . path-exists?)) cdddar ((:doc-group . list)) set-cdr! ((:doc-group . list) (:doc-group . builtin)) stacktrace ((:doc-group . debug) (:doc-see . print-stack-trace)) eq? ((:doc-group . compare) (:doc-group . builtin)) io->str ((:doc-group . io)) bound? ((:doc-group . builtin)) list->vec ((:doc-group . list) (:doc-see . vec->list)) odd? ((:doc-group . number) (:doc-see . even?)) def ((:doc-group . syntax) (:doc-see . defdoc) (:doc-see . set!)) list? ((:doc-group . list) (:doc-group . type) (:doc-see . list) (:doc-see . proper-list?)) str-rep ((:doc-group . string)) time ((:doc-group . debug)) size-of ((:doc-group . misc) (:doc-see . type-of)) sym ((:doc-group . misc) (:doc-see . sym?)) tanh ((:doc-group . number)) for ((:doc-group . syntax) (:doc-see . while)) begin ((:doc-group . syntax) (:doc-see . prog1)) const? ((:doc-group . type)) str-trim ((:doc-group . string) (:doc-see . str-sub) (:doc-see . str-map)) io-pos! ((:doc-group . io) (:doc-see . io-pos) (:doc-see . io-skip)) return ((:doc-group . syntax)) *stderr* ((:doc-group . io) (:doc-see . *stdout*) (:doc-see . *stdin*)) tan ((:doc-group . number)) table ((:doc-group . table) (:doc-see . get) (:doc-see . put!)) __rcscript ((:doc-group . vm) (:doc-see . *prompt*) (:doc-see . *interactive*)) doc-group ((:doc-group . doc)) cdaaar ((:doc-group . list)) bounds-error ((:doc-group . error)) even? ((:doc-group . number) (:doc-see . odd?)) *properties* ((:doc-group . prop)) zero? ((:doc-group . number) (:doc-group . compare)) proper-list? ((:doc-group . list) (:doc-group . type) (:doc-see . list?)) io-filename! ((:doc-group . io) (:doc-see . io-filename)) random ((:doc-group . rand)) *directory-separator* ((:doc-group . sys) (:doc-see . *linefeed*)) reverse! ((:doc-group . list) (:doc-see . reverse)) eval ((:doc-group . vm) (:doc-see . load)) cdaadr ((:doc-group . list)) u32 ((:doc-group . number) (:doc-see . s32)) cons ((:doc-group . list) (:doc-see . cons?) (:doc-see . list) (:doc-group . builtin)) filter ((:doc-group . list) (:doc-see . partition)) assq ((:doc-group . list) (:doc-see . assoc) (:doc-see . assv)) io-buffer-mode! ((:doc-group . io) (:doc-see . io-buffer-mode)) most-positive-fixnum ((:doc-group . number) (:doc-see . most-negative-fixnum)) del! ((:doc-group . table) (:doc-see . has?) (:doc-see . get) (:doc-see . put!)) when ((:doc-group . syntax) (:doc-see . unless) (:doc-see . if)) vec? ((:doc-group . type) (:doc-group . builtin)) min ((:doc-group . compare) (:doc-see . max)) cddaar ((:doc-group . list)) num->str ((:doc-group . string)) io? ((:doc-group . io) (:doc-group . type)) eof-object? ((:doc-group . io) (:doc-group . type)) help ((:doc-group . doc)) mod ((:doc-group . number) (:doc-see . div) (:doc-see . mod0)) if ((:doc-group . syntax) (:doc-see . when) (:doc-see . unless)) p32 ((:doc-group . number) (:doc-see . p64) (:doc-see . ptr)) io-read-lines ((:doc-group . io) (:doc-see . io-read-line) (:doc-see . io-read-all)) io-line ((:doc-group . io) (:doc-see . io-column) (:doc-see . io-line!)) sym-set-doc ((:doc-group . doc)) macrocall? ((:doc-group . syntax) (:doc-see . macroexpand-1) (:doc-see . macroexpand)) trycatch ((:doc-group . syntax) (:doc-see . unwind-protect)) iterate ((:doc-group . list)) *syntax-environment* ((:doc-group . syntax) (:doc-see . get-syntax) (:doc-see . set-syntax!)) table-values ((:doc-group . table) (:doc-see . table-keys)) macroexpand ((:doc-group . syntax) (:doc-see . macroexpand-1)) caadr ((:doc-group . list)) type-of ((:doc-group . type) (:doc-see . size-of)) top-level-value ((:doc-group . misc) (:doc-see . set-top-level-value!)) defstruct ((:doc-group . struct)) caadar ((:doc-group . list)) foldl1 ((:doc-group . list) (:doc-see . foldl) (:doc-see . foldr1)) buffer ((:doc-group . io)) assoc-list ((:doc-group . list) (:doc-see . assoc)) builtin? ((:doc-group . type) (:doc-see . builtin) (:doc-see . fn?) (:doc-see . closure?) (:doc-group . builtin)) str-map ((:doc-group . string)) macroexpand-1 ((:doc-group . syntax) (:doc-see . macroexpand)) +endianness+ ((:doc-group . sys)) str ((:doc-group . string)) negative? ((:doc-group . number) (:doc-group . compare)) void ((:doc-group . misc) (:doc-see . void?)) assert-fail ((:doc-group . debug) (:doc-see . assert)) io-read-line ((:doc-group . io) (:doc-see . eof-object?) (:doc-see . io-read-lines)) and ((:doc-group . syntax) (:doc-see . or) (:doc-see . not)) 1- ((:doc-group . number) (:doc-see . 1+)) io-buffer-mode ((:doc-group . io) (:doc-see . io-buffer-mode!)) that ((:doc-group . vm) (:doc-see . repl)) equal? ((:doc-group . compare) (:doc-group . builtin)) unquote ((:doc-group . syntax) (:doc-see . "(quasiquote expr)") (:doc-see . "(quote expr)")) cddar ((:doc-group . list)) *interactive* ((:doc-group . vm) (:doc-see . *prompt*)) or ((:doc-group . syntax) (:doc-see . and) (:doc-see . not)) = ((:doc-group . number) (:doc-group . compare) (:doc-group . builtin)) fn? ((:doc-group . type) (:doc-see . fn) (:doc-see . builtin?) (:doc-see . closure?) (:doc-group . builtin)) caaadr ((:doc-group . list)) make-system-image ((:doc-group . vm)) subseq ((:doc-group . list) (:doc-see . str-sub) (:doc-see . copy-list) (:doc-see . nthcdr)) set! ((:doc-group . syntax) (:doc-see . set-top-level-value!)) vm-stats ((:doc-group . debug) (:doc-group . vm)) ptr ((:doc-group . number) (:doc-see . p32) (:doc-see . p64) (:doc-see . ptr)) caddar ((:doc-group . list)) print-stack-trace ((:doc-group . error) (:doc-see . stacktrace)) *stdin* ((:doc-group . io) (:doc-see . *stdout*) (:doc-see . *stderr*)) cosh ((:doc-group . number)) < ((:doc-group . compare) (:doc-group . builtin)) copy-tree ((:doc-group . list) (:doc-see . copy-list)) f32 ((:doc-group . number) (:doc-see . f64)) sin ((:doc-group . number)) io-copy ((:doc-group . io) (:doc-see . io-copy-until)) delete-duplicates ((:doc-group . list)) > ((:doc-group . compare)) str-rune ((:doc-group . string) (:doc-see . str-sub)) scanl1 ((:doc-group . list) (:doc-see . foldl) (:doc-see . scanl)) foldl ((:doc-group . list) (:doc-see . foldr) (:doc-see . foldl1)) +os-version+ ((:doc-group . sys) (:doc-see . +os-name+)) abs ((:doc-group . number)) with-output-to ((:doc-group . io) (:doc-see . with-input-from)) *linefeed* ((:doc-group . sys) (:doc-see . newline) (:doc-see . *directory-separator*)) str? ((:doc-group . type) (:doc-see . str) (:doc-see . str-utf8?)) cons? ((:doc-group . type) (:doc-see . cons) (:doc-see . list?) (:doc-group . builtin)) str-split ((:doc-group . string)) io-read ((:doc-group . io) (:doc-see . io-write) (:doc-see . io-read-until)) aset! ((:doc-group . array) (:doc-see . aref) (:doc-group . builtin)) - ((:doc-group . number) (:doc-group . builtin)) makunbound ((:doc-group . misc) (:doc-see . bound?)) io-truncate ((:doc-group . io)) rand ((:doc-group . rand)) quasiquote ((:doc-group . syntax) (:doc-see . "(unquote expr)") (:doc-see . "(quote expr)")) io-column! ((:doc-group . io) (:doc-see . io-column) (:doc-see . io-line!)) copy-list ((:doc-group . list) (:doc-see . copy-tree) (:doc-see . nthcdr) (:doc-see . subseq)) logand ((:doc-group . number)) time-now ((:doc-group . time) (:doc-see . nanoseconds-monotonic)) sinh ((:doc-group . number)) *argv* ((:doc-group . vm) (:doc-see . *interactive*)) top-level-exception-handler ((:doc-group . error)) identity ((:doc-group . misc)) untrace ((:doc-group . debug) (:doc-see . trace) (:doc-see . traced?)) count ((:doc-group . list)) io-pos ((:doc-group . io) (:doc-see . io-pos!)) map-int ((:doc-group . list) (:doc-see . iota)) table->assoc-list ((:doc-group . table) (:doc-see . table-keys) (:doc-see . table-values)) length< ((:doc-group . list) (:doc-see . length=) (:doc-see . length>)) unless ((:doc-group . syntax) (:doc-see . when) (:doc-see . if)) str->time ((:doc-group . time) (:doc-see . time->str) (:doc-see . time-now)) get-syntax ((:doc-group . syntax) (:doc-see . set-syntax!)) ptr? ((:doc-group . type) (:doc-group . number) (:doc-see . ptr)) expt ((:doc-group . number)) io-read-all ((:doc-group . io) (:doc-see . read-all) (:doc-see . io-read-lines)) gc ((:doc-group . vm) (:doc-see . vm-stats)) io-write ((:doc-group . io) (:doc-see . io-read)) table-invert ((:doc-group . table) (:doc-see . table-values)) lz-unpack ((:doc-group . compress)) div ((:doc-group . number) (:doc-see . mod) (:doc-see . div0)) princ ((:doc-group . io) (:doc-see . print)) last-cdr ((:doc-group . list) (:doc-see . last-pair)) trace ((:doc-group . debug) (:doc-see . untrace) (:doc-see . traced?)) io-filename ((:doc-group . io) (:doc-see . io-filename!)) gensym? ((:doc-group . type) (:doc-see . sym?) (:doc-see . sym)) defdoc ((:doc-group . doc)) cdddr ((:doc-group . list)) copy-table ((:doc-group . table) (:doc-see . table->assoc-list)) set-car! ((:doc-group . list) (:doc-group . builtin)) partition ((:doc-group . list) (:doc-see . filter)) has? ((:doc-group . table) (:doc-see . get) (:doc-see . put!) (:doc-see . del!)) vec ((:doc-group . array) (:doc-see . vec-alloc) (:doc-see . arr) (:doc-group . builtin)) while ((:doc-group . syntax) (:doc-see . for)) rune ((:doc-group . string) (:doc-see . rune?)) *exit-hooks* ((:doc-group . vm) (:doc-see . add-exit-hook)) cadar ((:doc-group . list)) type-error ((:doc-group . error)) file ((:doc-group . io)) nth ((:doc-group . list) (:doc-see . nthcdr)) cdr ((:doc-group . list) (:doc-group . builtin)) / ((:doc-group . number) (:doc-see . div0) (:doc-see . div) (:doc-group . builtin)) newline ((:doc-group . io) (:doc-see . *linefeed*)) separate-doc-from-body ((:doc-group . doc)) rand-u64 ((:doc-group . rand)) cdadar ((:doc-group . list)) sqrt ((:doc-group . number)) foldr ((:doc-group . list) (:doc-see . foldl) (:doc-see . foldr1)) reverse ((:doc-group . list) (:doc-see . reverse!)) lz-pack ((:doc-group . compress)) *prompt* ((:doc-group . vm) (:doc-see . *interactive*)) member ((:doc-group . list) (:doc-see . memq) (:doc-see . memv)) bignum? ((:doc-group . type) (:doc-group . number) (:doc-see . bignum)) fixnum ((:doc-group . number) (:doc-see . fixnum?)) f64 ((:doc-group . number) (:doc-see . f32)) memq ((:doc-group . list) (:doc-see . member) (:doc-see . memv)) str->num ((:doc-group . string) (:doc-see . num->str)) exp ((:doc-group . number)) caaaar ((:doc-group . list)) io-column ((:doc-group . io) (:doc-see . io-line) (:doc-see . io-column!)) traced? ((:doc-group . debug) (:doc-see . trace) (:doc-see . untrace)) s64 ((:doc-group . number) (:doc-see . u64)) io-flush ((:doc-group . io) (:doc-see . io-discard-buffer) (:doc-see . io-buffer-mode)) assoc ((:doc-group . list) (:doc-see . assoc-list) (:doc-see . assq) (:doc-see . assv)) + ((:doc-group . number) (:doc-group . builtin)) cadadr ((:doc-group . list)) foldr1 ((:doc-group . list) (:doc-see . foldr) (:doc-see . foldl1)) compare ((:doc-group . compare) (:doc-group . builtin)) error ((:doc-group . error)) *io-err* ((:doc-group . io) (:doc-see . *io-out*) (:doc-see . *io-in*) (:doc-see . with-bindings)) print-exception ((:doc-group . error) (:doc-see . *exception-print-level*) (:doc-see . *exception-print-length*)) set-top-level-value! ((:doc-group . misc) (:doc-see . top-level-value) (:doc-see . set!)) load ((:doc-group . vm) (:doc-see . eval)) getpid ((:doc-group . sys)) keyword? ((:doc-group . type)) aref ((:doc-group . array) (:doc-see . aset!) (:doc-group . builtin)) sym? ((:doc-group . type) (:doc-see . sym) (:doc-see . gensym?) (:doc-group . builtin)) defmacro ((:doc-group . syntax) (:doc-see . macroexpand)) u64 ((:doc-group . number) (:doc-see . s64)) Instructions ((:doc-group . builtin)) assv ((:doc-group . list) (:doc-see . assoc) (:doc-see . assq)) bignum ((:doc-group . number) (:doc-see . bignum?)) copy-vec ((:doc-group . array)) eqv? ((:doc-group . compare) (:doc-group . builtin)) list ((:doc-see . list?) (:doc-see . cons) (:doc-group . builtin)) __init_globals ((:doc-group . vm)) rand-u32 ((:doc-group . rand)) revappend ((:doc-group . list) (:doc-see . nreconc)) quote ((:doc-group . syntax) (:doc-see . "(quasiquote expr)") (:doc-see . "(unquote expr)")) nreconc ((:doc-group . list) (:doc-see . revappend)) defc*r ((:doc-group . list)) read-all-of ((:doc-group . io) (:doc-see . read-all) (:doc-see . io-read-lines)) cddddr ((:doc-group . list)) prog1 ((:doc-group . syntax) (:doc-see . begin)) logior ((:doc-group . number)) cadr ((:doc-group . list) (:doc-group . builtin)) cdadr ((:doc-group . list)) nan? ((:doc-group . number) (:doc-group . builtin)) caar ((:doc-group . list)) div0 ((:doc-group . number) (:doc-see . mod0) (:doc-see . div) (:doc-group . builtin)) set-syntax! ((:doc-group . syntax) (:doc-see . get-syntax)) mod0 ((:doc-group . number) (:doc-see . div0) (:doc-see . mod)) last-pair ((:doc-group . list) (:doc-see . last-pair)) path-cwd ((:doc-group . io) (:doc-see . path-exists?)) arr? ((:doc-group . type) (:doc-see . vec?) (:doc-see . arr) (:doc-see . vec)) cadaar ((:doc-group . list)) unwind-protect ((:doc-group . error) (:doc-see . catch)) cos ((:doc-group . number)) io-skip ((:doc-group . io) (:doc-see . io-pos!)) *io-in* ((:doc-group . io) (:doc-see . *io-out*) (:doc-see . *io-err*) (:doc-see . with-input-from)) every ((:doc-group . list) (:doc-see . any)) atom? ((:doc-group . type) (:doc-group . builtin)) p64 ((:doc-group . number) (:doc-see . p32) (:doc-see . ptr)) str-utf8? ((:doc-group . string) (:doc-see . str?)) apply ((:doc-group . builtin)) cddr ((:doc-group . list)) not ((:doc-group . syntax) (:doc-see . and) (:doc-see . or) (:doc-group . builtin)) print ((:doc-group . io) (:doc-see . princ)) cdar ((:doc-group . list)) cdaar ((:doc-group . list)) iota ((:doc-group . list) (:doc-see . map-int)) caaddr ((:doc-group . list)) environment ((:doc-group . debug) (:doc-group . vm) (:doc-see . print-stack-trace)) getprop ((:doc-group . prop) (:doc-see . putprop)) putprop ((:doc-group . prop) (:doc-see . getprop)) T ((:doc-see)) * ((:doc-group . number) (:doc-group . builtin)) *io-out* ((:doc-group . io) (:doc-see . *io-err*) (:doc-see . *io-in*) (:doc-see . with-output-to)) rand-f32 ((:doc-group . rand)) repl ((:doc-group . vm) (:doc-see . that) (:doc-see . *interactive*) (:doc-see . *prompt*)) io-read-until ((:doc-group . io) (:doc-see . io-read)) get ((:doc-group . table) (:doc-see . has?) (:doc-see . put!) (:doc-see . del!)) table? ((:doc-group . type) (:doc-group . table) (:doc-see . table)) u16 ((:doc-group . number) (:doc-see . s16)) logxor ((:doc-group . number)) acos ((:doc-group . number)) time->str ((:doc-group . time) (:doc-see . str->time) (:doc-see . time-now)) caddr ((:doc-group . list)) to-proper ((:doc-group . list) (:doc-see . proper-list?)) table-keys ((:doc-group . table) (:doc-see . table-values)) catch ((:doc-group . error) (:doc-see . catch) (:doc-see . unwind-protect)) __start ((:doc-group . vm) (:doc-see . __finish)) NIL ((:doc-see . T)) floor ((:doc-group . number) (:doc-see . ceiling)) pi ((:doc-group . number)) add-exit-hook ((:doc-group . vm) (:doc-see . *exit-hooks*)) str-join ((:doc-group . string) (:doc-see . str-split)) >= ((:doc-group . compare)) lognot ((:doc-group . number)) void? ((:doc-group . type) (:doc-group . misc) (:doc-see . void)) length= ((:doc-group . list) (:doc-see . length<) (:doc-see . length>)) int? ((:doc-group . type) (:doc-group . number)) nanoseconds-monotonic ((:doc-group . time) (:doc-see . time-now)) io-discard-buffer ((:doc-group . io) (:doc-see . io-flush) (:doc-see . io-buffer-mode)) with-input-from ((:doc-group . io) (:doc-see . with-output-to)) *stdout* ((:doc-group . io) (:doc-see . *stderr*) (:doc-see . *stdin*)) car ((:doc-group . list) (:doc-group . builtin)) ceiling ((:doc-group . number) (:doc-see . floor)) arr ((:doc-group . array) (:doc-see . arr-alloc) (:doc-see . vec)) <= ((:doc-group . compare)) length> ((:doc-group . list) (:doc-see . length<) (:doc-see . length=)) arg-error ((:doc-group . error)) asin ((:doc-group . number)) put! ((:doc-group . table) (:doc-see . get) (:doc-see . has?) (:doc-see . del!)) log ((:doc-group . number)) cdaddr ((:doc-group . list)) ash ((:doc-group . number)) str-sub ((:doc-group . string) (:doc-see . str-rune)) most-negative-fixnum ((:doc-group . number) (:doc-see . most-positive-fixnum)) memv ((:doc-group . list) (:doc-see . member) (:doc-see . memq)) max ((:doc-group . compare) (:doc-see . min)) cddadr ((:doc-group . list)) closure? ((:doc-group . type) (:doc-see . fn?)) read-all ((:doc-group . io) (:doc-see . io-read-all)) rand-f64 ((:doc-group . rand)) help-print-header ((:doc-group . doc)) arg-counts ((:doc-group . builtin)) sleep ((:doc-group . time)) s16 ((:doc-group . number) (:doc-see . u16)) rune? ((:doc-group . type) (:doc-group . string) (:doc-see . rune)) os-setenv ((:doc-group . sys) (:doc-see . os-getenv)) __script ((:doc-group . vm) (:doc-see . __rcscript)))) *syntax-environment* #table(while #fn("z12001PP:" #($while) 7) trycatch #fn("n22001e3:" #($trycatch) 7) def #fn("z2200182PPP:" #($def) 8) prog1 #fn("z12001PP:" #($prog1) 7) bcode:nconst #fn("n1200r2e3:" #(aref) 7) bcode:spmax #fn("n1200r5e3:" #(aref) 7) with-input-from #fn("z12021e1220e2e1e17315163:" #(#fn(nconc) with-bindings *io-in* copy-list) 9) defmacro #fn("z17015186<86=873?0710<870=53@30q422232401_485<061^1:" #(#fn("n10H340q:0<85<20Q;J80485 1arg-lambda? caddr caadr let if cddr #:b#) cond-clauses->if 14)) 7) do #fn("z21<207105220720522023052242526882728e187e12729e17:1=5152e17:82512725e18:52e155e3e2e12725e18952e3^4:" #(#fn(map) car cadr #fn("n170051B38071061:0<:" #(cddr caddr) 6) letrec #:loop# λ #fn(nconc) if begin copy-list) 20) assert-fail #fn("z12021220qe32324e113E0252624e22711??423?@4248651252686528@8651258?8652121C60D@C0127C60q@9078291528E3B082;J904782:51@;082;35048;;36040e185DQ;3:042;02<52;J504858G;3L048F3708G@A08>3;0782=51@30q8E3:02>0e2@7002?e283DQ83;3\\0483H;3M0483DQ;3:042;2@052;J504838CP;J5048384DQ;3:042;02A52;J50484I2B8E108B8F>5?M42C2De18H3{02E8H2Fe28E3E02G2H2Fe22I8Ie2e3@V02J2K2L2FEe32I0e2e32M2N2Fe27O8A51e3e3e3@30qe18K3C02E8K<8M8K=51e3@30qe18E3U02P2I0e22I2Qe28J3808K<@808M8C51e4@30qe17R7S2T8B8L8E8H8I8F>68A52517R7S2U8D8B8L8E8H8I8F>78A5251Ie167^1^1^1^1^1^1^1^1^1^1^1^1^1^2:" #(#(:type :named :constructor :conc-name :predicate) vec #fn("n10H370q:@30q4207172051f22324850A>38652486^2:" #((:read-only) assoc-list cddr #fn(for-each) #fn("n1700 #fn("z12021e1721510e163:" #(#fn(nconc) < reverse) 8) when #fn("z11360q@807021514220231Pqe4:" #(arg-error "when without a body" if begin) 8) quasiquote #fn("n1700E62:" #(bq-process) 7) make-label #fn("n120e1:" #(gensym) 5) unquote #fn("n1200P:" #(unquote) 6) mark-label #fn("n22002122e21e4:" #(emit quote label) 8) begin #fn("z0200P:" #($begin) 6) help #fn("O10001000.///z2W1000J7071?14022C8082<@300087C8082<@30088;3>042324885287P883=0258887e3@4087768:27q53768:28q5387R;360487ZIIIIIIb?b@2987>1?>48?2:_48@2;_421?B42>?C4872?CM02@2A8@>18C2B7C27528A5252@818;;J5048<3\xe2018:8<2D88544768:2Eq537F2G8D527F2H8D528;3H07I7J2K8;8E535147L50@30q48F3W07L5047I2M5147L5042@2N8?>18F5247L50@30q^1^1^14883c07L5047I2O5147L5042@2P8?>18C2B7C27528B525247L50@30q4I@|08=J=08>50360q@l07I2Q883=02R882S52@402T8753488JF087R3@08=J;07I2U51@30q47L5047V60^6^1^1^1^1^1^1^1:" #(#(:print-header) help-print-header group #fn(sym) ":doc-" doc getprop *doc* *formals-list* #fn("n020A51E21842252Q85;3:042384K52;J5048474258651512186225287Q88;3<042386E8753;J50486258951268985888:>427788;295052788;7:7;5152528<3A02<2=7>8<7?5262:q^1^1^1^1^1^1^1^1^1:" #(#fn(str) #fn(str-find) "*" #fn(str-sub) 1- #fn(length) #fn("n1200512185A5286;390422855186;3S04F;J804E86l2;3C0492;J<04878693Ml2^1^1^1:" #(#fn(str) #fn(str-find) #fn(length)) 10) #fn(nconc) filter #fn(environment) table-keys *syntax-environment* #fn(for-each) #fn("n17005147160:" #(princ newline) 6) sort <) environment-find-matching 18) #fn("n313?02021820>2162:72504738251473061:" #(#fn(for-each) #fn("n17050471A51471F0P61:" #(newline princ) 7) newline princ) print-sig 7) #fn("n1200E210225263:" #(#fn(str-sub) #fn(str-find) "\n") first-line 10) #fn("n10B;3B040<20Q;38040T21Q:" #(doc group) doc-group? 6) #fn("n10H;3@0470A71022q5362:" #(member getprop *doc-extra*) doc-extra-term? 10) #fn("n27021221>1q0537362:" #(sort #fn(table-fold) #fn("n3A051370082P:82:" 6) <) table-keys-filter-sort 9) groups #fn(for-each) #fn("n17071227305151r:52A<74025q53515247660:" #(princ str-rpad #fn(str) caddr getprop *doc* newline) 11) #fn(get) *properties* :kind *doc-extra* filter #fn("n10<20Q:" #(:doc-fmt) 6) #fn("n10<20Q:" #(:doc-see) 6) princ foldl #fn("n20=161:" 6) newline "See also:" #fn("n1A<0=700=21q532263:" #(getprop *formals-list* " ") 10) "Members:" #fn("n1A<070021q532263:" #(getprop *formals-list* " ") 10) "no help for " #fn(str) " " "" " (undefined)" void) 25) or #fn("z02021e17205162:" #(#fn(nconc) $or copy-list) 8) defstruct #fn("z0700=5185<85=02?94863H0728873862489Pe15252@30q42526e188e177875163^1^1^1^1^1:" #(separate-doc-from-body #fn("n12002152853=0220E8553@300853<02208552@402324752627AF5351285229862:7;882<528764^1^1^1^1:" #(#fn(str-find) "\n\n" #fn(str-sub) "" #fn(str-split) print-to-str #fn(list*) defstruct "\n" #fn(str) "\n\n " str-join "\n ") fmt 14) sym-set-doc append :doc-fmt #fn(nconc) %defstruct% copy-list) 15) with-output-to #fn("z12021e1220e2e1e17315163:" #(#fn(nconc) with-bindings *io-out* copy-list) 9) bcode:ctable #fn("n1200Ke3:" #(aref) 7) catch #fn("n22012122e123242522e2262722e22829e2e3262:22e20e3e42;22e22<22e2e4e3e3:" #(trycatch λ #:e# if and cons? eq? car quote thrown-value cadr caddr raise) 15) let* #fn("z10H3E02021e1qe17215153e1:2021e173051e1e1720=B3H02024e10=e17215153e1@301515375051e2:" #(#fn(nconc) λ copy-list caar let* cadar) 13) return #fn("|00001000W0000J907050?04210e2:" #(void $return) 6) if #fn("z282360q@80702151422012382Pe4:" #(arg-error "if without an else branch" $if begin) 9) letrec #fn("z1202021e12273052e122240527515154e1227605262:" #(#fn(nconc) λ #fn(map) car #fn("n12021e17205162:" #(#fn(nconc) set! copy-list) 8) copy-list void) 11) bcode:sp #fn("n1200r4e3:" #(aref) 7) defdoc #fn("z10B86;35040<;J404086;35040=70711225251<863I0232487e22489e22488e2e4:232487e22489e2e3^1^1^1^1:" #(separate-doc-from-body append (NIL) sym-set-doc quote) 13) assert #fn("n1200D2122230e2e2e2e4:" #(if raise quote assert-failed) 11) case #fn("z1IIb6b78620_4872186>1_4225023880e2e12425e126278788>215252e3^1^2:" #(#fn("n1700513400:210e2:" #(self-evaluating? $quote) quote-value 6) #fn("n2120C5020:1J40q:1R3=0210A<151e3:1H3=0220A<151e3:1=J>0220A<1<51e3:73741523=0250261e2e3:270261e2e3:" #(else eq? eqv? every sym? memq quote memv) vals->cond 8) #fn(gensym) let #fn(nconc) cond #fn(map) #fn("n1A1_48:<^18251PP^1:" #($set! $begin #fn("n103U00=360q@807021514220<0Te3A<7305151P:q:" #(arg-error "set!: odd number of arguments" $set! cddr) 8)) 9) receive #fn("z22021q1e32221e10e173825153e3:" #(call-with-values λ #fn(nconc) copy-list) 11) defc*r #fn("n120051218551r2~72238586>2247586515326024e22027872853292:87e6^1^1^1:" #(#fn(str) #fn(length) foldl #fn("n22021AF0~52C7022@40231e1P:" #(#\a #fn(str-rune) car cdr) 9) lst iota def "Shorthand for " "." :doc-group list) 13) dotimes #fn("z10<0T20E872122e186e1e17315153e4^2:" #(for #fn(nconc) λ copy-list) 14) unwind-protect #fn("n2202122q1e3e2e1232402225e121e12625e2e4e321e1e3e3:" #(let #:thk# λ prog1 trycatch #:e# raise) 14) throw #fn("n220212223e201e4e2:" #(raise list quote thrown-value) 9) doc-group #fn("n22021222324e22325e2230e2e41e3e2:" #(begin sym-set-doc list quote doc group) 11)) 1+ #fn("n10KM:" #() 1+ 6) 1- #fn("n10K~:" #() 1- 6) 1arg-lambda? #fn("n10B;3L040<20Q;3B040TB;3:04710TK62:" #(λ length=) 1arg-lambda? 7) <= #fn("z1Ib6862086>1_486<^10162:" #(#fn("n21S;JL041<0L2;J5040V340q:A<1<1=62:" 7)) <= 7) > #fn("z1Ib6862086>1_486<^10162:" #(#fn("n21S;JE041<0L2;3;04A<1<1=62:" 7)) > 7) >= #fn("z1Ib6862086>1_486<^10162:" #(#fn("n21S;JL0401= 7) Instructions #table(call.l #u8(81) trycatch #u8(75) loadg.l #u8(68) aref2 #u8(23) box #u8(50) cadr #u8(36) argc #u8(62) setg #u8(71) load0 #u8(21) nan? #u8(38) fixnum? #u8(41) loadc0 #u8(17) loada0 #u8(0) div0 #u8(59) keyargs #u8(31) call #u8(5) loada.l #u8(69) num? #u8(40) sub2 #u8(78) add2 #u8(29) loadc.l #u8(70) loadc #u8(9) builtin? #u8(43) set-car! #u8(47) vargc.l #u8(80) vec #u8(63) ret #u8(10) loadi8 #u8(66) tapply #u8(77) loadvoid #u8(25) loada1 #u8(1) shift #u8(46) atom? #u8(24) cdr #u8(13) brne.l #u8(83) / #u8(58) equal? #u8(52) apply #u8(54) dup #u8(11) loadt #u8(20) bounda #u8(39) jmp.l #u8(48) = #u8(60) not #u8(35) set-cdr! #u8(30) fn? #u8(44) eq? #u8(33) * #u8(57) load1 #u8(27) bound? #u8(42) box.l #u8(86) < #u8(28) brnn.l #u8(84) jmp #u8(16) loadv #u8(2) + #u8(55) brne #u8(19) argc.l #u8(79) compare #u8(61) brn #u8(3) neg #u8(37) loadv.l #u8(67) vargc #u8(74) loadc1 #u8(22) setg.l #u8(72) cons? #u8(18) aref #u8(85) sym? #u8(34) stkcons #u8(87) aset! #u8(64) car #u8(12) cons #u8(32) tcall.l #u8(82) - #u8(56) brn.l #u8(49) optargs #u8(76) closure #u8(14) vec? #u8(45) pop #u8(4) eqv? #u8(51) list #u8(53) seta #u8(15) seta.l #u8(73) brnn #u8(26) loadnil #u8(65) loadg #u8(7) loada #u8(8) tcall #u8(6)) S #fn("z170021q5386380861}2:7223062^1:" #(getprop constructor error "no default constructor for struct: ") S 8) __finish #fn("n120Z3>021220>17062:q:" #(*exit-hooks* #fn(for-each) #fn("n10A61:" 6)) __finish 7) __init_globals #fn("n0r3w04rpw1422w34qw4475w6477w8479w:47;2w?47;2@d3702A@402BwC:" #(*exception-print-level* *exception-print-length* "\n" *linefeed* *exit-hooks* *stdout* *io-out* *stdin* *io-in* *stderr* *io-err* +os-name+ "macos" #fn("n0702161:" #(princ "\e[0m\e[1m#;> \e[0m") 6) #fn("n0702161:" #(princ "#;> ") 6) *prompt* "dos" "\\" "/" *directory-separator*) __init_globals 6) __rcscript #fn("n0708421c360q@T08422c37023@G08424c3=07526514q@4027^184;3904288451708622c37029@402:^185;3=042;857<865387;3D042=8751;39047>8761^1^1^1^1:" #(+os-name+ "unknown" "plan9" "home" "macos" princ "\e]0;StreetLISP v0.999\a" "HOME" #fn(os-getenv) "lib/slrc" ".slrc" #fn(str) *directory-separator* #fn(path-exists?) load) __rcscript 11) __script #fn("n1200>121{:" #(#fn("n070A61:" #(load) 6) #fn("n1700514212205161:" #(top-level-exception-handler #fn(exit) #fn(str)) 7)) __script 4) __start #fn("n2705040w141w240=B3@00=w14730T51@50Dw24723>0745047550@30q42660:" #(__init_globals *argv* *interactive* __script __rcscript repl #fn(exit)) __start 6) abs #fn("n10EL23500U:0:" #() abs 6) add-exit-hook #fn("n1070Pw047160:" #(*exit-hooks* void) add-exit-hook 6) any #fn("n21B;3D0401<51;J:047001=62:" #(any) any 7) append #fn("z0IIb5b6852085>1_486218685>2_4qqP86<87052487=^1^2:" #(#fn("n21J400:12_486<^1161:" #(#fn("n10B3Q000512?2@1>105287J807488P:88=JA07;88<7287152e3:2A7B88P7287152e162^2:Ib7872C187>2_487<^10q62^1:" #(#fn("n10B;3X040<20Q;JN040<21Q;JD040<22Q;3:04730r252;J704022Q:" #(unquote-splicing unquote-nsplicing unquote length>) splice-form? 7) $quote bq-process vec->list list vec apply quasiquote 'quasiquote unquote length= cons 'unquote any last-cdr #fn(map) #fn("n1700A62:" #(bq-bracket1) 7) #fn(nconc) list* #fn("n20J;02071151P:0B3o00<22CX020731AEl23700=@C07425e2760=AK~52e252P:F<0=770instruction #fn("n120A0q63:" #(#fn(get)) #(#table(#.cadr cadr #.aset! aset! #.+ + #.- - #.equal? equal? #.eq? eq? #.builtin? builtin? #.not not #.cons? cons? #.cdr cdr #./ / #.stkcons stkcons #.div0 div0 #.set-car! set-car! #.vec vec #.set-cdr! set-cdr! #.< < #.aref aref #.cons cons #.apply apply #.eqv? eqv? #.vec? vec? #.list list #.car car #.bound? bound? #.nan? nan? #.fn? fn? #.sym? sym? #.compare compare #.fixnum? fixnum? #.atom? atom? #.= = #.num? num? #.* *)) 8) caaaar #fn("n10<<<<:" #() caaaar 5) caaadr #fn("n10T<<:" #() caaadr 5) caaar #fn("n10<<<:" #() caaar 5) caadar #fn("n101_40r3G86<187E5388;JG042187510r322871e152p4^1^1^1:" #(#fn("n31J40q:01018283898:8;5748:2?Q;3Y047@7Aw@42B8<>12C2D8=>1{8=504^1^1;3504r2^1:7501q8954760K524770183=5389R;3;047E891E538=2FQ;3A0489Z;39042189517G8>51;39042H8>518?;3A048?EG2I7J2K52l28@;37048?KG8AS;J9048A807L2M8A2N8<5447608instruction length> 255 compile-in bcode:stack compile-arglist emit tcall.l call.l λ inlineable? compile-let compile-builtin-call stkcons *io-out* *stderr* #fn("n0Aw0:" #(*io-out*) 4) #fn("n0702161:" #(princ "GOTIT\n") 6) #fn("n1A50420061:" #(#fn(raise)) 6) lookup-sym global closure? #fn(fn-code) #fn(get) Instructions argc compile-error "arity error: expected " ", got " tcall call) compile-app 19) compile-arglist #fn("n3202101>282524228261:" #(#fn(for-each) #fn("n170AFq054471AK62:" #(compile-in bcode:stack) 9) #fn(length)) compile-arglist 7) compile-arglist-let #fn("n37071w042287>1230182>32488>1{88504^1^14252601>28262:" #(*io-out* *stderr* #fn("n0Aw0:" #(*io-out*) 4) #fn("n07021A22F22922367:" #(princ "compile-arglist-let: " ":" "\n") 12) #fn("n1A50420061:" #(#fn(raise)) 6) #fn(map) #fn("n170AFq05485X37085@30E7172w142387>1240>12588>1{88504^1^1476A77865152486^1^1:" #(compile-in *io-out* *stderr* #fn("n0Aw0:" #(*io-out*) 4) #fn("n07021A222364:" #(princ "compile-arglist-let-lambda: " ":" "\n") 9) #fn("n1A50420061:" #(#fn(raise)) 6) bcode:stack 1+) 10)) compile-arglist-let 8) compile-aset! #fn("n3208251r2~87Kl23?07101q2282P64:K87L23g07101q237482E8753P5447501748287525376088U5247702262^1:7822r362^1:" #(#fn(length) compile-app aset! aref subseq compile-arglist bcode:stack emit argc-error) compile-aset! 14) compile-begin #fn("n483H3?0700182715064:83=H3>070018283<64:7001q83<5447202352474018283=64:" #(compile-in void emit pop compile-begin) compile-begin 9) compile-builtin-call #fn("n7I2086850>3?;4217285q538<3I07383=8<52J=074858<52@30q4858=25CL086El23:07602762:760858663:8=28C708;60:8=29C708;60:8=2:C]086El23:07602;62:86r2l23:07602<62:760858663:8=2=Cm086El23:07485K62:86Kl23:07602>62:86r2l23:07602?62:760858663:8=2@CL086El23:07602A62:760858663:8=2BCL086El23:07485K62:760858663:8=2CCN086El23<07602D2E63:760858663:8=2FCX086r2L23;07485r262:760823702G@402F8663:8=2HCb086r2l23:07602I62:r286L23?07608586r3~63:7485r262:7608562^1^1^1:" #(#fn("n0AEl239070FK62:7192FA63:" #(argc-error emit) num-compare 8) #fn(get) arg-counts length= argc-error list emit loadnil < = + load0 add2 - neg sub2 * load1 / vec loadv #() apply tapply aref aref2) compile-builtin-call 12) compile-error #fn("z070210P}2:" #(error "compile: ") compile-error 7) compile-f #fn("n2702101>22262:" #(call-with-values #fn("n070AF62:" #(compile-f-) 7) #fn("n20:" 4)) compile-f 7) compile-f- #fn("n2IIb6862086>1_421?7472501T731T517415175761T52277875798<5252731518>J702:@408>89H360E@802;89518@2;8<51~75878<522;8B5186<8;518D3=07<2=8D52@30q48<3~08BJL07>882?8A8:3808@U@408@54@\\07@88272A7B8B535247>882C8A8C8:3808@U@408@55@30q42D8@L23I07>888:3702E@402F8@53@W08:3?07>882G8@53@E08882H8@53@30q48<3B07I8808<8;8A55@30q48;8=3?07J8;2K8=53@408;8=3=07J8;8=52@408;7L08F7M7N1518G52537O888H<5247P882;8G51r4M5247Q888HD7N1515447>882R5247S2T7U88EG517V88518?88r5G2;8E51~D5588r3G62^1^1^1^1^1^1^1^1^1^1^1^1^1^1^1^1^1^2:" #(#fn("n10<0=863J0702185>18652;J904A<8661:q^2:" #(any #fn("n1A0Q;3404A:" 6)) any-duplicates 9) #fn("n10B;3904200<61:" #(#fn(keyword?)) keyword-arg? 6) make-code-emitter last-cdr lambda:vars filter cons? #fn(map) caddr cddr λ #fn(length) compile-error "duplicate argument: " emit optargs bcode:indexfor vec car keyargs 255 vargc.l argc.l vargc argc emit-optional-arg-inits append (NIL NIL NIL NIL) extend-env complex-bindings lambda:body box-vars bcode:stack compile-in ret values #fn(fn) encode-byte-code const-to-idx-vec) compile-f- 31) compile-if #fn("n420502050205083T718351728351B3;0738351@30q8;DC=07401828<64:8;J=07401828=64:7401q8;89554750268953475027885347401828<544823<07502852@;0750298:53475027895347401828=544750278:63^6:" #(#fn(gensym) caddr cdddr cadddr compile-in emit brn label ret jmp) compile-if 16) compile-in #fn("|40005000W4000J60q?44I20?9483R3<0710183D64:83H3\x97083EC:07202362:83KC:07202462:83DC:07202562:83J:07202662:7783513:07202862:8983513<0720298363:7202:8363:83<2;C<07<0183=63:8301828364:83<2?Q;J90483<2@Q3\x94083T7A83512B83=51807E2F8:2G2H5448:8;C;07C2I51@30q47J018:8;83<2?Q65^3:83<8:2KCS07L83T513>07M018283T64:7202:83T63:8:2NC=07O01828364:8:2PC>07Q018283=64:8:2RC;07S018363:8:2TCD07U2V183>22W01>262:8:2XC@07Y018283=8465:8:2ZC>07[018283=64:8:2\\CE07]0183T2P7^8351P64:8:2_CS07M01D83=B38083T@607`505447202a62:8:2bCp07M01q2Tq83Te35447c7A835151360q@807C2d5147M01q7A83515447202e62:7>01828364^1^1:" #(#fn("n10Y;3<0470r\xaf0r\xb063:" #(>=) fits-i8 8) compile-sym emit load0 load1 loadt loadnil void? loadvoid loadi8 loadv aset! compile-aset! in-env? compile-app $set! $set!- caddr #fn(length) compile-error "set!: arity error: expected 2, got " type-error sym "set!" "name" "set!: useless assignment to itself" compile-set! $quote self-evaluating? compile-in $if compile-if $begin compile-begin $prog1 compile-prog1 λ call-with-values #fn("n070AF62:" #(compile-f-) 7) #fn("n270A21053413K02223AF>2152470A242515163:q:" #(emit loadv #fn(for-each) #fn("n170AF0q64:" #(compile-sym) 9) closure #fn(length)) 9) $and compile-and $or compile-or $while compile-while cddr $return void ret $trycatch 1arg-lambda? "trycatch: second form must be a 1-argument lambda" trycatch) compile-in 15) compile-let #fn("n483<83=0r4G88T70018953718;727388518;528:537408=524258=1<521=P7608>8273885154770807=2>2?82525147502@8<63^1^1^1^1:" #(lookup-sym global compile-error "undefined variable: " compile-in emit setg vinfo:index capture-var! loada loadc bcode:stack set-car! error #fn(str) "internal error: misallocated var " seta) compile-set! 13) compile-short-circuit #fn("n783H3?0700182848665:83=H3@070018283<8665:86;J70421507001q83<86554720K52486360q@9073024524730858;534720r/52486360q@907302552476018283=84858657486340q:730278;63^1:" #(compile-in #fn(gensym) bcode:stack emit dup pop compile-short-circuit label) compile-short-circuit 13) compile-sym #fn("n4I20?8471821E538922C|02382513i088248251513\\07526822753;J=047528822953J@07:02;24825163:7:02<8263:8989=51534833A089=T3:07:02?62:q:7:02@7A08252534833A089=T3:07:02?62:q^1^1:" #(#fn("n120051;JB0471051;J80422051S:" #(#fn(io?) void? #fn(eof-object?)) printable? 6) lookup-sym global #fn(const?) #fn(top-level-value) <= *a *z +a +z emit loadv loadg loada vinfo:index car loadc capture-var!) compile-sym 12) compile-thunk #fn("n170q21q7207352e362:" #(compile-f λ lower-def *interactive*) compile-thunk 11) compile-while #fn("n4205020507101q7250544730K52474025885347101q82544740268953474027524730r/5247101q835447402888534740258963^2:" #(#fn(gensym) compile-in void bcode:stack emit label brn pop jmp) compile-while 11) complex-bindings #fn("n2205020507101qq8687564722386>174875162^2:" #(#fn(table) complex-bindings- filter #fn("n120A062:" #(#fn(has?)) 7) table-keys) complex-bindings 13) complex-bindings- #fn("n6Ib:8:208:>1_41J40q:0R3K0833D02101523;022840D63:q:0H;J80473051340q:0<24Q;J8040<25Q3o0210T1523Q022850TD534833>022840TD53@30q@30q476770511q83848566:0<28CV076790518:<17:05152q82S;J50483848566:760<17;051838485562<2=1838485>40=52P^1:" #(#fn("n20J40q:200<1523:0A<0=162:010KG52485^1:" #(#fn(vec-alloc) #fn(for-each) #fn("n2A10p:" 7)) const-to-idx-vec 9) copy-list #fn("|10002000W1000J60q?14Ib6862086>1_4qqP86<870153487=^1^1:" #(#fn("n382;3?0482El2;3504I:41360q@40I:411q053485^1:" #(#fn(table) #fn(table-fold) #fn("n320A0163:" #(#fn(put!)) 8)) copy-table 9) copy-tree #fn("n10H3400:700<51700=51P:" #(copy-tree) copy-tree 7) count #fn("n2Ib68620860>2_486<1E62^1:" #(#fn("n203H0A<0=F0<513801KM@30162:1:" #() count- 8)) count 8) delete-duplicates #fn("n12050Ib686218586>2_486<^10q62^1:" #(#fn(table) #fn("n20H38070161:21A0<523:0F<0=162:22A0?14q?2@F0822?d3=02@?14q?2@30q@c012AC\\0822=d3=02B?14q?2@F0822?d3=02C?14q?2@30q@30q488<12DQ;3b04892ECB00E82<2F88=PPp@J0892GCB00E82<2H88=PPp@30q;J@040E7I182P8852p^140^1^1:" #(#fn("n12002162:" #(#fn(memq) (load0 load1 loadt loadf loadnil loadvoid)) load? 7) car cdr cadr pop #fn(memq) (loadv loadg setg) bcode:indexfor #fn(assq) ((loadv loadv.l) (loadg loadg.l) (setg setg.l) (loada loada.l) (seta seta.l) (box box.l)) 255 ((loadc loadc.l)) loada (0) loada0 (1) loada1 loadc loadc0 loadc1 brn not brnn eq? brne nreconc) emit 12) emit-optional-arg-inits #fn("n582B3\xa90205071022845347382513<07102452@30q471025895347607717883E8453q53q7982515447102:845347102;5247102<895347=0182=8384KM65^1:q:" #(#fn(gensym) emit bounda cddar dup brnn compile-in extend-env subseq cadar seta pop label emit-optional-arg-inits) emit-optional-arg-inits 13) encode-byte-code #fn("n1700517185512286517387r387r2ki2M2452255025502650qqEI8>87L23\xc614868>G?<48<27CP02889868>KMG298;515348>r2M?>@\x9512:8;2;7<883k08<8C2=C702>@X08C2?C702@@L08C2AC702B@@08C2CC702D@408<^1@408<525248>KM?>48>87L2;3804868>G?=42E8<2F523`0288:298;518=5342:8;883707G@407HE515248>KM?>@\xf508<2ICJ02:8;2J8=512K5348>KM?>@\xd608=X3\xcf08<2E8?2L523J02:8;2J8=512K5348>KM?>@\xa502E8?2M523\x8702:8;2J8=512K5348>KM?>42:8;2J868>G512K5348>KM?>48<2NCM02:8;2J868>G512K5348>KM?>@30q@E02:8;2O8=515248>KM?>^1@30q@\x95.42P2Q8;8889>38:5242R8;61^1^1^1^1^1^1^1^1^1^1:" #(reverse! list->vec #fn(length) >= 65536 #fn(table) #fn(buffer) label #fn(put!) #fn(size-of) #fn(io-write) #fn(get) Instructions jmp jmp.l brne brne.l brnn brnn.l brn brn.l #fn(memq) (jmp brne brnn brn) s32 s16 bounda #fn(s32) :little-endian (loadv.l loadg.l setg.l loada.l seta.l argc.l vargc.l call.l tcall.l loadc.l box.l) (optargs keyargs) keyargs #fn(u8) #fn(for-each) #fn("n220A052421AF37072@407324921520~512563:" #(#fn(io-pos!) #fn(io-write) s32 s16 #fn(get) :little-endian) 10) #fn(io->str)) encode-byte-code 21) error #fn("z020210P61:" #(#fn(raise) error) error 7) eval #fn("n170710515160:" #(compile-thunk macroexpand) eval 7) even? #fn("n1200K52El2:" #(#fn(logand)) even? 7) every #fn("n21S;JD0401<51;3:047001=62:" #(every) every 7) expand-def #fn("n10T70051B3:070051@H085R37021@=07223740515285R3<02585861?64861qe162^1:" #(#fn("n21I0B3P04A0<513>0102125822684278528866::" #(#(:key :test :start :end :from-end) identity equal? find-if #fn("n1AF062:" 7) :key :start :end :from-end) find 15) find-if #fn("O200040006000W2000J7071?24W3000J60E?34W4000J60q?44W5000J60q?54Ib:8:220828:>3_483El23@084J;085J60q@N0731838453?14853<074151?1@30q48:<161^1:" #(#(:key :start :end :from-end) identity #fn("n10S;J;04AF0<51513500<:92<0=61:" #() find-if- 7) subseq reverse!) find-if 9) fn-disasm #fn("O100030004000W1000J60q?14W2000J60D?24W3000J60q?34IIIIb:b;21?8422?948:23_48;24_40[3I07526127534785047960:@30q483JO07:02;12<822=E574785047960:@30q42>0512?051II2@8283>2?>42A1838:828;>5??4E2B8<51b@I8@<8AL23\xac242C2D8<8@>2q7E53E8@8=888<8@<52G5148@8@8=8<8@str :base #\0) hex5 9) #table(call.l call box.l box loadvoid "load #" loadg.l loadg aref2 "aref 2" loada1 "loada 1" tcall.l tcall brn.l brn load0 "loadi8 0" brnn.l brnn loadc0 "loadc 0" brne.l brne loada0 "loada 0" loada.l loada jmp.l jmp loadt "load T" argc.l argc loadv.l loadv seta.l seta loadnil "load NIL" sub2 "sub 2" add2 "add 2" loadc.l loadc loadc1 "loadc 1" setg.l setg vargc.l vargc load1 "loadi8 1") princ " > " " // PC" newline void fn-disasm :ip :readable :level #fn(fn-code) #fn(fn-vals) #fn("n10\\3M00[JH07050471022q23A24FKM67:75061:" #(newline fn-disasm :ip :readable :level print) print-val 13) #fn("n370A3U0FEl23N071A72151523A0A182ML237023@402492<1K~5125933>02694<0053@3002765:" #(princ >= 1- " >" " " ": " #fn(get) " ") print-inst 12) #fn(size-of) #fn(table-fold) #fn("n382;J@041AFstr aref (loada.l seta.l loadc.l argc.l vargc.l call.l tcall.l box.l) (optargs keyargs) keyargs " " bounda (jmp brne brnn brn) "@" (jmp.l brne.l brnn.l brn.l)) fn-disasm 23) foldl #fn("n3IIb78720870>2_4218201>3?8482];J904728251390887361:248251390887561:87<18262^2:" #(#fn("n213?0A5_4862_4218201>3?8482];J904728251390887361:248251390887561:87<18262^2:" #(#fn("n213?0A15_4862_413C0232483088>3152@c07583514823F0757605151488<2751@>078051488<0514795047960^1:" #(#(:kind :lpad) "" #fn("n1A70_471220RJ:023051@W00R3C00Z3>02324F5151@A07505137026@40272863:" #(void princ " ;; [" #fn(type-of) #fn(top-level-value) get-syntax "macro" "any" "]") print-type 9) #fn(for-each) #fn("n170A51471F0P51492 255 length= #fn(length)) inlineable? 9) io-read-all #fn("n1205021850524228561^1:" #(#fn(buffer) #fn(io-copy) #fn(io->str)) io-read-all 8) io-read-line #fn("n12002162:" #(#fn(io-read-until) #\newline) io-read-line 7) io-read-lines #fn("n17071062:" #(read-all-of io-read-line) io-read-lines 7) iota #fn("|10003000W1000J60E?14W2000J60K?247021182>2062:" #(map-int #fn("n1A0Fi2M:" 7)) iota 7) iterate #fn("n3E82L2;3B041700015182K~53P:" #(iterate) iterate 10) lambda-vars #fn("n1IIb5b68520_4862186>1_486<00qq544222385>17405162^2:" #(#fn("n1200513E021220512386K52^161:0:" #(#fn(keyword?) #fn(sym) #fn(str) #fn(str-sub)) keyword->sym 9) #fn("n40S;J5040R340D:0B3Z000702:0<27164:01C:07021162:702:027164:" #(compile-error "invalid argument list " ": optional arguments must come after required" caar length= caddar "invalid optional argument " " in list " #fn(keyword?) ": keyword arguments must come last." "invalid formal argument ") check-formals 9) #fn(map) #fn("n10B390A<0<61:0:" 6) to-proper) lambda-vars 11) lambda:body #fn("n170061:" #(caddr) lambda:body 6) lambda:vars #fn("n1700T61:" #(lambda-vars) lambda:vars 6) last-cdr #fn("n10H3400:70051=:" #(last-pair) last-cdr 6) last-pair #fn("n10=H3400:700=61:" #(last-pair) last-pair 6) length< #fn("n27001K~52S:" #(length>) length< 8) length= #fn("n21EL2340q:0B3<0700=1K~62:210511l2:" #(length= #fn(length)) length= 8) length> #fn("n21EL2340D:0B3<0700=1K~62:121051L2:" #(length> #fn(length)) length> 8) list->vec #fn("n1700}2:" #(vec) list->vec 6) list? #fn("n10S;J5040B:" #() list? 5) load #fn("n120051853600@902102252238685>2248586>2{^1^1:" #(#fn(io?) #fn(file) :read #fn("n0Ib48420A84F>3_484<^1III63:" #(#fn("n320A51JF0F<21A51072731515163:7292360q@7024A517315162:" #(#fn(io-eof?) #fn(read) void eval #fn(io-close)) 10)) 8) #fn("n1A360q@7020F51421220e261:" #(#fn(io-close) #fn(raise) load-error) 7)) load 8) lookup-sym #fn("n31J5020:1<2108752883808288P:7201=82KM63^1^1:" #(global #fn(assq) lookup-sym) lookup-sym 11) loop# #:loop# lower-def #fn("|10002000W1000J60q?14I20?640H;J804710513400:0<22CN013@023747505151e2:747505161:0<26CK02726e10Te186051e17805164:2974062^1:" #(#fn("n170051B3N071051B3=02270051P@7073051@607450758551768551863D0278687e328748652P:87^1^1^1:" #(cddr cdddr $begin caddr void get-defined-vars lower-def λ #fn(map)) λ-body 11) quoted? $def #0# lower-def expand-def λ #fn(nconc) last-cdr #fn(map)) lower-def 11) macrocall? #fn("n10B;3904700<61:" #(get-syntax) macrocall? 6) macroexpand #fn("n1IIIIIIIIIb5b6b7b8b9b:b;b1_48722e1_4882385868=87>4_489248=89>2_48:258:>1_48;268:8988>3_48<278=8:8988>4_48=288=8;8<>3_48=<0q62^9:" #(#fn("n20Z;J904200152S:" #(#fn(assq)) top? 7) #fn("n10H3400:020d3400:028662:Ib:8:278:928993>4_48:<^186518:I8;B3b0493<788;51C>08;798;51_@@08;92<8;<89<52_48;=?;@\xfc/48:^1^1^1^1^1^1:" #($begin $def get-defined-vars #fn(nconc) #fn(map) list #fn("n1A<0F<62:" 7) #fn("n10H3400:0372051893>0A<890=f2162:87;J?0486RS;J60486Z3708860:8623C400:8624C90F<0162:8625C:092<0162:8860^1^1^1^1:" #(#fn(assq) #fn("n0Ib48420AF84>3_484<^19261:" #(#fn("n10H3400:07?7@Dw=4Dw>4Dw?4qw@42A898:8;8<>42B8886>22C8=>1{8=504^1^4^1^1^1^1:" #(#fn("n120212208552;J\x9a040Z;3\x930423051S;3\x880424051[S;JC0425051252405151dS;3g042208652S;3Z04762702853;J<04762902:53S;3=042;2405151S^2:" #((*syntax-environment* *properties* *builtins*) (ptr) #fn(memq) #fn(const?) #fn(top-level-value) #fn(str) <= *a *z +a +z #fn(io?)) save? 10) #fn(file) :write :create :truncate filter sort #fn(environment) < nconc #fn(map) list top-level-value *print-pretty* *print-readably* *print-circle* that #fn("n0Aw04Fw1492w2493w3:" #(*print-pretty* *print-readably* *print-circle* that) 4) #fn("n020AF52421F7252423F61:" #(#fn(write) #fn(io-write) *linefeed* #fn(io-close)) 7) #fn("n1A50420061:" #(#fn(raise)) 6)) make-system-image 15) map-int #fn("n2E1L2;3s040E51qP8620K1I898:L23Q04898708;51qPN487=?7^1489KM?9@\n/^251486^1^1:" #(#2=#fn("z0I:" #() void 4)) map-int 13) max #fn("z113;070210163:0:" #(foldl #fn("n201L23401:0:" 6)) max 8) member #fn("n21<0d3401:13:07001=62:q:" #(member) member 7) memv #fn("n21<0c3401:13:07001=62:q:" #(memv) memv 7) min #fn("z113;070210163:0:" #(foldl #fn("n201L23400:1:" 6)) min 8) mod #fn("n207001521i2~:" #(div) mod 8) mod0 #fn("n2001k1i2~:" #() mod0 7) n# #:n# negative? #fn("n10EL2:" #() negative? 6) newline #fn("|00001000W0000J7070?0421072524I:" #(*io-out* #fn(io-write) *linefeed*) newline 7) nreconc #fn("n2701062:" #(reverse!-) nreconc 7) nth #fn("n2700152<:" #(nthcdr) nth 7) nthcdr #fn("n2701E523400:710=1K~62:" #(<= nthcdr) nthcdr 8) num->str #fn("O100010002000W1000J70r:?140X360q@907122052423151360q@907124052475r21rT53360q@907627152423051;J8041r:l2360q@907628152429051S;JK041r:l2;JA047:2;17<1515251360q@90762=15247>7?7@7A7B1w>41w?4qw@4qwA4qwB42C868788898:>52D0>12E8;>1{8;504^1^5:" #(#(:base) type-error num #fn(int?) base <= arg-error "invalid/unsupported base: " "invalid/unsupported base with floating point: " #fn(bignum?) zero? #fn(logand) 1- "invalid/unsupported base with bignum: " *print-base* *print-ptr-base* *print-radix* *print-ptr-radix* *print-readably* #fn("n0Aw04Fw1492w2493w3494w4:" #(*print-base* *print-ptr-base* *print-radix* *print-ptr-radix* *print-readably*) 4) #fn("n0205021A845242284512384514^1:" #(#fn(buffer) #fn(write) #fn(io->str) #fn(io-close)) 8) #fn("n1A50420061:" #(#fn(raise)) 6)) num->str 12) odd? #fn("n170051S:" #(even?) odd? 6) offsets #fn("n20;3H04101?64861qqPqqP63^1:" #(type-error fn #fn("n3182PI0B3Y04A0<513>0101220>12386>1{86504^1^1:" #(*print-readably* #fn("n0Aw0:" #(*print-readably*) 4) #fn("n02071A62:" #(#fn(for-each) write) 7) #fn("n1A50420061:" #(#fn(raise)) 6)) princ 8) print #fn("z00<0=70Dw042187>1228586>22388>1{88504^1^1^24I:" #(*print-readably* #fn("n0Aw0:" #(*print-readably*) 4) #fn("n020A514F3:02122F62:q:" #(#fn(write) #fn(for-each) #fn("n1702151422061:" #(princ " " #fn(write)) 6)) 7) #fn("n1A50420061:" #(#fn(raise)) 6)) print 10) print-exception #fn("n1I20?5471051;3N04710<51;3C04227305151;35040<863700=@30087;3G0487B;3?048789<2?2@89T51285548589T51@\x9e1882ACH0742B89T2C5348589<51@\x811882DCU0742E89<2F5347G89<513;0742H51@30q@W1882ICB0742J5147489f2@@1882KC?07L89<514I:@,0882MCB0742N5147489f2@\x150882OCB0742P5147489f2@\xfe0882QCb0742R89<2?89T5447=89513F074285147S7=8951f2@30q@\xc70882TCC0742U5147S89<51@\xaf0882VCR0742W89<513702X@402Y5147S89<51@\x880882ZCB0742[5147489f2@q0882\\CB0742]5147S89f2@Z0882^Q;J804882_Q3;07489f2@?0742`5147S875147a60^1^1^1^1^1:" #(#fn("n1707172;J50470w0473;J50474w14258586>2260>12787>1{87504^1^2:" #(*print-level* *print-length* *exception-print-level* *exception-print-length* *print-length #fn("n0Aw04Fw1:" #(*print-level* *print-length*) 4) #fn("n070A61:" #(print) 6) #fn("n1A50420061:" #(#fn(raise)) 6)) print-value 9) list? #fn(io?) caar princ #fn(io-filename) ":" caddr ": " type-error "type error: " #fn(for-each) #fn("n17002162:" #(princ ": ") 7) cddr "expected " ", got " #fn(type-of) bounds-error "index " " out of bounds for " unbound-error "eval: variable " " has no value" get-syntax " (defined as a macro)" error "error: " load-error print-exception parse-error "parsing error: " arg-error "arguments error: " arity-error "arity error: expected " print key-error "key not found: " const-error #fn(keyword?) "keywords are read-only: " "tried to modify a constant: " io-error "I/O error: " assert-failed "assertion failed: " divide-error memory-error "*** unhandled exception: " newline) print-exception 16) print-stack-trace #fn("n1IIb5b6852085>1_4862185>1_47273242526505252Eb82728868788>37905162^2^2:" #(#fn("n32005182P2105121151C?022232487e361:2505126E278851I8:8;L23]048:78888321{863E0722374758651522662:0[38027061:28^1:" #(#fn("n02021AF>292524q:" #(#fn(for-each) #fn("n1A<0Fq63:" 8)) 7) #fn("n10B3F00<20C?00T21C8072061:23061:" #(thrown-value ffound caddr #fn(raise)) 6) str-join #fn(map) str reverse! "/" #fn(fn-name) "λ") fname 10) filter closure? #fn(map) #fn("n10Z;380420061:" #(#fn(top-level-value)) 6) #fn(environment) #fn(for-each) #fn("n17021A<0KGF5252422r223051I8687L23P0486702451475088G51^1486KM?6@\v/^2514702677524921230>12487>1{87504^1^14258561^1:" #(#fn(buffer) *io-out* #fn("n0Aw0:" #(*io-out*) 4) #fn("n070A}2:" #(print) 6) #fn("n1A50420061:" #(#fn(raise)) 6) #fn(io->str)) print-to-str 9) proper-list? #fn("n1Ib5852085>1_40S;JA040B;3:0485<0062^1:" #(#fn("n20=1=87B38087=@408786B3I088B3C08688QJ;0A<868862:86S;J60486B;360488S^1^1^1:" #() proper? 10)) proper-list? 8) putprop #fn("n320711q5387360q@F02250237118853488?7^14238708253482^1:" #(#fn(get) *properties* #fn(table) #fn(put!)) putprop 10) quoted? #fn("n10<20Q:" #($quote) quoted? 6) random #fn("n1200513<0712250062:23500i2:" #(#fn(int?) mod0 #fn(rand) #fn(rand-f64)) random 7) read-all #fn("n17071062:" #(read-all-of read) read-all 7) read-all-of #fn("n2Ib686208601>3_486<^1q015162:" #(#fn("n22015138071061:A<10PF925162:" #(#fn(eof-object?) reverse!) 8)) read-all-of 8) remprop #fn("n27021721q5387;3F042387052;3:042487052^161:" #(void #fn(get) *properties* #fn(has?) #fn(del!)) remprop 9) repl #fn("n0IIb4b5Iw047150422735148424_485258485>2_485<5047660^2:" #(that *prompt* #fn(io-flush) *io-out* #fn("n02021{227351S;3q047484517585513M07584513@076504277851@30q@B0798551485w:47;504I^1^1:" #(#fn("n0207122D63:" #(#fn(read) *io-in* :whitespace) 8) #fn("n1207151422061:" #(#fn(io-discard-buffer) *io-in* #fn(raise)) 6) #fn(io-eof?) *io-in* eval void? *prompt* #fn(io-flush) *io-out* print that newline) prompt 8) #fn("n020A>121{370F<60:q:" #(#fn("n0A<60:" 5) #fn("n1700514D:" #(top-level-exception-handler) 6)) reploop 5) newline) repl 8) revappend #fn("n2701062:" #(reverse-) revappend 7) reverse #fn("n170q062:" #(reverse-) reverse 7) reverse! #fn("n170q062:" #(reverse!-) reverse! 7) reverse!- #fn("n2I1B3B041=101?04N4?1@\x1d/40:" #() reverse!- 7) reverse- #fn("n213=0701<0P1=62:0:" #(reverse-) reverse- 7) rune? #fn("n12005121Q:" #(#fn(type-of) rune) rune? 6) scanl #fn("n3Ib78720870>2_487<18262^1:" #(#fn("n201;3?04A42418287>362^1:" #(#(:key) identity call-with-values #fn("n07021AF92>393=62:" #(partition #fn("n1AF051F925162:" 8)) 7) #fn("n220710A22F5492e1711A22F5463:" #(#fn(nconc) sort :key) 12)) sort 8) str-join #fn("n20J5020:215022860<5242324861>20=524258661^1:" #("" #fn(buffer) #fn(io-write) #fn(for-each) #fn("n120AF52420A062:" #(#fn(io-write)) 7) #fn(io->str)) str-join 8) str-lpad #fn("|20003000W2000J7020?24217282123051~52062:" #(#\space #fn(str) str-rep #fn(str-width)) str-lpad 10) str-map #fn("n2205021151EI8887L23\\040221885251893=023868952@30q^14748851?8@\xff/^14258661^2:" #(#fn(buffer) #fn(length) #fn(str-rune) #fn(io-write) 1+ #fn(io->str)) str-map 11) str-rep #fn("n2701E5235021:721513@02307401K~5262:742300521r2k62:" #(<= "" odd? #fn(str) str-rep) str-rep 10) str-rpad #fn("|20003000W2000J7020?242107282123051~5262:" #(#\space #fn(str) str-rep #fn(str-width)) str-rpad 11) str-trim #fn("|10003000W1000J7070?14W2000J601?24IIb7b887211087>3_4882282088>3_42305124013=087092<71051162:0:" #(#fn(str-rune) 1+) trim-start 8) #fn("n1E0L23M0A20F7105152513=092<7105161:0:" #(#fn(str-rune) 1-) trim-end 9) #fn(length) #fn(str-sub)) str-trim 12) subseq #fn("|20003000W2000J60q?24IIb77018252360q@=0712212382544872482187>3_4250821>3?840B3:087<0162:0]390887661:270513;028018263:790513E02:051T882;89>161^1:q^2:" #(<= arg-error "start <= end: " " <= " #fn("n21El23d0A;3604AF~700865287863F0718786523;0720A52@30q4^1^1:0B3?092<0=7315162:720F62:" #(copy-list length< bounds-error 1-) subseq-l 10) #fn("n120A51F;J504858586L23<071A8652@:008692~51229286I898:L23M0489878;92~A8;Gp^1489KM?9@\x0e/^251487^1^1^1:" #(#fn(length) bounds-error #2#) subseq-av 15) vec-alloc #fn(str?) #fn(str-sub) arr? #fn(type-of) #fn("n120A0E63:" #(#fn(arr-alloc)) 8)) subseq 11) sym-set-doc #fn("z2Ib7872087>1_421151883601@401<88360q@401=2287<825223Z3\xb00893\xab0248925528<<8<=76278>528?;3D04288?5128798?5151~8?;3?04222:8@>18>52738=8AP25527;02<8B5348:3>07;02=8:53@30q^1^1^1^1^1^1^1@30q48;B3N07;02>7?7@7A02>q538;525153@30q4I^1^1^1^1^1:" #(#fn("n10H3700:@30q40<85B3I07085r2523>07185Er253@4085A<0=51P^1:" #(length> subseq) formals-clean 9) #fn(str?) #fn(map) str-join #fn(str-split) "\n" any #fn("n1E20051L2;3C0421220E5251;34040:" #(#fn(length) #fn(rune-whitespace?) #fn(str-rune)) 8) #fn(length) str-trim #fn("n170A2105152390220A62:0:" #(<= #fn(length) #fn(str-sub)) 8) putprop *doc* *doc-extra* *formals-list* delete-duplicates append getprop) sym-set-doc 20) t0# #:t0# table->assoc-list #fn("n12021q063:" #(#fn(table-fold) #fn("n301P82P:" 6)) table->assoc-list 8) table-invert #fn("n12050212285>1q053485^1:" #(#fn(table) #fn(table-fold) #fn("n320A1063:" #(#fn(put!)) 8)) table-invert 9) table-keys #fn("n12021q063:" #(#fn(table-fold) #fn("n3082P:" 6)) table-keys 8) table-values #fn("n12021q063:" #(#fn(table-fold) #fn("n3182P:" 6)) table-values 8) that NIL thk# #:thk# to-proper #fn("n10J400:0H3600e1:0<700=51P:" #(to-proper) to-proper 7) top-level-exception-handler #fn("n17071w042285>1230>12486>1{86504^1^1:" #(*io-out* *stderr* #fn("n0Aw0:" #(*io-out*) 4) #fn("n070A51471225061:" #(print-exception print-stack-trace #fn(stacktrace)) 6) #fn("n1A50420061:" #(#fn(raise)) 6)) top-level-exception-handler 8) trace #fn("n120051718551Jc02207324252627280e225e3e229e12:2885e225e3e55152@30q^14I:" #(#fn(top-level-value) traced? #fn(set-top-level-value!) eval λ #:args# write cons quote newline apply) trace 15) traced? #fn("n12071051;3?0422051228551d^1:" #(#fn("z020210P51472504230}2:" #(#fn(write) x newline #.apply) 7) closure? #fn(fn-code)) traced? 8) type-error #fn("z220212201825461:" #(#fn(raise) #fn(list*) type-error) type-error 10) untrace #fn("n1200517172513C0230247251r3G52@30q^14I:" #(#fn(top-level-value) traced? fn #fn(set-top-level-value!) #fn(fn-vals)) untrace 9) values #fn("z00B3:00=J500<:A0P:" #() #(#3#) 6) vars-to-env #fn("n32021182>2072230515163:" #(#fn(map) #fn("n2700210A52SS1FM63:" #(vinfo #fn(memq)) 9) iota #fn(length)) vars-to-env 10) vars-to-env-let #fn("n47071w042288>123018283>42489>1{89504^1^1425268283>20771E5263:" #(*io-out* *stderr* #fn("n0Aw0:" #(*io-out*) 4) #fn("n07021A22F229222932369:" #(princ "vars-to-env-new: " ":" "\n") 14) #fn("n1A50420061:" #(#fn(raise)) 6) #fn(map) #fn("n2700210A52SS1FM63:" #(vinfo #fn(memq)) 9) offsets) vars-to-env-let 10) vec->list #fn("n1700}2:" #(list) vec->list 6) vinfo #fn("n30182e3:" #() vinfo 7) vinfo:heap? #.cadr vinfo:index #4# vinfo:sym #.car void #0# void? #fn("n10IQ:" #() void? 6) zero? #fn("n10El2:" #() zero? 6) zip #fn("z070710}3:" #(map list) zip 7) zip-with #fn("z17001}3:" #(map) zip-with 7))