hashtable?(3scm)
π hashtable? β the vibe check for hashtables π
okay bestie, this one's from the Scheme Programmer's Manual (yes, that's the 3scm manual section, it's giving very "reference docs but make it cute") β¨
πΈ NAME πΈ
hashtable? β the little procedure that checks if an object is a hashtable. that's it. that's the whole job. icon behavior honestly π
π LIBRARY π
she lives in two places, depending on your import vibe:
(import (rnrs)) ;R6RS
(import (rnrs hashtables)) ;R6RS
both are R6RS, no cap π
β¨ SYNOPSIS β¨
(hashtable? obj)
π¦ DESCRIPTION π¦
so like, you hand her an obj and she tells you the truth: #t if obj is a hashtable, #f otherwise. she's not out here guessing, she's not out here being shady β just a clean yes or no. lowkey the most honest friend you have π«Ά
π RETURN VALUES π
returns a single boolean object. one. that's the whole return. #t or #f, nothing in between, no extra drama π
π EXAMPLES π
(hashtable? (make-eq-hashtable)) => #t
(hashtable? '()) => #f
look at that first one slaying, and the second one?? '() is an empty list bestie, not a hashtable, she said #f and she meant it π
π§ ERRORS π§
this procedure can raise exceptions with these condition types, so heads up:
&assertion(R6RS) β the wrong number of arguments was passed, or an argument was outside its domain. basically: don't do that. she will call you out π
π SEE ALSO π
make-hashtable(3scm)β go make one first, then come back and vibe check it
π STANDARDS π
R6RS, SRFI-126. both. she's certified, periodt π
π« HISTORY π«
this procedure is new in R6RS. and fun fact for the lore girlies: the most common hashtable library in Scheme before R6RS was SRFI-69 πΈ
π₯ AUTHORS π₯
this page is part of the scheme-manpages project. it includes materials from the RnRS documents. more info can be found at https://github.com/schemedoc/manpages/. absolute legends, every one of them π«Ά
and that's the whole page bestie β source/version notes and the date on the tin say 2022-03-29 for hashtable?(3scm), so go forth and vibe check your hashtables responsibly β¨ππ
π¦ where this page comes from
- nixpkgs unstable: scheme-manpages 0-unstable-2024-02-11
- π the page's license: MIT
- Copyright (c) 2022 Gwen Weinholt
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms