UNPKG
@typed/lenses
Version:
latest (4.1.1)
4.1.1
4.1.0
4.0.0
3.0.0
2.3.0
2.2.0
2.1.0
2.0.0
1.1.0
1.0.0
Strongly-typed functional lenses
@typed/lenses
/
esm
/
pipe2.js
5 lines
•
202 B
JavaScript
View Raw
1
2
3
4
5
import
{
Lens
}
from
'./Lens'
;
export
function
pipe2
(
ab, bc
) {
return
Lens
.
create
(
(
a
) =>
bc.
get
(ab.
get
(a)),
(
c, a
) =>
ab.
update
(
(
b
) =>
bc.
update
(
() =>
c, b), a)); }
//# sourceMappingURL=pipe2.js.map