string?(3scm)
β¨ 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
- 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