Plaster
New
List
Login
common-lisp
default
anonymous
2021.06.27 08:22:35
(let ((s "1000-2000-30")) (list (char s 0) (char s 1) (char s 2) (char s 3) (char s 5) (char s 6) (char s 7) (char s 8) (char s 10) (char s 11))) ;; Is there a way to write this in a simpler way? ;; Something similar to Python's list comprehension, ;; e.g., [s[i] for i in (0, 1, 2, 3, 5, 6, 7, 8, 10, 11)]
Raw
Annotate
Repaste
Edit