Skip to content

WithCoordinates ​

A value shaped like x with the given coordinates.

WithCoordinates(x, coordinates)A value shaped like x with the given coordinates.
Typed signatures
TypePackageApplies
(any, any) -> unknownstructuresalways

Domain: Structures

Details
  • The ProductOrder protocol's member that rebuilds a value from its coordinates; x picks the implementation, since a bare list can't.

Examples

Basic #

xx picks the implementation: a complex number rebuilt from its coordinates

live ↗
InWithCoordinates(2.5+3.7i,[2,3])\mathrm{WithCoordinates}(2.5+3.7i, \bigl\lbrack2, 3\bigr\rbrack)Out2+3i2+3i
About
Examples1

See also: Coordinates