vector?(3scm)
β¨ vector? β the vibe check for vectors β¨
Ok so bestie, welcome to vector?(3scm), the Scheme Programmer's Manual page that's literally just here to answer one question: is this thing a vector or not? π
π LIBRARY
Import it from whichever flavour of Scheme you're living your life in:
(import (rnrs)) ;R6RS
(import (rnrs base)) ;R6RS
(import (scheme r5rs)) ;R7RS
(import (scheme base)) ;R7RS
πΈ SYNOPSIS
(vector? obj)
That's it. One argument. One question. One truth. π¦
π DESCRIPTION
So vector? takes obj and returns #t if obj is a vector, and #f otherwise. That's the whole personality. No cap, she's a one-trick icon and she ate. π
β RETURN VALUES
Returns a single boolean object, exactly as described above. One value, no drama. β¨
π EXAMPLES
(vector? '#(1 2 3)) => #t
(vector? '(1 2 3)) => #f
(vector? "123") => #f
The way that '#(1 2 3) is a vector and '(1 2 3) is a list and "123" is a stringβ¦ literally three different besties, three different vibes. π
π ERRORS
This procedure can raise exceptions with the following condition types:
&assertion(R6RS) β the wrong number of arguments was passed. Not me passing the wrong count π- R7RS β the assertions described above are errors. Implementations may signal an error, extend the procedure's domain of definition to include such arguments, or fail catastrophically. Yes, catastrophically. Fr fr, don't test her. π₯
π«Ά SEE ALSO
make-vector(3scm)β go make one first, then come back and ask if it's a vector. Main character energy. π§
π STANDARDS
R4RS, IEEE Scheme, R5RS, R6RS, R7RS. She's certified everywhere, iykyk. π
π AUTHORS
This page is part of the scheme-manpages project. It includes materials from the RnRs documents. More info lives at https://github.com/schemedoc/manpages/. π
And that's the whole page, bestie β dated 2021-01-17, from the Scheme Programmer's Manual, vector?(3scm). Stay iconic, stay boolean. π
β¨
π¦ where this page comes from
- nixpkgs unstable: scheme-manpages 0-unstable-2024-02-11
- π the page's license: MIT
- Copyright (c) 2021 Gwen Weinholt
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms