functionalscript 0.1.606 → 0.1.607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/types/function/module.f.d.mts +0 -8
- package/types/function/module.f.mjs +0 -8
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -54,13 +54,5 @@ declare const flip: <A, B, C>(f: (a: A) => (b: B) => C) => (b: B) => (a: A) => C
|
|
|
54
54
|
* Creates an `Fn` instance from a function, enabling chaining of transformations.
|
|
55
55
|
*
|
|
56
56
|
* @type {<I, O>(f: (i: I) => O) => Fn<I, O>}
|
|
57
|
-
*
|
|
58
|
-
* @example
|
|
59
|
-
* const add2 = (x) => x + 2; // Adds 2
|
|
60
|
-
* const multiply3 = (x) => x * 3; // Multiplies by 3
|
|
61
|
-
*
|
|
62
|
-
* // Chain transformations
|
|
63
|
-
* const add2multiply3 = fn(add2).then(multiply3).result;
|
|
64
|
-
* const result = add2multiply3(5); // result is 21. (5 + 2) * 3.
|
|
65
57
|
*/
|
|
66
58
|
declare const fn: <I, O>(f: (i: I) => O) => Fn<I, O>;
|
|
@@ -43,14 +43,6 @@ const flip = f => b => a => f(a)(b)
|
|
|
43
43
|
* Creates an `Fn` instance from a function, enabling chaining of transformations.
|
|
44
44
|
*
|
|
45
45
|
* @type {<I, O>(f: (i: I) => O) => Fn<I, O>}
|
|
46
|
-
*
|
|
47
|
-
* @example
|
|
48
|
-
* const add2 = (x) => x + 2; // Adds 2
|
|
49
|
-
* const multiply3 = (x) => x * 3; // Multiplies by 3
|
|
50
|
-
*
|
|
51
|
-
* // Chain transformations
|
|
52
|
-
* const add2multiply3 = fn(add2).then(multiply3).result;
|
|
53
|
-
* const result = add2multiply3(5); // result is 21. (5 + 2) * 3.
|
|
54
46
|
*/
|
|
55
47
|
const fn = result => ({
|
|
56
48
|
result,
|