PromptECO / clarity-sequence

Sequence library for Clarity
Eclipse Public License 2.0
12 stars 2 forks source link

The `take` function should return empty list when n argument is zero #2

Closed njordhov closed 2 years ago

njordhov commented 2 years ago

When the n argument is zero, take should return an empty list, instead of failing.

(take 0 (list 1 2 3 4 5 6)) => ()

njordhov commented 2 years ago

Fixed with ST165C6WB01M6CYJ2ZZESYBF51KQ01SVW3P7D1KM2.take7-01

njordhov commented 2 years ago

Same for drop. Done.