Arrow
1.1.5
arrow-optics
/
arrow.optics
/
PPrism
/
Companion
/
only
only
fun
<
A
>
only
(
a
:
A
,
eq
:
(
constant
:
A
,
other
:
A
)
->
Boolean
=
{ aa, b -> aa == b }
)
:
Prism
<
A
,
Unit
>
(
source
)
A
PPrism
that checks for equality with a given value
a