Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (let ((string "123 456"))
- (remove nil (mapcar (lambda (item)
- (ignore-errors (parse-integer (coerce item 'string))))
- (nsplit-list-on-indicator (coerce string 'list)
- (lambda (a b) (not (equiv (digit-char-p a) (digit-char-p b))))))))
- --> (123 456)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement