cl-cookbook icon indicating copy to clipboard operation
cl-cookbook copied to clipboard

Feature Request: Explanation with examples of map-into

Open jgarte opened this issue 3 years ago • 3 comments

http://www.lispworks.com/documentation/HyperSpec/Body/f_map_in.htm

jgarte avatar Apr 11 '22 17:04 jgarte

mmh it's a destructive operation. Maybe we can explain it but not advertise it, preferring non-destructive operations.

vindarel avatar Apr 11 '22 18:04 vindarel

That sounds like the functional thing to do.

jgarte avatar Apr 11 '22 21:04 jgarte

Isn't push and pop a destructive operation or should we avoid adding more to the cookbook?

mmh it's a destructive operation. Maybe we can explain it but not advertise it, preferring non-destructive operations.

Oh just read your reply more carefully. Sorry. Yes, I'd like to just briefly explain it so that it can be documented. I agree with not advertising it if we don't want to encourage operations/programming that involves using lots of mutation.

jgarte avatar Apr 11 '22 21:04 jgarte