[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Scheme-reports] When ... is a literal



On Mon, Apr 25, 2011 at 4:53 AM, Andre van Tonder <andre@x> wrote:
> On page 17 it states:
>
>   If an underscore appears in the literal
>   list, then that takes precedence and underscores in the
>   pattern match as literals.
>
> I think the same should be true if <ellipsis> is in the literals list.

Scroll down a little:

  A subpattern followed by <ellipsis> can match zero
  or more elements of the input, unless <ellipsis> appears
  in the <literal>s in which case it is matched as a literal.

-- 
Alex

_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports