The expression

(x:nat)=> 0

should be read as "a function which takes a natural number x as an 
argument and returns 0".

Currently natural numbers are defined as just ints. See 
x10.runtime/src-x10/x10/lang/_.x10.

We will soon switch it to unsigned int.


Kshitij Mehta wrote:
> Hello
> In the following snippet of code, what 'x:nat' in the second statement  
> mean?
>
> val data: Rail[Int];
> data = Rail.makeVar[Int](n, (x:nat)=>0);
>   



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
X10-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/x10-users

Reply via email to