[racket-users] Re: a for/fold #:break question, I think

2022-12-13 Thread tbh...@gmail.com
I read docs, played with examples, and (re-)discovered, that the position of #:break or #:final in the iterator clauses (of course) matters. So this, e.g. (for/fold ([j-found? #f] [pos 0]) ([ch ch-stream] [ch-idx (in-naturals 1)] #:break j-found?) solves my problem. On Tuesday, December 13,

[racket-users] Re: a for/fold #:break question, I think

2022-12-12 Thread tbh...@gmail.com
I haven't asked any questions here for a long time, so hope it's OK to cross-post here: https://racket.discourse.group/ (which I just discovered.) Cheers, Tim On Monday, December 12, 2022 at 10:28:22 PM UTC+1 tbh...@gmail.com wrote: > hi, I'm trying to do something slightly harder th