BuiltinPair

scalus.uplc.builtin.BuiltinPair
case class BuiltinPair[A, B](fst: A, snd: B)

A builtin pair type corresponding to the Plutus Core builtin pair.

Pairs are polymorphic 2-tuples used throughout Plutus for composite data.

==UPLC Builtin Operations==

The following UPLC builtins operate on pairs:

  • fstPair - Extract the first element (corresponds to fst)
  • sndPair - Extract the second element (corresponds to snd)
  • mkPairData - Create a pair of Data values

Type parameters

A

type of the first element

B

type of the second element

Value parameters

fst

the first element

snd

the second element

Attributes

Since

Plutus V1

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product