On 5/29/2012 2:26 PM, Rodrique Djonkou wrote:
> Dear,
> I wrote a method which take in entry a IntRange, and a Region,
> How could I get access to the min and the max of a IntRange / or a
> Region.Rank.
>
> Basically I want to know if there is a function "min"/"max" that I can
> use like this (MyIntRange).min /max to get the min/max value
>
> Thanks !
> Rodrique D.
For IntRange, just take a look at the code in
x10.runtime/src-x10/x10/lang/IntRange.x10
min and max are fields that you can access.
Similarly, for Region (in x10/array/Region.x10) you will find:
/**
* Returns a function that can be used to access the lower bounds
* of the bounding box of the region.
*/
abstract public def min():(int)=>int;
/**
* Returns a function that can be used to access the upper bounds
* of the bounding box of the region.
*/
abstract public def max():(int)=>int;
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
X10-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/x10-users