We could use a list of the built-in valid for operators in addition to map, filter and fold.
I just wrote one for fold_n (https://code.pyret.org/editor#share=11xDUUtBkp-FtsvXGV3izsA3sOeJhY89U&v=be0f222) for myself and was just going to start on fold2 when I discovered to my surprise that it already works. I couldn't find the relevant code in the Pyret source tree.
The longer explanation of for operators should also be moved from the tour to section 2.1.
We could use a list of the built-in valid for operators in addition to map, filter and fold.
I just wrote one for fold_n (https://code.pyret.org/editor#share=11xDUUtBkp-FtsvXGV3izsA3sOeJhY89U&v=be0f222) for myself and was just going to start on fold2 when I discovered to my surprise that it already works. I couldn't find the relevant code in the Pyret source tree.
The longer explanation of for operators should also be moved from the tour to section 2.1.