[nem-en] Pattern matching outside of 'match' block?

Michal Moskal michal.moskal at gmail.com
Wed Feb 21 19:43:44 CET 2007


Yes.

On 2/21/07, Vladimir Reshetnikov <v.reshetnikov at gmail.com> wrote:
> @* - is it a prefix form of infix operator * ?
>
> On 2/21/07, Michal Moskal <michal.moskal at gmail.com> wrote:
> > On 2/21/07, Vladimir Reshetnikov <v.reshetnikov at gmail.com> wrote:
> > > So, two-element tuple is handled by this:
> > >
> > >        | <[ $expr1 * $expr2 ]> =>
> > >          CanBeTypeName (expr1) && CanBeTypeName (expr2)
> > >
> > > But I have no idea, how can I handle all tuples by a single branch :(
> >
> > <[ @* (.. $exprs) ]> => exprs.ForAll (CanBeTypeName)
> >
> >
> > --
> >   Michał
> >
> > _______________________________________________
> > https://nemerle.org/mailman/listinfo/devel-en
> >
> >
>
> _______________________________________________
> https://nemerle.org/mailman/listinfo/devel-en
>
>


-- 
   Michał


More information about the devel-en mailing list