tweak: Add TwoNumbersToNumber wrapper to function registry.

This commit is contained in:
NunoSempere 2022-09-04 15:09:09 +02:00
parent 462f1c9649
commit 19ddd4eb3f

View File

@ -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(