Difference between revisions of "Manuals/calci/MAKEPAIR"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "makepair")
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
makepair
+
<div style="font-size:30px">'''MAKEPAIR (X,Y)'''</div><br/>
 +
*<math>X</math> and <math>Y</math> are two set of values.
 +
 
 +
==Description==
 +
*This function is making a pair of two set of values.
 +
*In <math>MAKEPAIR(X,Y)</math>,<math>X</math> and <math>Y</math> are two set of values to make a pair.
 +
*So this function constructs a pair object with its first element set to x and its second element set to y.
 +
*So it is showing the pair of the first element in X with all the element in Y.
 +
*Then next second element in X with all the  element in Y and so on.
 +
 
 +
==Examples==
 +
#MAKEPAIR([4,9,5],[10,7,3])
 +
{| class="wikitable"
 +
|+Spreadsheet
 +
|-
 +
! X !! Y !! MAKEPAIR
 +
|-
 +
| 4 ||10 || 4 10
 +
|-
 +
| 4 || 7 ||4 7
 +
|-
 +
| 4|| 3 || 4 3
 +
|-
 +
| 9 || 10 || 9 10
 +
|-
 +
|9 || 7 || 9 7
 +
|-
 +
|9 || 3 || 9 3
 +
|-
 +
|5 || 10 || 5 10
 +
|-
 +
|5 || 7 || 5 7
 +
|-
 +
| 5 || 3 || 5 3
 +
|}
 +
 
 +
==Related Videos==
 +
 
 +
{{#ev:youtube|v=jAfNg3ylZAI|280|center|Union}}
 +
 
 +
==See Also==
 +
*[[Manuals/calci/MAKESUBTOTAL | MAKESUBTOTAL]]
 +
*[[Z_API_Functions | List of Main Z Functions]]
 +
*[[ Z3 |  Z3 home ]]
 +
 
 +
==References==
 +
[http://www.cplusplus.com/reference/utility/make_pair/ Make pair]
 +
*[[Z_API_Functions | List of Main Z Functions]]
 +
*[[ Z3 |  Z3 home ]]

Latest revision as of 15:00, 15 January 2019

MAKEPAIR (X,Y)


  • and are two set of values.

Description

  • This function is making a pair of two set of values.
  • In , and are two set of values to make a pair.
  • So this function constructs a pair object with its first element set to x and its second element set to y.
  • So it is showing the pair of the first element in X with all the element in Y.
  • Then next second element in X with all the element in Y and so on.

Examples

  1. MAKEPAIR([4,9,5],[10,7,3])
Spreadsheet
X Y MAKEPAIR
4 10 4 10
4 7 4 7
4 3 4 3
9 10 9 10
9 7 9 7
9 3 9 3
5 10 5 10
5 7 5 7
5 3 5 3

Related Videos

Union

See Also

References

Make pair