Difference between revisions of "Array.branchvalues()"

From ZCubes Wiki
Jump to navigation Jump to search
 
Line 10: Line 10:
  
 
[[1,-2],[3,3],[0,44,-44]].branchvalues(true)
 
[[1,-2],[3,3],[0,44,-44]].branchvalues(true)
 +
 
-2    -44
 
-2    -44
 +
 
0
 
0
 +
 
1  3  3    44
 
1  3  3    44
  
Line 17: Line 20:
  
 
-10  -9    -8    -7  -6    -5  -4  -3  -2    -1
 
-10  -9    -8    -7  -6    -5  -4  -3  -2    -1
 +
 
0
 
0
 +
 
1  2  3  4  5  6  7  8  9  10
 
1  2  3  4  5  6  7  8  9  10
  
 
==See Also==
 
==See Also==
 
[[Array.branch() |branch]]
 
[[Array.branch() |branch]]

Latest revision as of 03:32, 16 April 2020


Array.branchvalues(SomeOnlyMatches)

Split values into negative, zero and positive values. Return the values. Show all (with null for non-matches) or matches only based on SomeOnlyMatches.

[[1,-2],[3,3],[0,44,-44]].branchvalues(true)

-2 -44

0

1 3 3 44

-10..10.branchvalues(true)

-10 -9 -8 -7 -6 -5 -4 -3 -2 -1

0

1 2 3 4 5 6 7 8 9 10

See Also

branch