diff options
author | Colin Okay <okay@toyful.space> | 2021-02-21 09:49:37 -0600 |
---|---|---|
committer | Colin Okay <okay@toyful.space> | 2021-02-21 09:49:37 -0600 |
commit | 02bd636e990e8e9cf2a20eaf4cd0e0f22acb0ab3 (patch) | |
tree | a111ef0853851dcd2c3c34585dc7f73ff648d84c /gtwiwtg-test.lisp | |
parent | 6e7805d241360a5e1185dd41c6099f7f5aae5dba (diff) |
version bump
Added resumable generators
Diffstat (limited to 'gtwiwtg-test.lisp')
-rw-r--r-- | gtwiwtg-test.lisp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gtwiwtg-test.lisp b/gtwiwtg-test.lisp index be79e23..80c3c86 100644 --- a/gtwiwtg-test.lisp +++ b/gtwiwtg-test.lisp @@ -106,6 +106,15 @@ '(#\r #\e #\e #\r #\n)) + (let ((res (make-resumable! + (concat! (seq "hello") + (indexed! (filter! 'alpha-char-p (seq "a b c 1 2 3 easy as"))))))) + (take 1 res) + (setf res (resume! res)) + (is '(#\e #\l #\l #\o (0 #\a) (1 #\b) (2 #\c) (3 #\e) (4 #\a) (5 #\s) (6 #\y) + (7 #\a) (8 #\s)) + (collect res))) + ) |