tweak: Add TwoNumbersToNumber wrapper to function registry.
This commit is contained in:
parent
462f1c9649
commit
19ddd4eb3f
|
@ -20,6 +20,18 @@ module NumberToNumber = {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
module TwoNumbersToNumber = {
|
||||||
|
let make = (name, fn) =>
|
||||||
|
FnDefinition.make(
|
||||||
|
~name,
|
||||||
|
~inputs=[FRTypeNumber, FRTypeNumber],
|
||||||
|
~run=(_, inputs, _, _) => {
|
||||||
|
inputs->Prepare.ToValueTuple.twoNumbers->E.R2.fmap(fn)->E.R2.fmap(Wrappers.evNumber)
|
||||||
|
},
|
||||||
|
(),
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
module ArrayNumberDist = {
|
module ArrayNumberDist = {
|
||||||
let make = (name, fn) => {
|
let make = (name, fn) => {
|
||||||
FnDefinition.make(
|
FnDefinition.make(
|
||||||
|
|
Loading…
Reference in New Issue
Block a user