| @@ -29,8 +29,8 @@ new-position)) return (((value (void)))) tan ((r)) table (rest) __rcscript ( · 28 unmodified lines |
| 29 | doc)) cdaaar ((lst)) bounds-error ((seq index . msg)) even? ((n)) zero? ((n)) proper-list? ((v)) io-filename! ((io | 29 | doc)) cdaaar ((lst)) bounds-error ((seq index . msg)) even? ((n)) zero? ((n)) proper-list? ((v)) io-filename! ((io |
| 30 | new-name)) random ((max (state NIL))) reverse! ((lst)) eval ((x)) cdaadr ((lst)) cons ((first | 30 | new-name)) random ((max (state NIL))) reverse! ((lst)) eval ((x)) cdaadr ((lst)) cons ((first |
| 31 | second)) u32 (((n 0))) filter ((pred lst)) do ((vars test-spec . commands)) path-make-dir ((path | 31 | second)) u32 (((n 0))) filter ((pred lst)) do ((vars test-spec . commands)) path-make-dir ((path |
| 32 | (mode 493))) io-buffer-mode! ((io)) let ((binds . body) (id binds . body)) assq ((key lst)) process-core-dumped? ((p)) make-random-state (((state | 32 | (mode *io-default-dir-mode*))) io-buffer-mode! ((io)) let ((binds . body) (id binds . body)) assq ((key |
| 33 | NIL))) del! ((table key)) when ((cond . body)) vec? ((v)) min ((v . rest)) cddaar ((lst)) help (((topic | 33 | lst)) process-core-dumped? ((p)) make-random-state (((state NIL))) del! ((table key)) when ((cond . body)) vec? ((v)) min ((v . rest)) cddaar ((lst)) help (((topic |
| 34 | NIL) | 34 | NIL) |
| 35 | (:print-header help-print-header) . rest)) io? ((term)) rune-titlecase ((r)) unquote-nsplicing ((expr)) num->str ((n | 35 | (:print-header help-print-header) . rest)) io? ((term)) rune-titlecase ((r)) unquote-nsplicing ((expr)) num->str ((n |
| 36 | (:base 10))) mod ((a n)) if ((cond then . else)) str-pad ((s n (:align :left) (:fill #\space))) p32 (((n | 36 | (:base 10))) mod ((a n)) if ((cond then . else)) str-pad ((s n (:align :left) (:fill #\space))) p32 (((n |
| @@ -55,7 +55,7 @@ p)) io-read-all ((io)) gc (NIL) io-write ((io v (endian +endianness+))) tabl · 18 unmodified lines |
| 55 | (data :size decompressed-bytes)) rune-whitespace? ((r)) div ((a n)) princ (args) last-cdr ((lst)) trace ((sym)) io-filename ((io)) let* ((binds . body)) rune->codepoint ((r)) gensym? ((v)) defdoc ((term . doc)) cdddr ((lst)) copy-table ((ta)) set-car! ((cell | 55 | (data :size decompressed-bytes)) rune-whitespace? ((r)) div ((a n)) princ (args) last-cdr ((lst)) trace ((sym)) io-filename ((io)) let* ((binds . body)) rune->codepoint ((r)) gensym? ((v)) defdoc ((term . doc)) cdddr ((lst)) copy-table ((ta)) set-car! ((cell |
| 56 | new-first)) receive ((formals expr . body)) partition ((pred lst)) dotimes ((var . body)) has? ((table | 56 | new-first)) receive ((formals expr . body)) partition ((pred lst)) dotimes ((var . body)) has? ((table |
| 57 | key)) vec (rest) while ((cond . body)) rune (((n 65533))) cadar ((lst)) type-error ((expected-type | 57 | key)) vec (rest) while ((cond . body)) rune (((n 65533))) cadar ((lst)) type-error ((expected-type |
| 58 | got-value . msg)) file ((path (mode 420) . flags)) nth ((lst n)) cdr ((lst)) / ((n . rest)) process-output ((p)) newline (((io | 58 | got-value . msg)) file ((path (mode *io-default-file-mode*) . flags)) nth ((lst n)) cdr ((lst)) / ((n . rest)) process-output ((p)) newline (((io |
| 59 | *io-out*))) separate-doc-from-body ((body (doc NIL))) cdadar ((lst)) foldr ((fn zero . seqs)) sqrt ((x)) reverse ((lst)) lz-pack ((data | 59 | *io-out*))) separate-doc-from-body ((body (doc NIL))) cdadar ((lst)) foldr ((fn zero . seqs)) sqrt ((x)) reverse ((lst)) lz-pack ((data |
| 60 | (level 0))) *prompt* (NIL) member ((item lst)) rune-numeric? ((r)) bignum? ((v)) memq ((item | 60 | (level 0))) *prompt* (NIL) member ((item lst)) rune-numeric? ((r)) bignum? ((v)) memq ((item |
| 61 | lst)) fixnum (((n 0))) f64 (((n 0.0))) str->num ((s (:base NIL))) exp ((p)) caaaar ((lst)) io-column ((io)) traced? ((fn)) cond (clauses) s64 (((n | 61 | lst)) fixnum (((n 0))) f64 (((n 0.0))) str->num ((s (:base NIL))) exp ((p)) caaaar ((lst)) io-column ((io)) traced? ((fn)) cond (clauses) s64 (((n |
| @@ -82,7 +82,7 @@ lst)) max ((v . rest)) closure? ((v)) read-all ((io)) help-print-header ((te · 20 unmodified lines |
| 82 | group error) "Errors and exception handling." process? "Return `T` if the argument is a process, `NIL` otherwise." process-exit-code "Return the process' exit status code or `NIL` if the process might still be running.\n\nOn Plan 9 this function will always return `0` to indicate normal termination, or `1`\nin any other case - see `process-exit-msg`." 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))))`." (doc | 82 | group error) "Errors and exception handling." process? "Return `T` if the argument is a process, `NIL` otherwise." process-exit-code "Return the process' exit status code or `NIL` if the process might still be running.\n\nOn Plan 9 this function will always return `0` to indicate normal termination, or `1`\nin any other case - see `process-exit-msg`." 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))))`." (doc |
| 83 | 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." fixnum? "Return `T` if `v` is of a fixnum type, `NIL` otherwise." exit "Terminate the process with the specified message and code. Does not return.\n\nThe message is expected to be a non-empty string in case of an error.\nThe code is expected to be a positive integer in case of an error." __finish "A function called right before exit by the VM.\n\nThe exit `status` is either `NIL` or a string referring to the error\ncondition." caaar "Shorthand for `(car (car (car lst)))`." io-peek "Return a value of the specified type by peeking at data of the IO\nobject.\n\nCompared to `io-read`, this function does not consume the data -\nmultiple repeated calls with the same arguments will return the\nsame result.\n\nThe `type` must specify a fixed-width number, pointer, or rune.\n\nNumerical values may be peeked at in a specific endianness order\nby setting `endian` to either `:little-endian` or `:big-endian`.\nHost CPU endianness is used if not specified.\n\nIf the parameter `n` is provided, peek `n` values of the type,\nreturning an array of the values or a string when `type` is `utf8`." 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." nthcdr "Return the reminder of the list after at most `n` elements, or `NIL`\nif the list is shorter." s8 "Construct a 8-bit signed number." os-getenv "Return the value of the environment variable `name` or `NIL` if it's\nnot set." tag-of "Return the internal VM tag of the value." 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." 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." rune-downcase "Return the lowercase version of the rune.\n\nThe rune is returned unchanged if it has no case." unquote-splicing "Evaluate the expression, which is a part of a quasi-quoted expression\nitself, and \"splice\" it at the location." +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." vec->list "Return the vector converted to a list." 1+ "Equivalent to `(+ n 1)` - increment by one." throw "Raise an exception consisting of a tag and a value.\n\nThis exception can be handled directly with `catch`,\nsee `(help 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 associated with the symbol.\n\nReturns `T` if the property was removed, `NIL` if there was no\nsuch association defined for 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 | 83 | 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." fixnum? "Return `T` if `v` is of a fixnum type, `NIL` otherwise." exit "Terminate the process with the specified message and code. Does not return.\n\nThe message is expected to be a non-empty string in case of an error.\nThe code is expected to be a positive integer in case of an error." __finish "A function called right before exit by the VM.\n\nThe exit `status` is either `NIL` or a string referring to the error\ncondition." caaar "Shorthand for `(car (car (car lst)))`." io-peek "Return a value of the specified type by peeking at data of the IO\nobject.\n\nCompared to `io-read`, this function does not consume the data -\nmultiple repeated calls with the same arguments will return the\nsame result.\n\nThe `type` must specify a fixed-width number, pointer, or rune.\n\nNumerical values may be peeked at in a specific endianness order\nby setting `endian` to either `:little-endian` or `:big-endian`.\nHost CPU endianness is used if not specified.\n\nIf the parameter `n` is provided, peek `n` values of the type,\nreturning an array of the values or a string when `type` is `utf8`." 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." nthcdr "Return the reminder of the list after at most `n` elements, or `NIL`\nif the list is shorter." s8 "Construct a 8-bit signed number." os-getenv "Return the value of the environment variable `name` or `NIL` if it's\nnot set." tag-of "Return the internal VM tag of the value." 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." 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." rune-downcase "Return the lowercase version of the rune.\n\nThe rune is returned unchanged if it has no case." unquote-splicing "Evaluate the expression, which is a part of a quasi-quoted expression\nitself, and \"splice\" it at the location." +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." vec->list "Return the vector converted to a list." 1+ "Equivalent to `(+ n 1)` - increment by one." throw "Raise an exception consisting of a tag and a value.\n\nThis exception can be handled directly with `catch`,\nsee `(help 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 associated with the symbol.\n\nReturns `T` if the property was removed, `NIL` if there was no\nsuch association defined for 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 |
| 84 | group list) "Working with lists." process-input "Return the standard input stream of the process, or `NIL` if none has been connected." (doc | 84 | group list) "Working with lists." process-input "Return the standard input stream of the process, or `NIL` if none has been connected." (doc |
| 85 | 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)." stacktrace "Return the current stack trace." eq? "Return `T` if `a` and `b` are the same object, `NIL` otherwise." *random-state* "The random state of the current process.\n\nThe state isn't set (is `NIL`) until a call is made to any function\nthat uses it." 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." list->vec "Return the list converted to a vector." 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` macro (see `(help defdoc)`).\n\nFunction definitions themselves may contain other definitions internal\nto the function.\n\nIf the name of the definition starts and ends with a plus sign (`+a-symbol+`),\nthe binding becomes constant. Trying to modify it will raise an error unless\nthe new value is equivalent and is of the same type. Note, non-leaf types such\ntables, strings, arrays, and vectors assigned to the name can still be modified\nthemselves - the value is not constant itself, only the binding." call-with-values "Call `producer` and pass the values produced as arguments to\n`receiver`." odd? "Return `T` if `n` is an odd integer, `NIL` otherwise." 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." process-alive? "Return `T` if the process is still alive, or `NIL` otherwise." time "Display the elapsed time of evaluating `expr` to `*io-out*`, return\nthe result of the evaluated expression." 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." sym "Return a symbol with the name being the concatenation of terms\nformatted as strings.\n\nThis is equivalent to `(sym (str …))`." 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`." begin "Evaluate the expressions in order and return the result of the last\nexpression." 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." 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." io-pos! "Change the current absolute position within the IO object in bytes,\nreturn the resulting position." return "Return from the function with the specified value as the result." *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." __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." process-error "Return the standard error stream of the process, or `NIL` if none has been connected." 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 in this table." 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." 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." 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, which has to be a positive number.\n\nOptional `state` can be specified, otherwise the random state of the\ncurrent process (`*random-state*`) is used. State will be modified\nin-place." *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." eval "Evaluate expression." cdaadr "Shorthand for `(cdr (car (car (cdr lst))))`." u32 "Construct a 32-bit unsigned number." cons "Return a cons cell containing two arguments." filter "Return a copy of the list with only the elements of the original\nthat satisfy the predicate." do "Run `commands` sequentially in a loop until the test condition\nevaluates to `NIL`.\n\nEach variable in `vars` consists of the variable's name, its\ninitial value and (optionally) a single \"step\" expression:\n\n (var-name init-value step-expr)\n\nLoop test condition and (optionally) the result expression are\ncontained within `test-spec`:\n\n (test-cond result-exprs)\n\nLoop runs as long as `test-cond` evaluates to `NIL`. If `test-cond`\nis satisfied (result is not `NIL`), loop is terminated and either\nthe result of `result-exprs` is returned or, if `result-exprs` isn't\nsupplied, `#<void>` is used instead.\n\nAfter each loop run, every variable containing a step expression\ngets updated to the result of that expression, which may reference\nthe variable by its name." make-random-state "Return a new random state.\n\nIf `state` is `NIL`, a copy of the random state of the current process\n(`*random-state*`) is returned. If `state` is `T`, the returned random\nstate is a new one that has been randomly initialized. If an already\nexisting random state is passed, the returned value is a copy of that\nstate." path-make-dir "Create the directory (directories) if they do not already exist.\n\nEach directory is created with the default mode bits `#o755`,\nunless it already exists." io-buffer-mode! "Changed the output buffering behavior of the writable IO, return the\napplied value.\n\nSee `io-buffer-mode` for supported modes." let "Bind variables and execute a series of expression that use\nthese bindings, return the result of the last expression.\n\nIf a binding in the first form consists of a variable name alone,\nits value is set to `#<void>`.\n\nThe second form `(let id ((… ) …) …)`, which is called\n\"named let\", allows referencing the resulting lambda within\nthe expressions following the bindings to aid with recursive\ncalls." process-core-dumped? "Return `T` if a core image was dumped by the process, or `NIL` otherwise." assq "Return a pair of a matching key and the associated value, or `NIL` if\nnone matched. Keys are compared using `eq?`." del! "Remove any existing mapping for `key` and return the table." when "Shorthand for `(if cond body NIL)`.\n\nA non-empty body is required." vec? "Return `T` if `v` is a vector, `NIL` otherwise." min "Return the smallest among the arguments." cddaar "Shorthand for `(cdr (cdr (car (car lst))))`." io? "Return `T` if `term` is of `io` type, `NIL` otherwise." 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\nRune `↳` followed by an object appearing in the documentation describes\nthe returned value. Rune `‼` follows by what is being written to the\noutput or by an error raised." (doc | 85 | 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)." stacktrace "Return the current stack trace." eq? "Return `T` if `a` and `b` are the same object, `NIL` otherwise." *random-state* "The random state of the current process.\n\nThe state isn't set (is `NIL`) until a call is made to any function\nthat uses it." 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." list->vec "Return the list converted to a vector." 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` macro (see `(help defdoc)`).\n\nFunction definitions themselves may contain other definitions internal\nto the function.\n\nIf the name of the definition starts and ends with a plus sign (`+a-symbol+`),\nthe binding becomes constant. Trying to modify it will raise an error unless\nthe new value is equivalent and is of the same type. Note, non-leaf types such\ntables, strings, arrays, and vectors assigned to the name can still be modified\nthemselves - the value is not constant itself, only the binding." call-with-values "Call `producer` and pass the values produced as arguments to\n`receiver`." odd? "Return `T` if `n` is an odd integer, `NIL` otherwise." 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." process-alive? "Return `T` if the process is still alive, or `NIL` otherwise." time "Display the elapsed time of evaluating `expr` to `*io-out*`, return\nthe result of the evaluated expression." 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." sym "Return a symbol with the name being the concatenation of terms\nformatted as strings.\n\nThis is equivalent to `(sym (str …))`." 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`." begin "Evaluate the expressions in order and return the result of the last\nexpression." 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." 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." io-pos! "Change the current absolute position within the IO object in bytes,\nreturn the resulting position." return "Return from the function with the specified value as the result." *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." __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." process-error "Return the standard error stream of the process, or `NIL` if none has been connected." 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 in this table." 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." 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." 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, which has to be a positive number.\n\nOptional `state` can be specified, otherwise the random state of the\ncurrent process (`*random-state*`) is used. State will be modified\nin-place." *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." eval "Evaluate expression." cdaadr "Shorthand for `(cdr (car (car (cdr lst))))`." u32 "Construct a 32-bit unsigned number." cons "Return a cons cell containing two arguments." filter "Return a copy of the list with only the elements of the original\nthat satisfy the predicate." do "Run `commands` sequentially in a loop until the test condition\nevaluates to `NIL`.\n\nEach variable in `vars` consists of the variable's name, its\ninitial value and (optionally) a single \"step\" expression:\n\n (var-name init-value step-expr)\n\nLoop test condition and (optionally) the result expression are\ncontained within `test-spec`:\n\n (test-cond result-exprs)\n\nLoop runs as long as `test-cond` evaluates to `NIL`. If `test-cond`\nis satisfied (result is not `NIL`), loop is terminated and either\nthe result of `result-exprs` is returned or, if `result-exprs` isn't\nsupplied, `#<void>` is used instead.\n\nAfter each loop run, every variable containing a step expression\ngets updated to the result of that expression, which may reference\nthe variable by its name." make-random-state "Return a new random state.\n\nIf `state` is `NIL`, a copy of the random state of the current process\n(`*random-state*`) is returned. If `state` is `T`, the returned random\nstate is a new one that has been randomly initialized. If an already\nexisting random state is passed, the returned value is a copy of that\nstate." path-make-dir "Create the directory (directories) if they do not already exist.\n\nEach directory is created, unless it already exists, with the mode\nbits `*io-default-dir-mode*` if not specified." io-buffer-mode! "Changed the output buffering behavior of the writable IO, return the\napplied value.\n\nSee `io-buffer-mode` for supported modes." let "Bind variables and execute a series of expression that use\nthese bindings, return the result of the last expression.\n\nIf a binding in the first form consists of a variable name alone,\nits value is set to `#<void>`.\n\nThe second form `(let id ((… ) …) …)`, which is called\n\"named let\", allows referencing the resulting lambda within\nthe expressions following the bindings to aid with recursive\ncalls." process-core-dumped? "Return `T` if a core image was dumped by the process, or `NIL` otherwise." assq "Return a pair of a matching key and the associated value, or `NIL` if\nnone matched. Keys are compared using `eq?`." del! "Remove any existing mapping for `key` and return the table." when "Shorthand for `(if cond body NIL)`.\n\nA non-empty body is required." vec? "Return `T` if `v` is a vector, `NIL` otherwise." min "Return the smallest among the arguments." cddaar "Shorthand for `(cdr (cdr (car (car lst))))`." io? "Return `T` if `term` is of `io` type, `NIL` otherwise." 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\nRune `↳` followed by an object appearing in the documentation describes\nthe returned value. Rune `‼` follows by what is being written to the\noutput or by an error raised." (doc |
| 86 | group array) "Arrays and vectors." rune-titlecase "Return the title case version of the rune.\n\nFor most runes the result is the same as with `rune-upcase`." unquote-nsplicing "Evaluate the expression, which is a part of a quasi-quoted expression\nitself, and \"splice\" it at the location.\n\nUnlike `unquote-splicing`, this macro may operate destructively\non the list produced." 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." mod "Return the remainder of the Euclidean division `a/n`." 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 code style." str-pad "Return the string padded until the given length.\n\nBy default the string is padded with spaces on the right." p32 "Construct a 32-bit abstract pointer value." case "Evaluate an expression, select one of the clauses by matching\nthe result with `eqv?`, and return the result of the clause.\n\nThe special `else` clause matching expression, if specified, is\nused as a fallback if none of the clauses matched the result.\nIf no `else` was specified and no matches occurred, `NIL` is\nreturned." 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." 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." zip-with "Return a list where each nth element is the result of the supplied\nfunction applied to the corresponding elements from the parameter lists.\n\nThe resulting list is as long as the shortest of the arguments." trycatch "Return the result of evaluation of the expression `try` or, if an\nexception has been thrown, the one-argument function `catch`." (doc | 86 | group array) "Arrays and vectors." rune-titlecase "Return the title case version of the rune.\n\nFor most runes the result is the same as with `rune-upcase`." unquote-nsplicing "Evaluate the expression, which is a part of a quasi-quoted expression\nitself, and \"splice\" it at the location.\n\nUnlike `unquote-splicing`, this macro may operate destructively\non the list produced." 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." mod "Return the remainder of the Euclidean division `a/n`." 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 code style." str-pad "Return the string padded until the given length.\n\nBy default the string is padded with spaces on the right." p32 "Construct a 32-bit abstract pointer value." case "Evaluate an expression, select one of the clauses by matching\nthe result with `eqv?`, and return the result of the clause.\n\nThe special `else` clause matching expression, if specified, is\nused as a fallback if none of the clauses matched the result.\nIf no `else` was specified and no matches occurred, `NIL` is\nreturned." 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." 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." zip-with "Return a list where each nth element is the result of the supplied\nfunction applied to the corresponding elements from the parameter lists.\n\nThe resulting list is as long as the shortest of the arguments." trycatch "Return the result of evaluation of the expression `try` or, if an\nexception has been thrown, the one-argument function `catch`." (doc |
| 87 | group builtin) "Built-in operators." macrocall? "Return the macro application function if `e` refers to a macro call,\n`NIL` otherwise." 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))) …]" *syntax-environment* "Table containing macro definitions.\n\nThe keys are macro names, the values are their application functions." builtin "Return the builtin associated with the symbol.\n\nThrows an exception if no such builtin exists." table-values "Return the list of all values of the table." macroexpand "Return a fully macro-expanded expression.\n\nExpansion will continue until no more macro calls are left." caadr "Shorthand for `(car (car (cdr lst)))`." type-of "Return the underlying type of the value." top-level-value "Return the value bound to the symbol in the top level (global)\nenvironment." 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 sequence as the\ninitial accumulator." buffer "Return an in-memory buffer of `io` type.\n\nIn the first form an empty buffer for both reading and writing is returned.\n\nA read-only buffer pointing at the underlying data of `v` is returned in\nthe second form. Optionally, the range of the data (measured in bytes)\navailable when accessing the buffer may be limited by using `:start` and/or\n`:end` keyworded arguments." find-program "Returns the full path to an executable by its name, or `NIL` if not found." random-state? "Return `T` if the argument is a random state object, `NIL` otherwise." 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." process-close "Close any streams connected to the process." builtin? "Return `T` if `v` is a built-in function implemented in C, `NIL`\notherwise." with-input "Evaluate expressions in `body` with `var` bound to a readable buffer\ncontaining the result of the expression during the evaluation.\n\nOptionally, the range of the data (measured in bytes) available\nwhen accessing the buffer may be limited by using `:start` and/or\n`:end` keyworded arguments.\n\nThe result returned will be that of the last expression in the `body`." 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." 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." +endianness+ "Endianess of the CPU the VM is running on, a constant.\n\nSet to either `:big-endian` or `:little-endian`." remove-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." with-exception-bindings "Bind `*print-…` variables to their `*exception-print-…` counterparts\nevaluate the body." str "Return concatenation of terms formatted as strings.\n\nThis is equivalent to `(princ terms…)`, except the string is\n_returned_, rather than printed." negative? "Return `T` if `n` is a negative number. Shorthand for `(< n 0)`." void "Return the constant `#<void>` while ignoring any arguments.\n\n`#<void>` 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 `#<void>` alone, REPL will not print\nit." 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 linefeed character is included in the returned value unless EOF\nhas been reached beforehand.\n\nEOF (`#<eof>`) is returned if the IO object had no data." 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." and "Return `NIL` and stop evaluating the arguments if one of them\nevaluated to `NIL`. Return the last value otherwise." 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." (doc | 87 | group builtin) "Built-in operators." macrocall? "Return the macro application function if `e` refers to a macro call,\n`NIL` otherwise." 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))) …]" *syntax-environment* "Table containing macro definitions.\n\nThe keys are macro names, the values are their application functions." builtin "Return the builtin associated with the symbol.\n\nThrows an exception if no such builtin exists." table-values "Return the list of all values of the table." macroexpand "Return a fully macro-expanded expression.\n\nExpansion will continue until no more macro calls are left." caadr "Shorthand for `(car (car (cdr lst)))`." type-of "Return the underlying type of the value." top-level-value "Return the value bound to the symbol in the top level (global)\nenvironment." 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 sequence as the\ninitial accumulator." buffer "Return an in-memory buffer of `io` type.\n\nIn the first form an empty buffer for both reading and writing is returned.\n\nA read-only buffer pointing at the underlying data of `v` is returned in\nthe second form. Optionally, the range of the data (measured in bytes)\navailable when accessing the buffer may be limited by using `:start` and/or\n`:end` keyworded arguments." find-program "Returns the full path to an executable by its name, or `NIL` if not found." random-state? "Return `T` if the argument is a random state object, `NIL` otherwise." 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." process-close "Close any streams connected to the process." builtin? "Return `T` if `v` is a built-in function implemented in C, `NIL`\notherwise." with-input "Evaluate expressions in `body` with `var` bound to a readable buffer\ncontaining the result of the expression during the evaluation.\n\nOptionally, the range of the data (measured in bytes) available\nwhen accessing the buffer may be limited by using `:start` and/or\n`:end` keyworded arguments.\n\nThe result returned will be that of the last expression in the `body`." 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." 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." +endianness+ "Endianess of the CPU the VM is running on, a constant.\n\nSet to either `:big-endian` or `:little-endian`." remove-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." with-exception-bindings "Bind `*print-…` variables to their `*exception-print-…` counterparts\nevaluate the body." str "Return concatenation of terms formatted as strings.\n\nThis is equivalent to `(princ terms…)`, except the string is\n_returned_, rather than printed." negative? "Return `T` if `n` is a negative number. Shorthand for `(< n 0)`." void "Return the constant `#<void>` while ignoring any arguments.\n\n`#<void>` 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 `#<void>` alone, REPL will not print\nit." 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 linefeed character is included in the returned value unless EOF\nhas been reached beforehand.\n\nEOF (`#<eof>`) is returned if the IO object had no data." 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." and "Return `NIL` and stop evaluating the arguments if one of them\nevaluated to `NIL`. Return the last value otherwise." 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." (doc |
| 88 | group prop) "Dealing with properties of symbols." 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." unquote "Evaluate the expression, which is a part of a quasi-quoted expression\nitself, and insert it at the location." (doc | 88 | group prop) "Dealing with properties of symbols." 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." unquote "Evaluate the expression, which is a part of a quasi-quoted expression\nitself, and insert it at the location." (doc |
| @@ -91,12 +91,12 @@ group type) "Dealing with types." caaadr "Shorthand for `(car (car (car (cdr ls · 2 unmodified lines |
| 91 | group time) "Measuring, manipulating and displaying time." copy-tree "Return a recursive copy of the list.\n\nUnlike `copy-list`, this function copies sub-elements of the list\nrecursively." 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." > "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." foldl "Reduce the sequences to a single value by repeatedly applying the\nfunction left-associatively.\n\nThe function should be of the form `(fn e₀ e₁ … eₙ acc)`. For each\niteration each `eᵢ` will be set to successive values of the `i`-th\nsequence. The value `acc` will initially be set to `zero` and\nsubsequently to the previous value of the function application.\n\nThe iteration will terminate once the shortest sequence is exhausted.\n\nFor example, for two sequences `(e₀ e₁ … eₙ)` and `(d₀ d₁ … dₙ)`, the\nresult will be:\n\n (fn eₙ dₙ (…(fn e₁ d₁ (fn e₀ d₀ zero))…))\n\nNote that `foldl` is tail call recursive." +os-version+ "The \"version\" of the operating system StreetLISP VM is running on.\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." abs "Return absolute value of the argument." with-output-to "Evaluate expressions in `body` with `*io-out*` set to `io` during the\nevaluation." *linefeed* "OS-specific _linefeed_ 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." 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`." 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." truncate "Return the integer value of `x` rounded toward zero.\n\nIf `x` is already an integer (or infinite, or NaN), result is `x`." 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 are supported." - "Return the result of subtraction. With only one argument a\nnegation is performed." io-truncate "Truncate the underlying IO object to the specified number of bytes." makunbound "Make the symbol unbound." quasiquote "Same as `'expr` but allows evaluating (\"unquoting\") parts of\nthe expression." 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`." logand "Return the result of bitwise AND operation on integers." time-now "Return the number of nanoseconds since Epoch (1970-01-01 00:00:00).\n\nThis measures the system-wide real (wall-clock) time." 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." 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." count "Return the number of elements in the list that satisfy the predicate." io-pos "Return the current absolute position within the IO object in bytes." +most-positive-fixnum+ "A constant integer closest to positive infinity that can be\nrepresented by fixnum type on this particular platform." 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`." table->assoc-list "Return the table converted to an association list (pairs of each\nkey and value)." length< "Shorthand for a bounded length test `(< (length seq) n)`." unless "Shorthand for `(if cond NIL body)`.\n\nA non-empty body is required." str->time "Return the number of nanoseconds since Epoch from a time and date\nformatted as a string.\n\nBecause the supported format is limited, the returned value will have\nprecision in seconds at most." get-syntax "Return a macro application function based on its name, or `NIL` if\nit's not defined." (doc | 91 | group time) "Measuring, manipulating and displaying time." copy-tree "Return a recursive copy of the list.\n\nUnlike `copy-list`, this function copies sub-elements of the list\nrecursively." 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." > "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." foldl "Reduce the sequences to a single value by repeatedly applying the\nfunction left-associatively.\n\nThe function should be of the form `(fn e₀ e₁ … eₙ acc)`. For each\niteration each `eᵢ` will be set to successive values of the `i`-th\nsequence. The value `acc` will initially be set to `zero` and\nsubsequently to the previous value of the function application.\n\nThe iteration will terminate once the shortest sequence is exhausted.\n\nFor example, for two sequences `(e₀ e₁ … eₙ)` and `(d₀ d₁ … dₙ)`, the\nresult will be:\n\n (fn eₙ dₙ (…(fn e₁ d₁ (fn e₀ d₀ zero))…))\n\nNote that `foldl` is tail call recursive." +os-version+ "The \"version\" of the operating system StreetLISP VM is running on.\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." abs "Return absolute value of the argument." with-output-to "Evaluate expressions in `body` with `*io-out*` set to `io` during the\nevaluation." *linefeed* "OS-specific _linefeed_ 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." 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`." 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." truncate "Return the integer value of `x` rounded toward zero.\n\nIf `x` is already an integer (or infinite, or NaN), result is `x`." 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 are supported." - "Return the result of subtraction. With only one argument a\nnegation is performed." io-truncate "Truncate the underlying IO object to the specified number of bytes." makunbound "Make the symbol unbound." quasiquote "Same as `'expr` but allows evaluating (\"unquoting\") parts of\nthe expression." 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`." logand "Return the result of bitwise AND operation on integers." time-now "Return the number of nanoseconds since Epoch (1970-01-01 00:00:00).\n\nThis measures the system-wide real (wall-clock) time." 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." 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." count "Return the number of elements in the list that satisfy the predicate." io-pos "Return the current absolute position within the IO object in bytes." +most-positive-fixnum+ "A constant integer closest to positive infinity that can be\nrepresented by fixnum type on this particular platform." 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`." table->assoc-list "Return the table converted to an association list (pairs of each\nkey and value)." length< "Shorthand for a bounded length test `(< (length seq) n)`." unless "Shorthand for `(if cond NIL body)`.\n\nA non-empty body is required." str->time "Return the number of nanoseconds since Epoch from a time and date\nformatted as a string.\n\nBecause the supported format is limited, the returned value will have\nprecision in seconds at most." get-syntax "Return a macro application function based on its name, or `NIL` if\nit's not defined." (doc |
| 92 | 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`." io-read-all "Return a string containing all 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." 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." 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 a UTF-8 string." 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." lz-unpack "Return decompressed data previously compressed using Lempel-Ziv.\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." rune-whitespace? "Return `T` if the rune is whitespace, `NIL` otherwise." div "Return the quotient of the Euclidean division `a/n`." princ "Print the arguments to `*io-out*` with `*print-readably*` set to `NIL`." (doc | 92 | 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`." io-read-all "Return a string containing all 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." 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." 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 a UTF-8 string." 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." lz-unpack "Return decompressed data previously compressed using Lempel-Ziv.\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." rune-whitespace? "Return `T` if the rune is whitespace, `NIL` otherwise." div "Return the quotient of the Euclidean division `a/n`." princ "Print the arguments to `*io-out*` with `*print-readably*` set to `NIL`." (doc |
| 93 | 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." 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*`." io-filename "Return the filename of the IO object." let* "Same as the first form of `let` but each of the binding\nexpressions may reference any of the variables bound previously.\n\nIf a binding consists of a variable name alone, its value is\nset to `#<void>`." rune->codepoint "Return a rune's Unicode code point as a fixnum." gensym? "Return `T` if the argument is a gensym, `NIL` otherwise." (doc | 93 | 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." 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*`." io-filename "Return the filename of the IO object." let* "Same as the first form of `let` but each of the binding\nexpressions may reference any of the variables bound previously.\n\nIf a binding consists of a variable name alone, its value is\nset to `#<void>`." rune->codepoint "Return a rune's Unicode code point as a fixnum." gensym? "Return `T` if the argument is a gensym, `NIL` otherwise." (doc |
| 94 | group syntax) "StreetLISP syntax and macros." defdoc "Define documentation for a top level term.\n\nUseful in cases where the documentation for a term has to be set\nindependent of the definition of said term, or an additional form\nwith the same name has to be documented.\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 (`:doc-group`),\n\"see also\" references (`:doc-see`) and code examples (`:doc-example`).\n\nCustom formatting lambda (`:doc-fmt`) may be used to process the\ndocumentation string when it's printed with `(help ...)`. It's used\nby `defstruct` to provide full constructor description in the output." 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." 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)." receive "Capture multiple-return values into the given identifiers and\nevaluate the body." 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." dotimes "Execute expressions in a loop the specified number of times.\n\nThe argument `var` defines the loop variable name, the iteration\ncount and (optionally) the resulting expression to evaluate and\nreturn the value of:\n\n (var-name count (result-expr #<void>))\n\nIf `result-expr` is not specified, `#<void>` is used instead.\n\nThe variable is incremented by `1` after each iteration, with its\ninitial value set to `0`, and may be referenced in expressions of\nthe `body`." has? "Return `T` if the table has a value associated with the key, `NIL` otherwise." vec "Construct a vector containing the specified arguments." while "Evaluate the body expressions until `cond` evaluates to `NIL`." rune "Construct a rune from a Unicode code point. Without code point\nspecified, an \"invalid\" rune (`#xFFFD`) 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 input and/or output.\n\nFiles are created with the default mode bits `#o644`.\n\nAn `io` object is returned. Without any flags specified the file\nmust already exist and is opened in read-only mode.\n\nSupported flags:\n\n :append\n :create\n :exclusive\n :read\n :remove-when-closed ; only on Plan 9\n :truncate\n :write" nth "Return nth element of the list, or `NIL` if the list is shorter." cdr "Return the second element of a cons cell (tail of a list) or `NIL` if\nnot available." / "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." process-output "Return the standard output stream of the process, or `NIL` if none has been connected." newline "Write a single OS-specific linefeed 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." cdadar "Shorthand for `(cdr (car (cdr (car lst))))`." foldr "Reduce the sequences to a single value by repeatedly applying the\nfunction right-associatively.\n\nThe function should be of the form `(fn e₀ e₁ … eₙ acc)`. For each\niteration each `eᵢ` will be set to successive values of the `i`-th\nsequence. The value `acc` will initially be set to `zero` and\nsubsequently to the previous value of the function application.\n\nThe iteration will terminate once the shortest sequence is exhausted.\n\nFor example, for two sequences `(e₀ e₁ … eₙ)` and `(d₀ d₁ … dₙ)`, the\nresult will be:\n\n (fn e₀ d₀ (fn e₁ d₁ (…(fn eₙ dₙ zero)…)))\n\nNote that `foldr` is NOT tail call recursive." sqrt "Return the square root of `x`." reverse "Return the list with its elements in reverse order.\n\nThe original list is copied to construct the reversed version." 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 reevaluate." member "Return the tail of a list beginning with the item, or `NIL` otherwise.\nList elements are compared to the `item` using `equal?`." rune-numeric? "Return `T` if the rune is numeric, `NIL` otherwise." bignum? "Return `T` if the argument is a bignum, `NIL` otherwise." fixnum "Construct a fixnum." memq "Return the tail of a list beginning with the item, or `NIL` otherwise.\nList elements are compared to the `item` using `eq?`." f64 "Construct a 64-bit floating point number." str->num "Return the number using the radix `base` in the string `s`.\n\nReturns `NIL` if the number could not be parsed. Any number of leading\nand/or trailing whitespace runes is allowed and those will be ignored." exp "Return the exponential - value of `e` (natural logarithms base) raised\nto the power of `p`." (doc | 94 | group syntax) "StreetLISP syntax and macros." defdoc "Define documentation for a top level term.\n\nUseful in cases where the documentation for a term has to be set\nindependent of the definition of said term, or an additional form\nwith the same name has to be documented.\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 (`:doc-group`),\n\"see also\" references (`:doc-see`) and code examples (`:doc-example`).\n\nCustom formatting lambda (`:doc-fmt`) may be used to process the\ndocumentation string when it's printed with `(help ...)`. It's used\nby `defstruct` to provide full constructor description in the output." 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." 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)." receive "Capture multiple-return values into the given identifiers and\nevaluate the body." 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." dotimes "Execute expressions in a loop the specified number of times.\n\nThe argument `var` defines the loop variable name, the iteration\ncount and (optionally) the resulting expression to evaluate and\nreturn the value of:\n\n (var-name count (result-expr #<void>))\n\nIf `result-expr` is not specified, `#<void>` is used instead.\n\nThe variable is incremented by `1` after each iteration, with its\ninitial value set to `0`, and may be referenced in expressions of\nthe `body`." has? "Return `T` if the table has a value associated with the key, `NIL` otherwise." vec "Construct a vector containing the specified arguments." while "Evaluate the body expressions until `cond` evaluates to `NIL`." rune "Construct a rune from a Unicode code point. Without code point\nspecified, an \"invalid\" rune (`#xFFFD`) 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 input and/or output.\n\nFiles are created, when a flag `:created` is used, with the mode\nbits `*io-default-file-mode*` if not specified.\n\nAn `io` object is returned. Without any flags specified the file\nmust already exist and is opened in read-only mode.\n\nSupported flags:\n\n :append\n :create\n :exclusive\n :read\n :remove-when-closed ; only on Plan 9\n :truncate\n :write" nth "Return nth element of the list, or `NIL` if the list is shorter." cdr "Return the second element of a cons cell (tail of a list) or `NIL` if\nnot available." / "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." process-output "Return the standard output stream of the process, or `NIL` if none has been connected." newline "Write a single OS-specific linefeed 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." cdadar "Shorthand for `(cdr (car (cdr (car lst))))`." foldr "Reduce the sequences to a single value by repeatedly applying the\nfunction right-associatively.\n\nThe function should be of the form `(fn e₀ e₁ … eₙ acc)`. For each\niteration each `eᵢ` will be set to successive values of the `i`-th\nsequence. The value `acc` will initially be set to `zero` and\nsubsequently to the previous value of the function application.\n\nThe iteration will terminate once the shortest sequence is exhausted.\n\nFor example, for two sequences `(e₀ e₁ … eₙ)` and `(d₀ d₁ … dₙ)`, the\nresult will be:\n\n (fn e₀ d₀ (fn e₁ d₁ (…(fn eₙ dₙ zero)…)))\n\nNote that `foldr` is NOT tail call recursive." sqrt "Return the square root of `x`." reverse "Return the list with its elements in reverse order.\n\nThe original list is copied to construct the reversed version." 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 reevaluate." member "Return the tail of a list beginning with the item, or `NIL` otherwise.\nList elements are compared to the `item` using `equal?`." rune-numeric? "Return `T` if the rune is numeric, `NIL` otherwise." bignum? "Return `T` if the argument is a bignum, `NIL` otherwise." fixnum "Construct a fixnum." memq "Return the tail of a list beginning with the item, or `NIL` otherwise.\nList elements are compared to the `item` using `eq?`." f64 "Construct a 64-bit floating point number." str->num "Return the number using the radix `base` in the string `s`.\n\nReturns `NIL` if the number could not be parsed. Any number of leading\nand/or trailing whitespace runes is allowed and those will be ignored." exp "Return the exponential - value of `e` (natural logarithms base) raised\nto the power of `p`." (doc |
| 95 | group debug) "Debugging utilities." +most-negative-fixnum+ "A constant integer closest to negative infinity that can be\nrepresented by fixnum type on this particular platform." 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." cond "Select one of the clauses by evaluating the condition, evaluate the\naccompanied expressions for the matching clause and return the result.\n\nDifferent clause form variants are available. The most common is\n`(test then…)`, which gives the result of `then…` if `test` did not\nevaluate to `NIL`. Second form, `(test)`, which gives the result\nof `test` unless it's `NIL`. Third form, `(test => fn)`, calls `fn`\nwith a single argument which is the non-`NIL` result of evaluating\n`test`.\n\nThe special `else` clause condition, if specified, is used as a fallback\nif none of the other conditions were satisfied. If none were satisfied\n_and_ `else` was not provided, `NIL` is returned." (doc | 95 | group debug) "Debugging utilities." +most-negative-fixnum+ "A constant integer closest to negative infinity that can be\nrepresented by fixnum type on this particular platform." 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." cond "Select one of the clauses by evaluating the condition, evaluate the\naccompanied expressions for the matching clause and return the result.\n\nDifferent clause form variants are available. The most common is\n`(test then…)`, which gives the result of `then…` if `test` did not\nevaluate to `NIL`. Second form, `(test)`, which gives the result\nof `test` unless it's `NIL`. Third form, `(test => fn)`, calls `fn`\nwith a single argument which is the non-`NIL` result of evaluating\n`test`.\n\nThe special `else` clause condition, if specified, is used as a fallback\nif none of the other conditions were satisfied. If none were satisfied\n_and_ `else` was not provided, `NIL` is returned." (doc |
| 96 | group io) "Files and input/output 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?`." + "Return sum of the arguments or `0` when none specified." path-delete "Delete the name from the filesystem.\n\nThrows an IO error if the path does not exist or it failed to be\nremoved." cadadr "Shorthand for `(car (cdr (car (cdr lst))))`." foldr1 "Same as `foldr` but using the first element of the sequence as the\ninitial accumulator." compare "Return -1 if `x` is less than `y`, 0 if equal, and `1` if `y` is\ngreater than `x`." length "Return the length of the sequence.\n\nString's length is measured in UTF-8 code points. For tables the number\nof key-value pairs is returned.\n\nNote: for circular lists the result is `NIL`. A type error exception is\nthrown on improper lists, which are not considered valid sequences." *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)`." error "Raise an error." 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! …)`." 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." 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 are\nsupported." sym? "Return `T` if `v` is a symbol, `NIL` otherwise." defmacro "Define a new macro." u64 "Construct a 64-bit unsigned number." int-valued? "Return `T` if `x` is a number and is equal (as in `=`) to an\ninteger value of `x`." 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." princ-to-str "Same as `(princ …)` but the result is returned as a string instead." 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." print-to-str "Same as `(print …)` but the result is returned as a string instead." process-state "Return the current state of the process.\n\nThe result is either `:running`, `:exited`, `:stopped` or `:signaled`." 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." +f64-epsilon+ "A smallest positive floating point number such that\n`(+ 1.0 +f64-epsilon+)` is not equal to `1.0`." list "Return a list constructed of the arguments." process-exit-msg "Return the process' exit status code or `NIL` if the process might still be running.\n\nOn any OS other than Plan 9 this function will always the exit status code converted to\na string - see `process-exit-code`." eof? "Return `T` if the argument is `#<eof>`, `NIL` otherwise.\n\nThis object is returned by IO functions to signal end of file,\nwhere applicable." __init_globals "Initialize globals that need to be set at load time." +pi+ "Mathematical constant π." 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." quote "Leave the expression unevaluated." 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." defc*r "Define a shorthand for list access using `car` and `cdr`." rune-alphabetic? "Return `T` if the rune is alphabetic, `NIL` otherwise." (doc | 96 | group io) "Files and input/output 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?`." + "Return sum of the arguments or `0` when none specified." path-delete "Delete the name from the filesystem.\n\nThrows an IO error if the path does not exist or it failed to be\nremoved." cadadr "Shorthand for `(car (cdr (car (cdr lst))))`." foldr1 "Same as `foldr` but using the first element of the sequence as the\ninitial accumulator." compare "Return -1 if `x` is less than `y`, 0 if equal, and `1` if `y` is\ngreater than `x`." length "Return the length of the sequence.\n\nString's length is measured in UTF-8 code points. For tables the number\nof key-value pairs is returned.\n\nNote: for circular lists the result is `NIL`. A type error exception is\nthrown on improper lists, which are not considered valid sequences." *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)`." error "Raise an error." 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! …)`." 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." getpid "Return the process ID of the StreetLISP VM within the operating system\nit's running on." *io-default-file-mode* "Default mode bits when creating new files." 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 are\nsupported." sym? "Return `T` if `v` is a symbol, `NIL` otherwise." defmacro "Define a new macro." u64 "Construct a 64-bit unsigned number." int-valued? "Return `T` if `x` is a number and is equal (as in `=`) to an\ninteger value of `x`." 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." princ-to-str "Same as `(princ …)` but the result is returned as a string instead." 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." print-to-str "Same as `(print …)` but the result is returned as a string instead." process-state "Return the current state of the process.\n\nThe result is either `:running`, `:exited`, `:stopped` or `:signaled`." 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." +f64-epsilon+ "A smallest positive floating point number such that\n`(+ 1.0 +f64-epsilon+)` is not equal to `1.0`." list "Return a list constructed of the arguments." process-exit-msg "Return the process' exit status code or `NIL` if the process might still be running.\n\nOn any OS other than Plan 9 this function will always the exit status code converted to\na string - see `process-exit-code`." eof? "Return `T` if the argument is `#<eof>`, `NIL` otherwise.\n\nThis object is returned by IO functions to signal end of file,\nwhere applicable." __init_globals "Initialize globals that need to be set at load time." +pi+ "Mathematical constant π." 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." quote "Leave the expression unevaluated." 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." defc*r "Define a shorthand for list access using `car` and `cdr`." rune-alphabetic? "Return `T` if the rune is alphabetic, `NIL` otherwise." (doc |
| 97 | group misc) "Miscellaneous." read-all-of "Return the list containing the values returned by call `(fn io)` repeated\nuntil the IO object runs out of data." cddddr "Shorthand for `(cdr (cdr (cdr (cdr lst))))`." prog1 "Evaluate the expressions in order, return the result of the first\nexpression." logior "Return the result of bitwise OR (inclusive OR) operation on integers." cadr "Shorthand for `(car (cdr lst))`, that is, _first element of the\nsecond element_." cdadr "Shorthand for `(cdr (car (cdr lst)))`." (doc | 97 | group misc) "Miscellaneous." read-all-of "Return the list containing the values returned by call `(fn io)` repeated\nuntil the IO object runs out of data." cddddr "Shorthand for `(cdr (cdr (cdr (cdr lst))))`." prog1 "Evaluate the expressions in order, return the result of the first\nexpression." logior "Return the result of bitwise OR (inclusive OR) operation on integers." cadr "Shorthand for `(car (cdr lst))`, that is, _first element of the\nsecond element_." cdadr "Shorthand for `(cdr (car (cdr lst)))`." (doc |
| 98 | 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))`." path-rename "Rename a file or a directory.\n\nThrows an IO error if the path does not exist or it failed to be\nrename. On most operating systems (not Plan 9), files can be moved\nbetween directories." div0 "Return the quotient of the truncated division `a/n`." set-syntax! "Associate a macro name with its application function." mod0 "Return the remainder of the truncated division `a/n`." last-pair "Return the last cell (pair) of the list." path-cwd "Return the full path to the current directory of the process, or\nchange it to the path specified with `to` argument." (doc | 98 | 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))`." path-rename "Rename a file or a directory.\n\nThrows an IO error if the path does not exist or it failed to be\nrename. On most operating systems (not Plan 9), files can be moved\nbetween directories." div0 "Return the quotient of the truncated division `a/n`." set-syntax! "Associate a macro name with its application function." mod0 "Return the remainder of the truncated division `a/n`." last-pair "Return the last cell (pair) of the list." path-cwd "Return the full path to the current directory of the process, or\nchange it to the path specified with `to` argument." (doc |
| 99 | group compress) "Compression." *print-width* "Current maximal visible width (in terminal cells) of strings printed or `NIL`\nif strings are to be printed in full.\n\nTruncation does not occur in the middle of a code point or a grapheme cluster.\n\nNote: if a string contains an invalid rune or a control character for which\nits width is undefined, the string is printed in full if the rune in question\nwould fit otherwise." rune-title-case? "Return `T` if the rune is a title case one, `NIL` otherwise.\n\nFor most runes the result is the same as with `rune-upper-case?`." 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." 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." rune-upper-case? "Return `T` if the rune is an uppercase one, `NIL` otherwise." *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`." with-bindings "Evaluate expressions with the values of the specified variables\noverridden for the duration of the evaluation." every "Return `T` if the predicate is true for _every_ element of the list,\n`NIL` otherwise." 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." p64 "Construct a 64-bit abstract pointer value." str-utf8? "Return `T` if `s` is a valid UTF-8 string, `NIL` otherwise." 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." process-post "Send a signal to the process.\n\nBoth a `note` and a `signal` must be specified for the sake of portability.\nOn Plan 9 the note (a string) is sent to the process. On any other operating system the\nprocess instead receives the signal, which is one of the following: `'ABRT`, `'ALRM`,\n`'CONT`, `'HUP`, `'INT`, `'KILL`, `'QUIT`, `'STOP`, `'TERM`, `'USR1`, `'USR2`." 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`." letrec "Same as the first form of `let` but each of the binding\nexpressions may reference any of the variables bound, before\nor after.\n\nIf a binding consists of a variable name alone, its value is\nset to `#<void>`." with-output "Evaluate expressions in `body` with `var` bound to `io` during the\nevaluation.\n\nIf expression `io` was not specified (first form), `var` will point\nto a new in-memory buffer and the resulting contents will be returned\nas a string.\n\nWith the second form the result of the last expression in the `body`\nwill be returned instead." 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)" 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,\nexception `key-error` will be thrown." (doc | 99 | group compress) "Compression." *print-width* "Current maximal visible width (in terminal cells) of strings printed or `NIL`\nif strings are to be printed in full.\n\nTruncation does not occur in the middle of a code point or a grapheme cluster.\n\nNote: if a string contains an invalid rune or a control character for which\nits width is undefined, the string is printed in full if the rune in question\nwould fit otherwise." rune-title-case? "Return `T` if the rune is a title case one, `NIL` otherwise.\n\nFor most runes the result is the same as with `rune-upper-case?`." 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." 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." *io-default-dir-mode* "Default mode bits when creating new directories." rune-upper-case? "Return `T` if the rune is an uppercase one, `NIL` otherwise." *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`." with-bindings "Evaluate expressions with the values of the specified variables\noverridden for the duration of the evaluation." every "Return `T` if the predicate is true for _every_ element of the list,\n`NIL` otherwise." 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." p64 "Construct a 64-bit abstract pointer value." str-utf8? "Return `T` if `s` is a valid UTF-8 string, `NIL` otherwise." 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." process-post "Send a signal to the process.\n\nBoth a `note` and a `signal` must be specified for the sake of portability.\nOn Plan 9 the note (a string) is sent to the process. On any other operating system the\nprocess instead receives the signal, which is one of the following: `'ABRT`, `'ALRM`,\n`'CONT`, `'HUP`, `'INT`, `'KILL`, `'QUIT`, `'STOP`, `'TERM`, `'USR1`, `'USR2`." 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`." letrec "Same as the first form of `let` but each of the binding\nexpressions may reference any of the variables bound, before\nor after.\n\nIf a binding consists of a variable name alone, its value is\nset to `#<void>`." with-output "Evaluate expressions in `body` with `var` bound to `io` during the\nevaluation.\n\nIf expression `io` was not specified (first form), `var` will point\nto a new in-memory buffer and the resulting contents will be returned\nas a string.\n\nWith the second form the result of the last expression in the `body`\nwill be returned instead." 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)" 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,\nexception `key-error` will be thrown." (doc |
| 100 | group random) "Random numbers generation." T "A boolean \"true\"." * "Return product of the arguments or `1` when none specified." putprop "Associate a property with the symbol, return the value." *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`." 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." 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." zip "Return a list where each nth element is a list of the corresponding\nelements from the parameter lists.\n\nThe resulting list is as long as the shortest of the arguments." str-width "Return the number of columns needed to represent a string or a rune.\n\nIf a non-printable control rune is encountered, the result is `NIL`,\nelse it is a non-negative integer. Rune `#\\null` is considered of width zero." acos "Return the arc cosine of `x` in radians." time->str "Return the number of nanoseconds since Epoch formatted as time and date.\n\nThis is the opposite of `str->time`." to-proper "Return a proper list that is a copy of the original list." caddr "Shorthand for `(car (cdr (cdr lst)))`." table-keys "Return the list of all keys of the table." rune-upcase "Return the higher case version of the rune.\n\nThe rune is returned unchanged if it has no case." set-doc! "Set the documentation for the symbol." 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." floor "Return the largest integer that is less than or equal to `x`.\n\nInfinity and NaN `floor` to themselves." add-exit-hook "Puts a 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 `NIL` on success or a string describing the error\notherwise.\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." (doc | 100 | group random) "Random numbers generation." T "A boolean \"true\"." * "Return product of the arguments or `1` when none specified." putprop "Associate a property with the symbol, return the value." *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`." 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." 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." zip "Return a list where each nth element is a list of the corresponding\nelements from the parameter lists.\n\nThe resulting list is as long as the shortest of the arguments." str-width "Return the number of columns needed to represent a string or a rune.\n\nIf a non-printable control rune is encountered, the result is `NIL`,\nelse it is a non-negative integer. Rune `#\\null` is considered of width zero." acos "Return the arc cosine of `x` in radians." time->str "Return the number of nanoseconds since Epoch formatted as time and date.\n\nThis is the opposite of `str->time`." to-proper "Return a proper list that is a copy of the original list." caddr "Shorthand for `(car (cdr (cdr lst)))`." table-keys "Return the list of all keys of the table." rune-upcase "Return the higher case version of the rune.\n\nThe rune is returned unchanged if it has no case." set-doc! "Set the documentation for the symbol." 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." floor "Return the largest integer that is less than or equal to `x`.\n\nInfinity and NaN `floor` to themselves." add-exit-hook "Puts a 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 `NIL` on success or a string describing the error\notherwise.\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." (doc |
| 101 | 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)." void? "Return `T` if `v` is `#<void>`, `NIL` otherwise." +f32-epsilon+ "A smallest positive floating point number such that\n`(+ 1.0f +f32-epsilon+)` is not equal to `1.0f`." 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." lognot "Return the result of bitwise NOT (complement) operation on an integer." 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." 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." *stdout* "Standard output IO stream." car "Return the first element of a cons cell (head of a list) or `NIL` if\nnot available." 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." ceiling "Return the smallest integer that is greater than or equal to `x`.\n\nInfinity and NaN `ceiling` to themselves." 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." <= "Return `T` if the arguments are in non-decreasing order (previous\none is less than or equal to the next one)." arg-error "Raise an argument error exception." put! "Store the value associated with the key and return the table.\n\nAny existing value associated with the key will be replaced." (doc | 101 | 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)." void? "Return `T` if `v` is `#<void>`, `NIL` otherwise." +f32-epsilon+ "A smallest positive floating point number such that\n`(+ 1.0f +f32-epsilon+)` is not equal to `1.0f`." 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." lognot "Return the result of bitwise NOT (complement) operation on an integer." 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." 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." *stdout* "Standard output IO stream." car "Return the first element of a cons cell (head of a list) or `NIL` if\nnot available." 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." ceiling "Return the smallest integer that is greater than or equal to `x`.\n\nInfinity and NaN `ceiling` to themselves." 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." <= "Return `T` if the arguments are in non-decreasing order (previous\none is less than or equal to the next one)." arg-error "Raise an argument error exception." put! "Store the value associated with the key and return the table.\n\nAny existing value associated with the key will be replaced." (doc |
| 102 | group number) "Operations on numbers, mathematical constants." log "Return the logarithm of `x` in `base`.\n\nDefault base is `e`, returning natural logarithm of the first\nargument." asin "Return the arc sine of `x` in radians." 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`)." 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." vec-alloc "Construct a vector of the specified `length` by repeating\nthe elements in `rest`." arr-alloc "Construct a packed array of the specified `length` by repeating\nthe elements in `rest`.\n\nThe arguments will be coerced to a single `type` which must be\na fixed-width number or pointer type, or rune." cddadr "Shorthand for `(cdr (cdr (car (cdr lst))))`." 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." closure? "Return `T` if the argument is a function that is implemented in LISP\n(as opposed to a C builtin), `NIL` otherwise." (doc | 102 | group number) "Operations on numbers, mathematical constants." log "Return the logarithm of `x` in `base`.\n\nDefault base is `e`, returning natural logarithm of the first\nargument." asin "Return the arc sine of `x` in radians." 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`)." 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." vec-alloc "Construct a vector of the specified `length` by repeating\nthe elements in `rest`." arr-alloc "Construct a packed array of the specified `length` by repeating\nthe elements in `rest`.\n\nThe arguments will be coerced to a single `type` which must be\na fixed-width number or pointer type, or rune." cddadr "Shorthand for `(cdr (cdr (car (cdr lst))))`." 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." closure? "Return `T` if the argument is a function that is implemented in LISP\n(as opposed to a C builtin), `NIL` otherwise." (doc |
| @@ -193,11 +193,11 @@ group process) "External processes." read-all "Return a list of terms read from · 90 unmodified lines |
| 193 | (:doc-example . "(cons 1 (cons 2 (cons 3 NIL)))\n; ↳ (1 2 3)") (:doc-group . list) | 193 | (:doc-example . "(cons 1 (cons 2 (cons 3 NIL)))\n; ↳ (1 2 3)") (:doc-group . list) |
| 194 | (:doc-see . cons?) (:doc-see . list) (:doc-group . builtin)) filter ((:doc-example . "(filter odd? '(0 1 2 3 4))\n; ↳ (1 3)") | 194 | (:doc-see . cons?) (:doc-see . list) (:doc-group . builtin)) filter ((:doc-example . "(filter odd? '(0 1 2 3 4))\n; ↳ (1 3)") |
| 195 | (:doc-group . list) (:doc-see . partition)) do ((:doc-example . "(do ((x 0 (+ x 1))) ; x=0 at first, x=x+1 after each step\n ((> (sin x) 0.95) ; loop until sin(x) > 0.95\n (newline) ; print a linefeed when loop terminates\n x) ; return final value of x\n (princ x)) ; print x on each step\n; ‼ 01234567\n; ↳ 8") | 195 | (:doc-group . list) (:doc-see . partition)) do ((:doc-example . "(do ((x 0 (+ x 1))) ; x=0 at first, x=x+1 after each step\n ((> (sin x) 0.95) ; loop until sin(x) > 0.95\n (newline) ; print a linefeed when loop terminates\n x) ; return final value of x\n (princ x)) ; print x on each step\n; ‼ 01234567\n; ↳ 8") |
| 196 | (:doc-group . syntax) (:doc-see . for) (:doc-see . while)) path-make-dir ((:doc-group . io)) io-buffer-mode! ((:doc-group . io) | 196 | (:doc-group . syntax) (:doc-see . for) (:doc-see . while)) path-make-dir ((:doc-group . io) |
| 197 | (:doc-see . io-buffer-mode)) let ((:doc-example . "(let ((a 123) (b 456) c) ; first form\n (cons (+ a b) (void? c)))\n; ↳ (579 . T)") | 197 | (:doc-see . *io-default-dir-mode*)) io-buffer-mode! ((:doc-group . io) (:doc-see . io-buffer-mode)) let ((:doc-example . "(let ((a 123) (b 456) c) ; first form\n (cons (+ a b) (void? c)))\n; ↳ (579 . T)") |
| 198 | (:doc-example . "(let loop ((a (iota 3 1))) ; second form\n (when a\n (princ (car a))\n (loop (cdr a))))\n; ‼ 123\n; ↳ NIL") | 198 | (:doc-example . "(let loop ((a (iota 3 1))) ; second form\n (when a\n (princ (car a))\n (loop (cdr a))))\n; ‼ 123\n; ↳ NIL") |
| 199 | (:doc-group . syntax) (:doc-see . let*) (:doc-see . letrec)) assq ((:doc-group . list) | 199 | (:doc-group . syntax) (:doc-see . let*) (:doc-see . letrec)) assq ((:doc-group . list) (:doc-see . assoc) |
| 200 | (:doc-see . assoc) (:doc-see . assv)) process-core-dumped? ((:doc-group . process) (:doc-see . process-alive?)) make-random-state ((:doc-group . random) | 200 | (:doc-see . assv)) process-core-dumped? ((:doc-group . process) (:doc-see . process-alive?)) make-random-state ((:doc-group . random) |
| 201 | (:doc-see . *random-state*) (:doc-see . random-state?) (:doc-see . random)) del! ((:doc-example . "(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)\nt\n; ↳ #table(a 1)") | 201 | (:doc-see . *random-state*) (:doc-see . random-state?) (:doc-see . random)) del! ((:doc-example . "(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)\nt\n; ↳ #table(a 1)") |
| 202 | (:doc-group . table) | 202 | (:doc-group . table) |
| 203 | (:doc-see . has?) | 203 | (:doc-see . has?) |
| @@ -389,15 +389,15 @@ group process) "External processes." read-all "Return a list of terms read from · 185 unmodified lines |
| 389 | (:doc-see . rune?)) *exit-hooks* ((:doc-group . vm) (:doc-see . add-exit-hook)) cadar ((:doc-group . list)) type-error ((:doc-example . "(type-error 'num \"hello\")\n; ‼ type error: expected num, got str: \"hello\"") | 389 | (:doc-see . rune?)) *exit-hooks* ((:doc-group . vm) (:doc-see . add-exit-hook)) cadar ((:doc-group . list)) type-error ((:doc-example . "(type-error 'num \"hello\")\n; ‼ type error: expected num, got str: \"hello\"") |
| 390 | (:doc-example . "(type-error 'num \"hello\" \"more\" \"text\")\n; ‼ type error: more: text: expected num, got str: \"hello\"") | 390 | (:doc-example . "(type-error 'num \"hello\" \"more\" \"text\")\n; ‼ type error: more: text: expected num, got str: \"hello\"") |
| 391 | (:doc-example . "(trycatch (type-error 'num \"hello\" \"extra\") identity)\n; ↳ (type-error num \"hello\" \"extra\")") | 391 | (:doc-example . "(trycatch (type-error 'num \"hello\" \"extra\") identity)\n; ↳ (type-error num \"hello\" \"extra\")") |
| 392 | (:doc-group . error)) file ((:doc-group . io)) nth ((:doc-example . "(def l '(a b c))\n(nth l 0)\n; ↳ a\n(nth l 2)\n; ↳ c\n(nth l 10)\n; ↳ NIL") | 392 | (:doc-group . error)) file ((:doc-group . io) (:doc-see . *io-default-file-mode*)) nth ((:doc-example . "(def l '(a b c))\n(nth l 0)\n; ↳ a\n(nth l 2)\n; ↳ c\n(nth l 10)\n; ↳ NIL") |
| 393 | (:doc-group . list) (:doc-see . nthcdr)) cdr ((:doc-example . "(cdr NIL)\n; ↳ NIL") | 393 | (:doc-group . list) (:doc-see . nthcdr)) cdr ((:doc-example . "(cdr NIL)\n; ↳ NIL") (:doc-example . "(cdr '(1 2 3))\n; ↳ (2 3)") |
| 394 | (:doc-example . "(cdr '(1 2 3))\n; ↳ (2 3)") (:doc-example . "(cdr '(1 . 2))\n; ↳ 2") (:doc-group . list) | 394 | (:doc-example . "(cdr '(1 . 2))\n; ↳ 2") |
| 395 | (:doc-group . builtin)) / ((:doc-example . "(/ 2)\n; ↳ 0.5") (:doc-example . "(/ 7 2 2)\n; ↳ 1.75") | 395 | (:doc-group . list) |
| 396 | (:doc-example . "(/ 10 -2)\n; ↳ -5 ; a fixnum") | 396 | (:doc-group . builtin)) / ((:doc-example . "(/ 2)\n; ↳ 0.5") |
| 397 | (:doc-example . "(/ 6.9 1.9)\n; ↳ 3.6315…") | 397 | (:doc-example . "(/ 7 2 2)\n; ↳ 1.75") (:doc-example . "(/ 10 -2)\n; ↳ -5 ; a fixnum") |
| 398 | (:doc-group . number) (:doc-see . div0) | 398 | (:doc-example . "(/ 6.9 1.9)\n; ↳ 3.6315…") (:doc-group . number) (:doc-see . div0) (:doc-see . div) |
| 399 | (:doc-see . div) (:doc-group . builtin)) process-output ((:doc-group . process) | 399 | (:doc-group . builtin)) process-output ((:doc-group . process) (:doc-see . process-input) (:doc-see . process-error)) newline ((:doc-group . io) |
| 400 | (:doc-see . process-input) (:doc-see . process-error)) newline ((:doc-group . io) (:doc-see . *linefeed*)) separate-doc-from-body ((:doc-group . doc)) cdadar ((:doc-group . list)) foldr ((:doc-example . "(foldr cons NIL (iota 5))\n; ↳ (0 1 2 3 4)") | 400 | (:doc-see . *linefeed*)) separate-doc-from-body ((:doc-group . doc)) cdadar ((:doc-group . list)) foldr ((:doc-example . "(foldr cons NIL (iota 5))\n; ↳ (0 1 2 3 4)") |
| 401 | (:doc-example . "(foldr + 0 (iota 5))\n; ↳ 10") (:doc-example . "(foldr (λ (x y a) (+ (* x y) a)) 0 (iota 5) (iota 5))\n; ↳ 30") | 401 | (:doc-example . "(foldr + 0 (iota 5))\n; ↳ 10") (:doc-example . "(foldr (λ (x y a) (+ (* x y) a)) 0 (iota 5) (iota 5))\n; ↳ 30") |
| 402 | (:doc-example . "(foldr (λ (x y a) (cons x (cons y a))) NIL (iota 5) (vec 'a 'b 'c))\n; ↳ (0 a 1 b 2 c)") | 402 | (:doc-example . "(foldr (λ (x y a) (cons x (cons y a))) NIL (iota 5) (vec 'a 'b 'c))\n; ↳ (0 a 1 b 2 c)") |
| 403 | (:doc-group . list) (:doc-see . foldl) (:doc-see . foldr1)) sqrt ((:doc-example . "(sqrt 9.0)\n; ↳ 3.0") | 403 | (:doc-group . list) (:doc-see . foldl) (:doc-see . foldr1)) sqrt ((:doc-example . "(sqrt 9.0)\n; ↳ 3.0") |
| @@ -442,7 +442,8 @@ group process) "External processes." read-all "Return a list of terms read from · 38 unmodified lines |
| 442 | (:doc-example . "(trycatch (error 0 \"oops\" 'extra) identity)\n; ↳ (error \"oops\" 0 extra)") | 442 | (:doc-example . "(trycatch (error 0 \"oops\" 'extra) identity)\n; ↳ (error \"oops\" 0 extra)") |
| 443 | (:doc-group . error)) set-top-level-value! ((:doc-example . "(let {[abc 2]}\n (set-top-level-value! 'abc 123)\n abc)\n; ↳ 2\nabc\n; ↳ 123") | 443 | (:doc-group . error)) set-top-level-value! ((:doc-example . "(let {[abc 2]}\n (set-top-level-value! 'abc 123)\n abc)\n; ↳ 2\nabc\n; ↳ 123") |
| 444 | (:doc-group . misc) (:doc-see . top-level-value) (:doc-see . set!)) load ((:doc-example . "(load \"stuff.sl\")") | 444 | (:doc-group . misc) (:doc-see . top-level-value) (:doc-see . set!)) load ((:doc-example . "(load \"stuff.sl\")") |
| 445 | (:doc-group . vm) (:doc-see . eval)) getpid ((:doc-group . sys)) keyword? ((:doc-group . type)) aref ((:doc-example . "(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") | 445 | (:doc-group . vm) (:doc-see . eval)) getpid ((:doc-group . sys)) *io-default-file-mode* ((:doc-group . io) |
| | 446 | (:doc-see . *io-default-dir-mode*) (:doc-see . file)) keyword? ((:doc-group . type)) aref ((:doc-example . "(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") |
| 446 | (:doc-group . array) (:doc-see . aset!) (:doc-group . builtin)) sym? ((:doc-group . type) (:doc-see . sym) | 447 | (:doc-group . array) (:doc-see . aset!) (:doc-group . builtin)) sym? ((:doc-group . type) (:doc-see . sym) |
| 447 | (:doc-see . gensym?) (:doc-group . builtin)) defmacro ((:doc-example . "(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\nx\n; ↳ 2") | 448 | (:doc-see . gensym?) (:doc-group . builtin)) defmacro ((:doc-example . "(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\nx\n; ↳ 2") |
| 448 | (:doc-group . syntax) (:doc-see . macroexpand)) u64 ((:doc-group . number) | 449 | (:doc-group . syntax) (:doc-see . macroexpand)) u64 ((:doc-group . number) |
| @@ -495,18 +496,21 @@ group process) "External processes." read-all "Return a list of terms read from · 46 unmodified lines |
| 495 | (:doc-see . arr) (:doc-see . vec)) cadaar ((:doc-group . list)) unwind-protect ((:doc-example . "(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") | 496 | (:doc-see . arr) (:doc-see . vec)) cadaar ((:doc-group . list)) unwind-protect ((:doc-example . "(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") |
| 496 | (:doc-group . error) | 497 | (:doc-group . error) |
| 497 | (:doc-see . catch)) cos ((:doc-group . number)) io-skip ((:doc-example . "(def f (buffer))\n(io-write f \"hello, world!\")\n(io-skip f -6 :end T)\n; ↳ 7\n(read f)\n; ↳ world!") | 498 | (:doc-see . catch)) cos ((:doc-group . number)) io-skip ((:doc-example . "(def f (buffer))\n(io-write f \"hello, world!\")\n(io-skip f -6 :end T)\n; ↳ 7\n(read f)\n; ↳ world!") |
| 498 | (:doc-group . io) (:doc-see . io-pos!)) rune-upper-case? ((:doc-example . "(rune-upper-case? #\\DŽ)\n; ↳ T") | 499 | (:doc-group . io) (:doc-see . io-pos!)) *io-default-dir-mode* ((:doc-group . io) (:doc-see . *io-default-file-mode*) |
| 499 | (:doc-example . "(rune-upper-case? #\\Dž)\n; ↳ NIL") | 500 | (:doc-see . path-make-dir)) rune-upper-case? ((:doc-example . "(rune-upper-case? #\\DŽ)\n; ↳ T") |
| 500 | (:doc-group . string) (:doc-see . rune-upcase) | 501 | (:doc-example . "(rune-upper-case? #\\Dž)\n; ↳ NIL") (:doc-group . string) (:doc-see . rune-upcase) |
| 501 | (:doc-see . rune-lower-case?) (:doc-see . rune-title-case?)) *io-in* ((:doc-group . io) | 502 | (:doc-see . rune-lower-case?) (:doc-see . rune-title-case?)) *io-in* ((:doc-group . io) (:doc-see . *io-out*) |
| 502 | (:doc-see . *io-out*) (:doc-see . *io-err*) (:doc-see . with-input-from)) with-bindings ((:doc-example . "(def (s) (str *print-base* #\\. *print-radix* #\\. 123))\n(s)\n; ↳ \"10.NIL.123\"\n(with-bindings ((*print-base* 16)\n (*print-radix* T))\n (s))\n; ↳ \"#x10.T.#x7B\"\n(s)\n; ↳ \"10.NIL.123\"") | 503 | (:doc-see . *io-err*) (:doc-see . with-input-from)) with-bindings ((:doc-example . "(def (s) (str *print-base* #\\. *print-radix* #\\. 123))\n(s)\n; ↳ \"10.NIL.123\"\n(with-bindings ((*print-base* 16)\n (*print-radix* T))\n (s))\n; ↳ \"#x10.T.#x7B\"\n(s)\n; ↳ \"10.NIL.123\"") |
| 503 | (:doc-group . syntax) (:doc-see . def) (:doc-see . let) (:doc-see . set!)) every ((:doc-example . "(every odd? '(1 3 5 7)) ; every number odd?\n; ↳ T") | 504 | (:doc-group . syntax) (:doc-see . def) |
| | 505 | (:doc-see . let) (:doc-see . set!)) every ((:doc-example . "(every odd? '(1 3 5 7)) ; every number odd?\n; ↳ T") |
| 504 | (:doc-example . "(every (λ (s) (length> s 1)) ; every string longer than one rune?\n '(\"ab\" \"cd\" \"e\"))\n; ↳ NIL") | 506 | (:doc-example . "(every (λ (s) (length> s 1)) ; every string longer than one rune?\n '(\"ab\" \"cd\" \"e\"))\n; ↳ NIL") |
| 505 | (:doc-group . list) | 507 | (:doc-group . list) (:doc-see . any)) atom? ((:doc-example . "(atom? \"a\")\n; ↳ T") (:doc-example . "(atom? NIL)\n; ↳ T") |
| 506 | (:doc-see . any)) atom? ((:doc-example . "(atom? \"a\")\n; ↳ T") | 508 | (:doc-example . "(atom? '(1))\n; ↳ NIL") |
| 507 | (:doc-example . "(atom? NIL)\n; ↳ T") (:doc-example . "(atom? '(1))\n; ↳ NIL") (:doc-group . type) | 509 | (:doc-group . type) |
| 508 | (:doc-group . builtin)) p64 ((:doc-group . number) (:doc-see . p32) (:doc-see . ptr)) str-utf8? ((:doc-example . "(str-utf8? \"привет\")\n; ↳ T") | 510 | (:doc-group . builtin)) p64 ((:doc-group . number) |
| 509 | (:doc-example . "(str-utf8? \"при\\xffвет\")\n; ↳ NIL") (:doc-group . string) (:doc-see . str?)) apply ((:doc-example . "(apply + 1 2 '(3 4 5))\n; ↳ 15") | 511 | (:doc-see . p32) (:doc-see . ptr)) str-utf8? ((:doc-example . "(str-utf8? \"привет\")\n; ↳ T") |
| | 512 | (:doc-example . "(str-utf8? \"при\\xffвет\")\n; ↳ NIL") |
| | 513 | (:doc-group . string) (:doc-see . str?)) apply ((:doc-example . "(apply + 1 2 '(3 4 5))\n; ↳ 15") |
| 510 | (:doc-example . "(apply vec '(1 2 3))\n; ↳ #(3 4 5)") | 514 | (:doc-example . "(apply vec '(1 2 3))\n; ↳ #(3 4 5)") |
| 511 | (:doc-example . "(apply arr 'u8 '(3 4 5))\n; ↳ #vu8(3 4 5)") (:doc-group . builtin)) process-post ((:doc-group . process) | 515 | (:doc-example . "(apply arr 'u8 '(3 4 5))\n; ↳ #vu8(3 4 5)") (:doc-group . builtin)) process-post ((:doc-group . process) |
| 512 | (:doc-see . process-close)) cddr ((:doc-group . list)) not ((:doc-group . syntax) (:doc-see . and) | 516 | (:doc-see . process-close)) cddr ((:doc-group . list)) not ((:doc-group . syntax) (:doc-see . and) |
| @@ -557,11 +561,10 @@ group process) "External processes." read-all "Return a list of terms read from · 44 unmodified lines |
| 557 | (:doc-see . ceiling)) add-exit-hook ((:doc-group . vm) | 561 | (:doc-see . ceiling)) add-exit-hook ((:doc-group . vm) |
| 558 | (:doc-see . *exit-hooks*)) str-join ((:doc-example . "(str-join '(\"\" \"n\" \"9\" \"heh\")\n *directory-separator*)\n; ↳ \"/n/9/heh\"") | 562 | (:doc-see . *exit-hooks*)) str-join ((:doc-example . "(str-join '(\"\" \"n\" \"9\" \"heh\")\n *directory-separator*)\n; ↳ \"/n/9/heh\"") |
| 559 | (:doc-example . "(str-join '(\"a\" \"b\" \"c\") #\\.)\n; ↳ \"a.b.c\"") | 563 | (:doc-example . "(str-join '(\"a\" \"b\" \"c\") #\\.)\n; ↳ \"a.b.c\"") |
| 560 | (:doc-group . string) (:doc-see . str-split)) >= ((:doc-group . compare)) +f32-epsilon+ ((:doc-group . number) | 564 | (:doc-group . string) (:doc-see . str-split)) >= ((:doc-group . compare)) void? ((:doc-group . type) |
| 561 | (:doc-see . +f64-epsilon)) lognot ((:doc-example . "(lognot 0)\n; ↳ -1") (:doc-example . "(lognot #s8(63))\n; ↳ #s8(-64)") | 565 | (:doc-group . misc) (:doc-see . void)) +f32-epsilon+ ((:doc-group . number) (:doc-see . +f64-epsilon)) length= ((:doc-group . list) |
| 562 | (:doc-example . "(lognot #u16(32767))\n; ↳ #u16(32768)") | 566 | (:doc-see . length<) (:doc-see . length>)) lognot ((:doc-example . "(lognot 0)\n; ↳ -1") (:doc-example . "(lognot #s8(63))\n; ↳ #s8(-64)") |
| 563 | (:doc-group . number)) length= ((:doc-group . list) | 567 | (:doc-example . "(lognot #u16(32767))\n; ↳ #u16(32768)") (:doc-group . number)) int? ((:doc-group . type) |
| 564 | (:doc-see . length<) (:doc-see . length>)) void? ((:doc-group . type) (:doc-group . misc) (:doc-see . void)) int? ((:doc-group . type) | | |
| 565 | (:doc-group . number) (:doc-see . int-valued?)) nanoseconds-monotonic ((:doc-example . "(nanoseconds-monotonic)\n; ↳ #u64(0)\n(nanoseconds-monotonic)\n; ↳ #u64(47840)") | 568 | (:doc-group . number) (:doc-see . int-valued?)) nanoseconds-monotonic ((:doc-example . "(nanoseconds-monotonic)\n; ↳ #u64(0)\n(nanoseconds-monotonic)\n; ↳ #u64(47840)") |
| 566 | (:doc-group . time) (:doc-see . time-now)) io-discard-buffer ((:doc-group . io) | 569 | (:doc-group . time) (:doc-see . time-now)) io-discard-buffer ((:doc-group . io) |
| 567 | (:doc-see . io-flush) (:doc-see . io-buffer-mode)) with-input-from ((:doc-example . "; read a single expression from a file and print it\n(with-input-from (file \"/tmp/1.txt\" :read)\n (print (read *io-in*))\n (newline))") | 570 | (:doc-see . io-flush) (:doc-see . io-buffer-mode)) with-input-from ((:doc-example . "; read a single expression from a file and print it\n(with-input-from (file \"/tmp/1.txt\" :read)\n (print (read *io-in*))\n (newline))") |