boolean?(3scm)

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

πŸ’– NAME πŸ’–

Okay bestie, welcome to boolean?(3scm) from the Scheme Programmer’s Manual β€” the page that says, plain and simple: boolean? β€” test if an object is a boolean. Tiny predicate, main character energy. πŸ’…


πŸ”– LIBRARY πŸ“š

Import it however your Scheme era says, because the page lists all four doors:

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

✨ SYNOPSIS ✨

(boolean? obj)

πŸ¦‹ DESCRIPTION πŸ¦‹

So the description is giving: it returns #t if obj is an exact integer object within the fixnum range, and #f otherwise. That’s what the page says, and we are not out here editing the source, bestie. 🫢

πŸŽ€ RETURN VALUES πŸŽ€

It hands back a single boolean object as per the description. One little boolean, doing its thing. Periodt. ✨

🌸 EXAMPLES 🌸

Watch it in the wild:

(boolean? #f)    => #t
(boolean? 0)     => #f
(boolean? '())   => #f

πŸ’€ ERRORS πŸ’€

This procedure can raise exceptions with the following condition types:

  • &assertion (R6RS) β€” The wrong number of arguments was passed. Not the vibe. 😭
  • 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. We stay dramatic. πŸ’…

πŸ‘€ SEE ALSO πŸ‘€

πŸ‘‘ STANDARDS πŸ‘‘

It’s repping R4RS, IEEE Scheme, R5RS, R6RS, and R7RS. Iconic range, honestly. 🌈

🫢 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/. Credit where credit is due, bestie. πŸ’–


xoxo, bestie πŸ’– β€” this boolean?(3scm) page is dated 2021-01-17. That’s the whole manual. Slay and goodbye πŸŽ€

πŸ“¦ where this page comes from