development version newLISP 8.8.8

Started by newdep, May 28, 2006, 10:21:54 PM

Previous topic - Next topic

rickyboy

#15
Quote from: "Lutz"It would work like 'cons' but from right to left, and we could call it 'tcons' like tail cons or 'rcons' like reverse cons or 'apcons' like append-cons or something entirely different?

...

So it would have to be another name, 'append-one' is very descriptive but seems too long to me, any body else with any suggestions, and is this really needed at all?


I saw it called 'snoc' in some Haskell paper I read a few years back.  Get it?  snoc?  Har-dee har-har.  :-)  It's also pronouncable.
(λx. x x) (λx. x x)

Lutz

#16
Yes, I also thought about 'snoc', but somehow it feels weird, perhaps we should just hijack 'acons' ;)



Lutz