Sign in
chromium
/
devtools
/
devtools-frontend
/
refs/heads/main
/
.
/
node_modules
/
rambda
/
src
/
set.js
blob: 003caa0a69794f6772e398c08e708bcaf5f8b813 [
file
] [
log
] [
blame
] [
edit
]
import
{
always
}
from
'./always.js'
import
{
curry
}
from
'./curry.js'
import
{
over
}
from
'./over.js'
function
setFn
(
lens
,
replacer
,
x
){
return
over
(
lens
,
always
(
replacer
),
x
)
}
export
const
set
=
curry
(
setFn
)