Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Array-concatenation/EchoLisp/array-concatenation.l
Normal file
12
Task/Array-concatenation/EchoLisp/array-concatenation.l
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
;;;; VECTORS
|
||||
(vector-append (make-vector 6 42) (make-vector 4 666))
|
||||
→ #( 42 42 42 42 42 42 666 666 666 666)
|
||||
|
||||
;;;; LISTS
|
||||
(append (iota 5) (iota 6))
|
||||
→ (0 1 2 3 4 0 1 2 3 4 5)
|
||||
|
||||
;; NB - append may also be used with sequences (lazy lists)
|
||||
(lib 'sequences)
|
||||
(take (append [1 .. 7] [7 6 .. 0]) #:all)
|
||||
→ (1 2 3 4 5 6 7 6 5 4 3 2 1)
|
||||
Loading…
Add table
Add a link
Reference in a new issue