News for hackers. Stuff that matters.
Re:Programming Without Variables by dborg on Friday September 13, 2013 @08:41AM (#6380038)
Actually you'd want to save it as (1 . (2 . (4 . (8 . NIL)))) since o/w you'd still get quadratic time complexity as you need to unpack your whole list when you add the next value.
Re:Programming Without Variables by tehwalrus on Friday September 13, 2013 @09:47AM (#6380379)
True! I forgot that you only keep a pointer to the start.
Re:Programming Without Variables by dllthomas on Friday September 13, 2013 @11:14AM (#6381003)
or build it lazily...