fork download
  1. (defun cleave (s &aux (p (position #\: s)))
  2. (if p (cons (substring s 0 p)
  3. (cleave (substring s (1+ p))))
  4. (list s)))
  5. (print (cleave "aa:bb:cc"))
Success #stdin #stdout 0.02s 8228KB
stdin
Standard input is empty
stdout
("aa" "bb" "cc")