menu
flechette package
documentation
struct/tuple.dart
TupleOps extension
TupleOps extension
dark_mode
light_mode
TupleOps<
T
,
S
>
extension
on
$
<
T
,
S
>
Methods
bimap
<
P
,
Q
>
(
P
f
(
T
),
Q
g
(
S
)
)
→
$
<
P
,
Q
>
apply function f on left value and g on right value and return tuple.
mapN
<
P
>
(
P
f
(
T
,
S
)
)
→ P
swap
(
)
→
$
<
S
,
T
>
returns new tuple swapping left one with right one.
flechette package
documentation
struct/tuple
TupleOps extension
tuple library