pair#
- swordfish.pair(a, b, *, type=None)#
Creates a Swordfish Pair from two Scalar values.
- 参数:
a (Any) -- The first value in the Pair.
b (Any) -- The second value in the Pair.
type (DataType, optional) -- The data type of the Pair. Defaults to None.
- 返回:
A Swordfish Pair object.
- 返回类型:
示例
>>> import swordfish as sf >>> sf.pair(1, 0, type="LONG") Pair(1 : 0, type=LONG)