extract analogous to extend?
Posted: Thu Feb 09, 2012 6:07 am
I was just trying to use "pop" to pop several items off the front of a list. I'm making a MIDI debugger. I've been very happy with the ease that newLISP has allowed for bit-banging this serial protocol.
My only gripe so far is that there is no equivalent to "pop" that lets me take multiple elements from a list. How about "extract" that is like "slice", but destructive like "extend"? Or some boolean flag to slice?
That, and bind wants the variables in the association list to all have names that begin with Uppercase. That is annoying. I note that the examples in the manual don't require this. Am I doing something wrong? Bind+unify is very cool, but the Title-case requirement is a boner-killer. Otherwise, a syntax like (setq '(a b c d) (some-function)) would be nice. Similarly with the let family. Or is this something where I am supposed to use macro wizardry by diving into my copy of Paul Graham's "On Lisp" and translating to newLISP?
Ted
My only gripe so far is that there is no equivalent to "pop" that lets me take multiple elements from a list. How about "extract" that is like "slice", but destructive like "extend"? Or some boolean flag to slice?
That, and bind wants the variables in the association list to all have names that begin with Uppercase. That is annoying. I note that the examples in the manual don't require this. Am I doing something wrong? Bind+unify is very cool, but the Title-case requirement is a boner-killer. Otherwise, a syntax like (setq '(a b c d) (some-function)) would be nice. Similarly with the let family. Or is this something where I am supposed to use macro wizardry by diving into my copy of Paul Graham's "On Lisp" and translating to newLISP?
Ted