Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

(void?) in DrRacket

Tags:

void

racket

How to use the built-in function void?. The code

(void? void)

returns #f. Deeply confused.

Appreciate your help. And apparently I have to type more stuff in order to get it posted

like image 944
x7qiu Avatar asked May 04 '26 12:05

x7qiu


1 Answers

void is a function that returns the special constant #<void>. So the function itself is not void, but its result is:

(void? (void))

produces #t. See http://docs.racket-lang.org/guide/void_undefined.html and/or http://docs.racket-lang.org/reference/void.html.

like image 103
nadeem Avatar answered May 09 '26 08:05

nadeem



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!