Logo GenPRES

Tuple Module

Returns the first, second or third element of a tuple of three elements.

Functions and values

Function or value Description

fstOf3 (x, arg1, arg1)

Full Usage: fstOf3 (x, arg1, arg1)

Parameters:
    x : 'a
    arg1 : 'b
    arg2 : 'c

Returns: 'a
Type parameters: 'a, 'b, 'c

Get the first element of a tuple of 3 elements

x : 'a
arg1 : 'b
arg2 : 'c
Returns: 'a

sndOf3 (arg1, x, arg1)

Full Usage: sndOf3 (arg1, x, arg1)

Parameters:
    arg0 : 'a
    x : 'b
    arg2 : 'c

Returns: 'b
Type parameters: 'a, 'b, 'c

Get the second element of a tuple of 3 elements

arg0 : 'a
x : 'b
arg2 : 'c
Returns: 'b

thrdOf3 (arg1, arg1, x)

Full Usage: thrdOf3 (arg1, arg1, x)

Parameters:
    arg0 : 'a
    arg1 : 'b
    x : 'c

Returns: 'c
Type parameters: 'a, 'b, 'c

Get the third element of a tuple of 3 elements

arg0 : 'a
arg1 : 'b
x : 'c
Returns: 'c

Type something to start searching.