@thi.ng/pointfree 3.1.67 → 3.1.69

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-02-19T16:07:07Z
3
+ - **Last updated**: 2024-02-25T14:07:53Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/README.md CHANGED
@@ -18,7 +18,7 @@
18
18
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
19
19
 
20
20
  > [!NOTE]
21
- > This is one of 189 standalone projects, maintained as part
21
+ > This is one of 190 standalone projects, maintained as part
22
22
  > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
23
23
  > and anti-framework.
24
24
  >
package/array.d.ts CHANGED
@@ -137,6 +137,8 @@ export declare const catr: (ctx: StackContext) => StackContext;
137
137
  *
138
138
  * @example
139
139
  * ```ts
140
+ * import { runU, mapll, mul } from "@thi.ng/pointfree";
141
+ *
140
142
  * runU([[1, 2, 3, 4], [10, mul], mapll])
141
143
  * // [ 10, 20, 30, 40]
142
144
  * ```
@@ -147,6 +149,8 @@ export declare const catr: (ctx: StackContext) => StackContext;
147
149
  *
148
150
  * @example
149
151
  * ```ts
152
+ * import { list, mapl, mul, pushr, runU } from "@thi.ng/pointfree";
153
+ *
150
154
  * runU([list, [1, 2, 3, 4], [10, mul, pushr], mapl])
151
155
  * // [ 10, 20, 30, 40 ]
152
156
  * ```
@@ -155,6 +159,8 @@ export declare const catr: (ctx: StackContext) => StackContext;
155
159
  *
156
160
  * @example
157
161
  * ```ts
162
+ * import { collect, mapl, mul, runU } from "@thi.ng/pointfree";
163
+ *
158
164
  * runU([[1, 2, 3, 4], [10, mul], mapl, 4, collect])
159
165
  * // [ 10, 20, 30, 40 ]
160
166
  * ```
@@ -169,6 +175,8 @@ export declare const mapl: (ctx: StackContext) => StackContext;
169
175
  *
170
176
  * @example
171
177
  * ```ts
178
+ * import { mapll, mul, runU } from "@thi.ng/pointfree";
179
+ *
172
180
  * runU([[1, 2, 3, 4], [10, mul], mapll])
173
181
  * // [ 10, 20, 30, 40]
174
182
  * ```
@@ -260,6 +268,8 @@ export declare const setat: (ctx: StackContext) => StackContext;
260
268
  *
261
269
  * @example
262
270
  * ```ts
271
+ * import { bindkeys, runU } from "@thi.ng/pointfree";
272
+ *
263
273
  * runU([1,2,3, ["a","b","c"], {}, bindkeys])
264
274
  * // { c: 3, b: 2, a: 1 }
265
275
  * ```
package/loop.d.ts CHANGED
@@ -7,6 +7,8 @@ import type { StackContext, StackProc } from "./api.js";
7
7
  *
8
8
  * @example
9
9
  * ```ts
10
+ * import { dec, dup, ispos, print, runU } from "@thi.ng/pointfree";
11
+ *
10
12
  * run([loop([dup, ispos], [dup, print, dec])], [[3]])
11
13
  * // 3
12
14
  * // 2
@@ -32,7 +34,9 @@ export declare const loopq: (ctx: StackContext) => StackContext;
32
34
  *
33
35
  * @example
34
36
  * ```ts
35
- * pf.run([3, ["i=", pf.swap, pf.add, pf.print], pf.dotimes])
37
+ * import { add, print, swap, runU } from "@thi.ng/pointfree";
38
+ *
39
+ * run([3, ["i=", swap, add, print], dotimes])
36
40
  * // i=0
37
41
  * // i=1
38
42
  * // i=2
@@ -40,13 +44,15 @@ export declare const loopq: (ctx: StackContext) => StackContext;
40
44
  *
41
45
  * With empty body acts as finite range generator 0 .. n:
42
46
  *
43
- * ```
47
+ * ```ts
48
+ * import { collect, cpdr, dotimes, movrd, runU } from "@thi.ng/pointfree";
49
+ *
44
50
  * // range gen
45
- * pf.run([3, [], pf.dotimes])
51
+ * run([3, [], dotimes])
46
52
  * [ [ 0, 1, 2 ], [], {} ]
47
53
  *
48
54
  * // range gen (collect results as array)
49
- * pf.runU([3, pf.cpdr, [], pf.dotimes, pf.movrd, pf.collect])
55
+ * runU([3, cpdr, [], dotimes, movrd, collect])
50
56
  * // [ 0, 1, 2 ]
51
57
  * ```
52
58
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/pointfree",
3
- "version": "3.1.67",
3
+ "version": "3.1.69",
4
4
  "description": "Pointfree functional composition / Forth style stack execution engine",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -35,11 +35,11 @@
35
35
  "test": "bun test"
36
36
  },
37
37
  "dependencies": {
38
- "@thi.ng/api": "^8.9.24",
39
- "@thi.ng/checks": "^3.4.24",
40
- "@thi.ng/compose": "^2.1.63",
41
- "@thi.ng/equiv": "^2.1.48",
42
- "@thi.ng/errors": "^2.4.17"
38
+ "@thi.ng/api": "^8.9.26",
39
+ "@thi.ng/checks": "^3.5.0",
40
+ "@thi.ng/compose": "^2.1.65",
41
+ "@thi.ng/equiv": "^2.1.49",
42
+ "@thi.ng/errors": "^2.4.18"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@microsoft/api-extractor": "^7.40.1",
@@ -132,5 +132,5 @@
132
132
  "thi.ng": {
133
133
  "year": 2015
134
134
  },
135
- "gitHead": "2724c87ca41810f2112f9d8c3d6b90dfaeea876b\n"
135
+ "gitHead": "6e20f80dd9df1c8055ffa3c1e4d6f7598add0c0b\n"
136
136
  }