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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@functionalscript/functionalscript",
3
- "version": "0.1.606",
3
+ "version": "0.1.607",
4
4
  "exports": {
5
5
  "./com/cpp": "./com/cpp/module.f.mjs",
6
6
  "./com/cs": "./com/cs/module.f.mjs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "functionalscript",
3
- "version": "0.1.606",
3
+ "version": "0.1.607",
4
4
  "type": "module",
5
5
  "description": "FunctionalScript is a functional subset of JavaScript",
6
6
  "main": "index.f.mjs",
@@ -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,