All pastes #794678 Raw Edit

Miscellany

public text v1 · immutable
#794678 ·published 2007-11-23 10:30 UTC
rendered paste body
(defun construct-lines (arr l-word wordlist) ;; could put l-word in let (1- (length wordlist))
  (let ((complete-list '()))
    (while (> 0 l-word)
      (let ((temp-list '()))
	(loop for i from (aref arr 1 l-word) to l-word do 
	     (push (elt wordlist i) temp-list)
	     (setf l-word (aref arr 1 l-word))) 
	(push (reverse temp-list) complete-list)))
    complete-list))