Frequently Asked Questions

Programming KRL

  1. Can I loop in the prelude? No. At least not as that term is commonly applied in programming. KRL does not allow assignment in the prelude (those are declarations). While and for loops without assignment don't make much sense. Usually any looping that needs to be done in the prelude can be accomplished using the implicit loops of the pick() operator or the more explicit looping of the map() and filter() operators. For everything else, there's always recursion.