2010-11-11, 04:17 PM
151 without strings in Common LISP:
Could shave off more in Arc, but meh.
Issue is probably that I don't have regex easily available or any string functions at all.
Code:
(do*((a'(1)(nconc a`(,c,v)))(c 0 0)(v 1(car a)))(())(format t"~{~A~}~%"a)(setf b a a())(dolist(d b)(if(= d v)(incf c)(setq a(nconc a`(,c,v))c 1 v d))))Issue is probably that I don't have regex easily available or any string functions at all.

