list(3scm)

πŸ“¦ version 0-unstable-2024-02, in nixpkgs unstable

🌸 NAME 🌸

okay so this is list(3scm) from the Scheme Programmer's Manual, and it's literally the β€œmake a list out of ur arguments” bestie. list β€” create a list from the arguments. πŸ’…

πŸ“š LIBRARY πŸ“š

these are the import vibes, exact:

(import (rnrs))                     ;R6RS
(import (rnrs base))                ;R6RS
(import (scheme r5rs))              ;R7RS
(import (scheme base))              ;R7RS

✨ SYNOPSIS ✨

the whole synopsis is literally:

(list obj ...)

πŸ’– DESCRIPTION πŸ’–

it returns a newly allocated list of its arguments. brand-new list energy, no cap. πŸ¦‹

πŸŽ€ RETURN VALUES πŸŽ€

returns a single value; a list. that's the whole return, bestie. πŸ‘‘

πŸ”₯ EXAMPLES πŸ”₯

(list 'a (+ 3 4) 'c)  =>  (a 7 c)
(list)                =>  ()

🌈 COMPATIBILITY 🌈

except for out of memory situations, this procedure works the same everywhere. so like, it's giving universal icon behavior. 🌍

πŸ’€ ERRORS πŸ’€

this procedure can raise exceptions with the following condition types:

  • &implementation-restriction (R6RS) β€” there is not enough free memory to hold the new pairs. (not all implementations raise this exception, the majority just crash. πŸ’€)
  • R7RS β€” implementations may signal an error during out of memory conditions, or fail catastrophically. 😭

πŸ‘€ SEE ALSO πŸ‘€

the bestie cross-refs are:

⭐ STANDARDS ⭐

R4RS, IEEE Scheme, R5RS, R6RS, R7RS. she's certified, periodt. πŸŽ€

πŸ•°οΈ HISTORY πŸ•°οΈ

the list function first appeared in LISP 1.5 (1962). old-school but still main character energy. πŸ‘‘

🫢 AUTHORS 🫢

this page is part of the scheme-manpages project. it includes materials from the RnRS documents. more information can be found at https://github.com/schemedoc/manpages/. πŸ’œ


made with πŸ’– from the 2023-03-26 drop of list(3scm) β€” catch u later, bestie 🫢

πŸ“¦ where this page comes from