Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defun take-while (list pred)
- (if (null list) ()
- (let ((x (car list)))
- (if (pred x)
- (cons x (take-while (cdr list) pred))
- ()))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement