string?(3scm)

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

✨ NAME ✨

okay so bestie, this is string?(3scm) β€” the manual page for string? from the Scheme Programmer's Manual. Its whole vibe: test if an object is a string. no cap πŸ’…

πŸ“š LIBRARY πŸ“š

import these, bestie:

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

🫢 SYNOPSIS 🫢

the call looks like this:

(string? obj)

πŸ’… DESCRIPTION πŸ’…

Returns #t if obj is a string, otherwise returns #f. literally that simple ✨

πŸŽ€ RETURN VALUES πŸŽ€

Returns a single boolean object as per the description. one boolean, that’s the whole return situation 🫢

🧚 EXAMPLES 🧚

vibe check on the examples:

(string? "123")        => #t
(string? '#(1 2 3))    => #f
(string? '(1 2 3))     => #f

πŸ’€ ERRORS πŸ’€

This procedure can raise exceptions with the following condition types:

  • &assertion (R6RS) β€” the wrong number of arguments was passed.
  • 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.
bestie, β€œfail catastrophically” is right there in the original wording, so yeah β€” that’s a real caveat, not me being dramatic 😭

πŸ‘‘ SEE ALSO πŸ‘‘

go check out make-string(3scm) next πŸ’…

🌈 STANDARDS 🌈

the standards list is: R4RS, IEEE Scheme, R5RS, R6RS, R7RS. standards icon behavior fr fr ✨

πŸ¦‹ 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/. 🫢


xoxo πŸ’– β€” this string?(3scm) page is dated 2021-01-17, and that’s the cute little sign-off, bestie πŸŽ€

πŸ“¦ where this page comes from