Arrow
1.1.5
arrow-optics
/
arrow.optics.typeclasses
/
Snoc
/
snoc
snoc
abstract
fun
snoc
(
)
:
Prism
<
S
,
Pair
<
S
,
A
>
>
(
source
)
Provides a
Prism
between a
S
and its
init
and last element
A
.
open
infix
fun
S
.
snoc
(
last
:
A
)
:
S
(
source
)
Append an element
A
to
S
.