Delete all functions and variables


#1

Environment - ESP32, uLisp, serial connection from Mac.

I’ve been pushing various code and variables to my ESP32 from the Mac over a serial connection. I know about makunbound, but is there a way of deleting everything? Like a (makunbound *)?

I’m sure I’ve seen a way to do this, but I didn’t make a note of it, and I’ve searched fruitlessly.

Thanks!


#2

This is the easiest way:

(mapc makunbound (globals))

I’ll add it to the Language reference at Language reference - makunbound.


#3

Perfect. mapc mapping makunbound to all the elements of globals.

Thanks!


#4