Manuals/calci/MAKEPAIR
Jump to navigation
Jump to search
MAKEPAIR (X,Y)
- Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle X} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Y} are two set of values.
Description
- This function is making a pair of two set of values.
- In Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle MAKEPAIR(X,Y)} ,Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle X} and Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Y} 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])
| 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 |