Pair#
- class swordfish._swordfishcpp.Pair#
Represents a pair of values in Swordfish.
A container that holds exactly two values. Instances of this class should not be created directly. Use the swordfish.pair() function to create Pair objects.
- to_list()#
Converts the Pair to a Python list.
- Returns:
A Python list containing two elements. Each element is converted to its corresponding Python type.
- Return type:
list