import { curry } from "https://deno.land/x/curry@1.1.0/mod.ts";
Return curried function.
Examples
Example 1
Example 1
import { curry } from "https://deno.land/x/curry@$VERSION/mod.ts";
const replace = (from: string, to: string, val: string) => val.replace(from, to)
const curriedReplace = curry(replace)
curriedReplace('hello', 'hi', 'hello world') // 'hi world'
curriedReplace('hello')('hi', 'hello world') // 'hi world'
curriedReplace('hello')('hi')('hello world') // 'hi world'