boolean?(3scm)
π 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
- 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