Welcome! Please see the About page for a little more info on how this works.

0 votes
in Clojure by

user=> (take-nth -1 [1 3 4]) ; hangs user=> (take 5 (take-nth -1 [5 9 14])) (1 1 1 1 1)

I understand this behavior may be intentionally undefined,
but raising the issue on IRC didn't yield an answer on whether
this is a bug or grey area.

3 Answers

0 votes
by

Comment made by: stu

This is probably even worse now -- i.e. likely different behavior with transducer arity.

0 votes
by

Comment made by: alexmiller

user=> (into [] (comp (take-nth -1) (take 5)) [5 9 14]) [5 9 14]

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-1300 (reported by alex+import)
...