Agreed, additionally it's not always the case that it ends the inner most loop - it ends the loop it comes after. This can mean it ends the entire for loop early

e.g.

(for [x (range 3) :while (not= x 1) y (range 3)] [x y])

;;=> ([0 0] [0 1] [0 2])

Camin McCluskey
Camin McCluskey

Written by Camin McCluskey

Co-Founder & CTO - stackfix.com. Formerly Software Engineer @Skyscanner and @LSEManagement Alum.

No responses yet