Arc Forum
new
|
comments
|
leaders
|
submit
login
4 points
by
fallintothis
5219 days ago |
link
|
parent
Arguably, no.
cut
uses
firstn
on lists, which works how you expected it to behave for strings, which is inconsistent.
arc> (firstn 10 '(a b)) (a b) arc> (cut '(a b) 0 10) (a b) arc> (cut '(a b) 200 10) nil
Of course,
cut
could just throw errors for out-of-bounds list indices, too.