Remember our vowels example from The bitset! datatype section?
;-- see Chapter08/more-features.red:vowel: charset "aeiou" str: "dog"find str vowel ;== "og"
Using parse we can write this as follows:
parse str [ to vowel to end] ;== trueparse "xyz" [ to vowel to end] ;== false
The end word, which exists only in the parse dialect, returns true when the current position pointer is at the end of the input.