[nem-en] match | match | match
Michal Moskal
michal.moskal at gmail.com
Wed Aug 9 03:55:39 CEST 2006
On 8/8/06, Igor Tkachev <it at rsdn.ru> wrote:
> Hi All,
>
> Suppose I have the following code:
>
> public static ToMethodDefinitionString(this t : TyVar) : string
> {
> | mtype is MType =>
> match (mtype)
> {
> | Fun(args, _) =>
> match (args)
> {
> | mt is MType =>
> match (mt)
> {
> | Tuple as tuple =>
> // finally, lets do something here
> }
> }
> }
> }
public static ToMethodDefinitionString(this t : TyVar) : string
{
| MType.Fun (MType.Tuple as tuple, _) =>
// finally, lets do something here
}
Is it what you had in mind?
Michał (answering questions on the mailing lists to have an excuse
not to work)
More information about the devel-en
mailing list