Whilst working on a google API wrapper, I came across the need to separate a sequence into sub-sequences based on a separator condition. This also led to a requirement for versions of takeWhile and skipWhile which also include the element which first breaks the condition predicate.
3 people like thisPosted: 10 years ago by Chris Ballard
@Samuel - saw your post and thought one part was similar to bit shifting I was playing with yesterday, so rewrote the FromBooleans function using a fold instead of ref cells. Probably not as readable as your version though :)
2 people like thisPosted: 10 years ago by Chris Ballard
Full source code for my blog entry on this subject - http://chrsb.co/BNqAbM
1 people like thisPosted: 10 years ago by Chris Ballard