Implement a "take" function to read subsequences of a list
Basically a wrapper over subseq but for when using `->>` as the list is the last parameter.
This commit is contained in:
@@ -29,3 +29,6 @@ each member is STEP distance apart."
|
||||
|
||||
(fn parse-integer* (inp) (-> (string) (or integer list))
|
||||
(parse-integer inp :junk-allowed t))
|
||||
|
||||
(fn take (n lst) (-> (fixnum list) list)
|
||||
(subseq lst 0 n))
|
||||
|
||||
Reference in New Issue
Block a user