>  Hello,
>  
>  Is the following behavior expected?

yes

>
>>> parse "html" ["html" | "htm"]
>== true
>
>and
>
>>> parse "html" ["htm" | "html"]
>== false
>(the above is what bothers me)
>

["htm"] eats "htm", rest "l". 
["htm"] has eaten, so [| "html"] is ignored.
there is a rest, so 'false .

had similar case with ["s" | "sw"] which has to be ["sw"|"s"]
generally longest case first.

>while:
>
>>> parse "htm" ["html" | "htm"]
>== true
>
>and
>
>>> parse "htm" ["htm" | "html"]
>== true
>
>  thanks in advance, fantam
>-- 
>mailto:[EMAIL PROTECTED]
>
>
>
>-- 
>To unsubscribe from this list, please send an email to
>[EMAIL PROTECTED] with "unsubscribe" in the 
>subject, without the quotes.
>
-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to