5 Lists
(require unstable/list) |
(list-prefix? l r) → boolean? |
l : list? |
r : list? |
True if l is a prefix of r.
Example: |
> (list-prefix? '(1 2) '(1 2 3 4 5)) |
#t |
The subsequent bindings were added by Sam Tobin-Hochstadt.
| ||||||||
l : list? | ||||||||
f : procedure? |
Example: |
> (filter-multiple (list 1 2 3 4 5) even? odd?) |
(2 4) |
(1 3 5) |
Examples: |
(extend ’(1 2 3) ’(a) ’b)