functionalscript 0.0.368 → 0.0.371

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.
Files changed (67) hide show
  1. package/com/cpp/{main.f.cjs → module.f.cjs} +2 -2
  2. package/com/cpp/test.f.cjs +1 -1
  3. package/com/cs/{main.f.cjs → module.f.cjs} +4 -4
  4. package/com/cs/test.f.cjs +4 -4
  5. package/com/{main.f.cjs → module.f.cjs} +1 -1
  6. package/com/types/{main.f.cjs → module.f.cjs} +0 -0
  7. package/commonjs/build/{main.f.cjs → module.f.cjs} +7 -7
  8. package/commonjs/build/test.f.cjs +6 -6
  9. package/commonjs/module/function/{main.f.cjs → module.f.cjs} +1 -1
  10. package/commonjs/module/{main.f.cjs → module.f.cjs} +2 -2
  11. package/commonjs/{main.f.cjs → module.f.cjs} +4 -4
  12. package/commonjs/package/dependencies/{main.f.cjs → module.f.cjs} +2 -2
  13. package/commonjs/package/dependencies/test.f.cjs +1 -1
  14. package/commonjs/package/{main.f.cjs → module.f.cjs} +2 -2
  15. package/commonjs/package/test.f.cjs +1 -1
  16. package/commonjs/path/{main.f.cjs → module.f.cjs} +3 -3
  17. package/commonjs/path/test.f.cjs +7 -7
  18. package/dev/{main.f.cjs → module.f.cjs} +0 -0
  19. package/html/{main.f.cjs → module.f.cjs} +3 -3
  20. package/html/test.f.cjs +1 -1
  21. package/io/commonjs/{main.cjs → module.cjs} +3 -3
  22. package/io/commonjs/test.cjs +2 -2
  23. package/io/result/{main.cjs → module.cjs} +1 -1
  24. package/json/{main.f.cjs → module.f.cjs} +5 -5
  25. package/json/test.f.cjs +3 -3
  26. package/json/tokenizer/{main.f.cjs → module.f.cjs} +3 -3
  27. package/json/tokenizer/test.f.cjs +4 -4
  28. package/module.f.cjs +14 -0
  29. package/package.json +2 -2
  30. package/sha2/{main.f.cjs → module.f.cjs} +1 -1
  31. package/sha2/test.f.cjs +4 -4
  32. package/test.f.cjs +1 -1
  33. package/text/encoding/{main.f.cjs → module.f.cjs} +2 -2
  34. package/text/encoding/test.f.cjs +4 -4
  35. package/text/{main.f.cjs → module.f.cjs} +1 -1
  36. package/text/test.f.cjs +2 -2
  37. package/types/array/{main.f.cjs → module.f.cjs} +1 -1
  38. package/types/array/test.f.cjs +3 -3
  39. package/types/btree/find/{main.f.cjs → module.f.cjs} +4 -4
  40. package/types/btree/find/test.f.cjs +7 -7
  41. package/types/btree/{main.f.cjs → module.f.cjs} +6 -6
  42. package/types/btree/remove/{main.f.cjs → module.f.cjs} +6 -6
  43. package/types/btree/remove/test.f.cjs +6 -6
  44. package/types/btree/set/{main.f.cjs → module.f.cjs} +4 -4
  45. package/types/btree/set/test.f.cjs +5 -5
  46. package/types/btree/test.f.cjs +8 -8
  47. package/types/btree/types/{main.f.cjs → module.f.cjs} +0 -0
  48. package/types/function/compare/{main.f.cjs → module.f.cjs} +1 -1
  49. package/types/function/compare/test.f.cjs +1 -1
  50. package/types/function/{main.f.cjs → module.f.cjs} +2 -2
  51. package/types/function/operator/{main.f.cjs → module.f.cjs} +0 -0
  52. package/types/list/{main.f.cjs → module.f.cjs} +2 -2
  53. package/types/list/test.f.cjs +12 -10
  54. package/types/map/{main.f.cjs → module.f.cjs} +9 -9
  55. package/types/map/test.f.cjs +3 -3
  56. package/types/module.f.cjs +20 -0
  57. package/types/object/{main.f.cjs → module.f.cjs} +2 -2
  58. package/types/object/test.f.cjs +1 -1
  59. package/types/option/{main.f.cjs → module.f.cjs} +0 -0
  60. package/types/option/test.f.cjs +1 -1
  61. package/types/range/{main.f.cjs → module.f.cjs} +0 -0
  62. package/types/range/test.f.cjs +1 -1
  63. package/types/result/{main.f.cjs → module.f.cjs} +0 -0
  64. package/types/stringset/{main.f.cjs → module.f.cjs} +5 -5
  65. package/types/stringset/test.f.cjs +1 -1
  66. package/main.f.cjs +0 -14
  67. package/types/main.f.cjs +0 -20
@@ -1,5 +1,5 @@
1
- const types = require('../types/main.f.cjs')
2
- const text = require('../../text/main.f.cjs')
1
+ const types = require('../types/module.f.cjs')
2
+ const text = require('../../text/module.f.cjs')
3
3
 
4
4
  /** @type {(name: string) => (library: types.Library) => text.Block} */
5
5
  const cpp = name => lib => []
@@ -1,3 +1,3 @@
1
- const _ = require('./main.f.cjs')
1
+ const _ = require('./module.f.cjs')
2
2
 
3
3
  module.exports = {}
@@ -1,7 +1,7 @@
1
- const types = require('../types/main.f.cjs')
2
- const text = require('../../text/main.f.cjs')
3
- const list = require('../../types/list/main.f.cjs')
4
- const obj = require('../../types/object/main.f.cjs')
1
+ const types = require('../types/module.f.cjs')
2
+ const text = require('../../text/module.f.cjs')
3
+ const list = require('../../types/list/module.f.cjs')
4
+ const obj = require('../../types/object/module.f.cjs')
5
5
 
6
6
  /** @type {(v: string) => string} */
7
7
  const using = v => `using ${v};`
package/com/cs/test.f.cjs CHANGED
@@ -1,7 +1,7 @@
1
- const types = require('../types/main.f.cjs')
2
- const _ = require('./main.f.cjs')
3
- const list = require('../../types/list/main.f.cjs')
4
- const text = require('../../text/main.f.cjs')
1
+ const types = require('../types/module.f.cjs')
2
+ const _ = require('./module.f.cjs')
3
+ const list = require('../../types/list/module.f.cjs')
4
+ const text = require('../../text/module.f.cjs')
5
5
 
6
6
  /** @type {types.Library} */
7
7
  const library = {
@@ -1,4 +1,4 @@
1
- const types = require('./types/main.f.cjs');
1
+ const types = require('./types/module.f.cjs');
2
2
 
3
3
  module.exports = {
4
4
  /** @readonly */
File without changes
@@ -1,10 +1,10 @@
1
- const package_ = require('../package/main.f.cjs')
2
- const module_ = require('../module/main.f.cjs')
3
- const function_ = require('../module/function/main.f.cjs')
4
- const map = require('../../types/map/main.f.cjs')
5
- const object = require('../../types/object/main.f.cjs')
6
- const path = require('../path/main.f.cjs')
7
- const stringSet = require('../../types/stringset/main.f.cjs')
1
+ const package_ = require('../package/module.f.cjs')
2
+ const module_ = require('../module/module.f.cjs')
3
+ const function_ = require('../module/function/module.f.cjs')
4
+ const map = require('../../types/map/module.f.cjs')
5
+ const object = require('../../types/object/module.f.cjs')
6
+ const path = require('../path/module.f.cjs')
7
+ const stringSet = require('../../types/stringset/module.f.cjs')
8
8
 
9
9
  /**
10
10
  * @template M
@@ -1,9 +1,9 @@
1
- const _ = require('./main.f.cjs')
2
- const map = require('../../types/map/main.f.cjs')
3
- const module_ = require('../module/main.f.cjs')
4
- const function_ = require('../module/function/main.f.cjs')
5
- const result = require('../../types/result/main.f.cjs')
6
- const package_ = require('../package/main.f.cjs')
1
+ const _ = require('./module.f.cjs')
2
+ const map = require('../../types/map/module.f.cjs')
3
+ const module_ = require('../module/module.f.cjs')
4
+ const function_ = require('../module/function/module.f.cjs')
5
+ const result = require('../../types/result/module.f.cjs')
6
+ const package_ = require('../package/module.f.cjs')
7
7
 
8
8
  /** @type {{ readonly [k in string]?: result.Result<function_.Function_, unknown> }} */
9
9
  const compileMap = {
@@ -2,7 +2,7 @@
2
2
  * An IO interface for creating and running module functions.
3
3
  */
4
4
 
5
- const result = require('../../../types/result/main.f.cjs')
5
+ const result = require('../../../types/result/module.f.cjs')
6
6
 
7
7
  /** @typedef {<M>(require: Require<M>) => (prior: M) => Result<M>} Function_ */
8
8
 
@@ -1,4 +1,4 @@
1
- const object = require('../../types/object/main.f.cjs')
1
+ const object = require('../../types/object/module.f.cjs')
2
2
 
3
3
  /**
4
4
  * @template M
@@ -53,7 +53,7 @@ const idToString = id => `${id.package}/${id.path.join('/')}`
53
53
 
54
54
  module.exports = {
55
55
  /** @readonly */
56
- function: require('./function/main.f.cjs'),
56
+ function: require('./function/module.f.cjs'),
57
57
  /** @readonly */
58
58
  dir,
59
59
  /** @readonly */
@@ -10,11 +10,11 @@
10
10
 
11
11
  module.exports = {
12
12
  /** @readonly */
13
- build: require('./build/main.f.cjs'),
13
+ build: require('./build/module.f.cjs'),
14
14
  /** @readonly */
15
- module: require('./module/main.f.cjs'),
15
+ module: require('./module/module.f.cjs'),
16
16
  /** @readonly */
17
- package: require('./package/main.f.cjs'),
17
+ package: require('./package/module.f.cjs'),
18
18
  /** @readonly */
19
- path: require('./path/main.f.cjs'),
19
+ path: require('./path/module.f.cjs'),
20
20
  }
@@ -1,5 +1,5 @@
1
- const json = require('../../../json/main.f.cjs')
2
- const list = require('../../../types/list/main.f.cjs')
1
+ const json = require('../../../json/module.f.cjs')
2
+ const list = require('../../../types/list/module.f.cjs')
3
3
 
4
4
  /** @typedef {readonly[string, string]} DependencyJson */
5
5
 
@@ -1,4 +1,4 @@
1
- const _ = require('./main.f.cjs')
1
+ const _ = require('./module.f.cjs')
2
2
 
3
3
  {
4
4
  if (!_.isDependenciesJson(undefined)) { throw 'error' }
@@ -1,5 +1,5 @@
1
- const json = require('../../json/main.f.cjs')
2
- const dependencies = require('./dependencies/main.f.cjs')
1
+ const json = require('../../json/module.f.cjs')
2
+ const dependencies = require('./dependencies/module.f.cjs')
3
3
 
4
4
  /**
5
5
  * @typedef {{
@@ -1,4 +1,4 @@
1
- const _ = require('./main.f.cjs')
1
+ const _ = require('./module.f.cjs')
2
2
 
3
3
  require('./dependencies/test.f.cjs')
4
4
 
@@ -1,6 +1,6 @@
1
- const list = require("../../types/list/main.f.cjs")
2
- const package_ = require("../package/main.f.cjs")
3
- const module_ = require("../module/main.f.cjs")
1
+ const list = require("../../types/list/module.f.cjs")
2
+ const package_ = require("../package/module.f.cjs")
3
+ const module_ = require("../module/module.f.cjs")
4
4
 
5
5
  /** @typedef {readonly string[]} Items */
6
6
 
@@ -1,10 +1,10 @@
1
- const _ = require('./main.f.cjs')
2
- const { todo } = require('../../dev/main.f.cjs')
3
- const json = require('../../json/main.f.cjs')
4
- const { identity } = require('../../types/function/main.f.cjs')
5
- const object = require('../../types/object/main.f.cjs')
6
- const { at } = require('../../types/object/main.f.cjs')
7
- const package_ = require('../package/main.f.cjs')
1
+ const _ = require('./module.f.cjs')
2
+ const { todo } = require('../../dev/module.f.cjs')
3
+ const json = require('../../json/module.f.cjs')
4
+ const { identity } = require('../../types/function/module.f.cjs')
5
+ const object = require('../../types/object/module.f.cjs')
6
+ const { at } = require('../../types/object/module.f.cjs')
7
+ const package_ = require('../package/module.f.cjs')
8
8
 
9
9
  /** @type {(g: json.Unknown|undefined) => string} */
10
10
  const stringify = g => {
File without changes
@@ -1,6 +1,6 @@
1
- const list = require('../types/list/main.f.cjs')
2
- const object = require('../types/object/main.f.cjs')
3
- const { operator, compose } = require('../types/function/main.f.cjs')
1
+ const list = require('../types/list/module.f.cjs')
2
+ const object = require('../types/object/module.f.cjs')
3
+ const { operator, compose } = require('../types/function/module.f.cjs')
4
4
 
5
5
  /**
6
6
  * @typedef {|
package/html/test.f.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const _ = require('./main.f.cjs')
1
+ const _ = require('./module.f.cjs')
2
2
 
3
3
  {
4
4
  const r = _.htmlToString(['html', []])
@@ -1,6 +1,6 @@
1
- const { tryCatch } = require('../result/main.cjs')
2
- const { unwrap } = require('../../types/result/main.f.cjs')
3
- const moduleFunction = require('../../commonjs/module/function/main.f.cjs')
1
+ const { tryCatch } = require('../result/module.cjs')
2
+ const { unwrap } = require('../../types/result/module.f.cjs')
3
+ const moduleFunction = require('../../commonjs/module/function/module.f.cjs')
4
4
 
5
5
  /** @type {(f: Function) => moduleFunction.Function_} */
6
6
  const build = f => immutableRequire => mutableData => {
@@ -1,5 +1,5 @@
1
- const _ = require('./main.cjs')
2
- const run = require('../../commonjs/module/function/main.f.cjs')
1
+ const _ = require('./module.cjs')
2
+ const run = require('../../commonjs/module/function/module.f.cjs')
3
3
 
4
4
  // ok:
5
5
  {
@@ -1,4 +1,4 @@
1
- const result = require('../../types/result/main.f.cjs')
1
+ const result = require('../../types/result/module.f.cjs')
2
2
 
3
3
  /** @type {<T>(f: () => T) => result.Result<T, unknown>} */
4
4
  const tryCatch = f => {
@@ -1,7 +1,7 @@
1
- const list = require('../types/list/main.f.cjs')
2
- const object = require('../types/object/main.f.cjs')
3
- const operator = require('../types/function/operator/main.f.cjs')
4
- const { compose } = require('../types/function/main.f.cjs')
1
+ const list = require('../types/list/module.f.cjs')
2
+ const object = require('../types/object/module.f.cjs')
3
+ const operator = require('../types/function/operator/module.f.cjs')
4
+ const { compose } = require('../types/function/module.f.cjs')
5
5
 
6
6
  /**
7
7
  * @typedef {{
@@ -111,7 +111,7 @@ const isObject = value => typeof value === 'object' && value !== null && !(value
111
111
 
112
112
  module.exports = {
113
113
  /** @readonly */
114
- tokenizer: require('./tokenizer/main.f.cjs'),
114
+ tokenizer: require('./tokenizer/module.f.cjs'),
115
115
  /** @readonly */
116
116
  setProperty,
117
117
  /** @readonly */
package/json/test.f.cjs CHANGED
@@ -1,6 +1,6 @@
1
- const json = require('./main.f.cjs')
2
- const { sort } = require('../types/object/main.f.cjs')
3
- const { identity } = require('../types/function/main.f.cjs')
1
+ const json = require('./module.f.cjs')
2
+ const { sort } = require('../types/object/module.f.cjs')
3
+ const { identity } = require('../types/function/module.f.cjs')
4
4
 
5
5
  if (json.setProperty("Hello")([])({}) !== "Hello") { throw 'error' }
6
6
 
@@ -1,6 +1,6 @@
1
- const operator = require('../../types/function/operator/main.f.cjs')
2
- const list = require('../../types/list/main.f.cjs')
3
- const range = require('../../types/range/main.f.cjs')
1
+ const operator = require('../../types/function/operator/module.f.cjs')
2
+ const list = require('../../types/list/module.f.cjs')
3
+ const range = require('../../types/range/module.f.cjs')
4
4
 
5
5
  /**
6
6
  * @typedef {{
@@ -1,7 +1,7 @@
1
- const tokenizer = require('./main.f.cjs')
2
- const list = require('../../types/list/main.f.cjs')
3
- const json = require('../main.f.cjs')
4
- const { sort } = require('../../types/object/main.f.cjs')
1
+ const tokenizer = require('./module.f.cjs')
2
+ const list = require('../../types/list/module.f.cjs')
3
+ const json = require('../module.f.cjs')
4
+ const { sort } = require('../../types/object/module.f.cjs')
5
5
 
6
6
  /** @type {(s: string) => readonly tokenizer.JsonToken[]} */
7
7
  const tokenizeString = s => list.toArray(tokenizer.tokenize(list.toCharCodeList(s)))
package/module.f.cjs ADDED
@@ -0,0 +1,14 @@
1
+ module.exports = {
2
+ /** @readonly */
3
+ commonjs: require('./commonjs/module.f.cjs'),
4
+ /** @readonly */
5
+ dev: require('./dev/module.f.cjs'),
6
+ /** @readonly */
7
+ html: require('./html/module.f.cjs'),
8
+ /** @readonly */
9
+ json: require('./json/module.f.cjs'),
10
+ /** @readonly */
11
+ sha2: require('./sha2/module.f.cjs'),
12
+ /** @readonly */
13
+ types: require('./types/module.f.cjs'),
14
+ }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "functionalscript",
3
- "version": "0.0.368",
3
+ "version": "0.0.371",
4
4
  "description": "FunctionalScript is a functional subset of JavaScript",
5
- "main": "main.f.cjs",
5
+ "main": "module.f.cjs",
6
6
  "scripts": {
7
7
  "tsc": "tsc",
8
8
  "test": "tsc && npm run test-only",
@@ -1,4 +1,4 @@
1
- const array = require('../types/array/main.f.cjs')
1
+ const array = require('../types/array/module.f.cjs')
2
2
 
3
3
  /**
4
4
  * @typedef {{
package/sha2/test.f.cjs CHANGED
@@ -1,7 +1,7 @@
1
- const _ = require('./main.f.cjs')
2
- const json = require('../json/main.f.cjs')
3
- const { sort } = require('../types/object/main.f.cjs')
4
- const list = require('../types/list/main.f.cjs')
1
+ const _ = require('./module.f.cjs')
2
+ const json = require('../json/module.f.cjs')
3
+ const { sort } = require('../types/object/module.f.cjs')
4
+ const list = require('../types/list/module.f.cjs')
5
5
 
6
6
  /** @type {(a: number) => number} */
7
7
  const toU32 = x => (x + 0x1_0000_0000) % 0x1_0000_0000
package/test.f.cjs CHANGED
@@ -1,4 +1,4 @@
1
- const i = require('./main.f.cjs')
1
+ const i = require('./module.f.cjs')
2
2
 
3
3
  require('./types/list/test.f.cjs')
4
4
  require('./types/array/test.f.cjs')
@@ -1,5 +1,5 @@
1
- const result = require('../../types/result/main.f.cjs')
2
- const list = require('../../types/list/main.f.cjs')
1
+ const result = require('../../types/result/module.f.cjs')
2
+ const list = require('../../types/list/module.f.cjs')
3
3
  const { ok, error } = result
4
4
 
5
5
  /** @typedef {result.Result<number,number>} Utf8Result */
@@ -1,7 +1,7 @@
1
- const encoding = require('./main.f.cjs')
2
- const json = require('../../json/main.f.cjs')
3
- const { sort } = require('../../types/object/main.f.cjs')
4
- const { list } = require('../../types/main.f.cjs')
1
+ const encoding = require('./module.f.cjs')
2
+ const json = require('../../json/module.f.cjs')
3
+ const { sort } = require('../../types/object/module.f.cjs')
4
+ const { list } = require('../../types/module.f.cjs')
5
5
 
6
6
  /** @type {(a: readonly json.Unknown[]) => string} */
7
7
  const stringify = a => json.stringify(sort)(a)
@@ -1,4 +1,4 @@
1
- const list = require('../types/list/main.f.cjs')
1
+ const list = require('../types/list/module.f.cjs')
2
2
 
3
3
  /** @typedef {ItemThunk|ItemArray} Block */
4
4
 
package/text/test.f.cjs CHANGED
@@ -1,5 +1,5 @@
1
- const _ = require('./main.f.cjs')
2
- const list = require('../types/list/main.f.cjs')
1
+ const _ = require('./module.f.cjs')
2
+ const list = require('../types/list/module.f.cjs')
3
3
 
4
4
  {
5
5
  /** @type {_.Block} */
@@ -1,4 +1,4 @@
1
- const option = require('../option/main.f.cjs')
1
+ const option = require('../option/module.f.cjs')
2
2
 
3
3
  /**
4
4
  * @template T
@@ -1,6 +1,6 @@
1
- const _ = require('./main.f.cjs')
2
- const json = require('../../json/main.f.cjs')
3
- const { sort } = require('../object/main.f.cjs')
1
+ const _ = require('./module.f.cjs')
2
+ const json = require('../../json/module.f.cjs')
3
+ const { sort } = require('../object/module.f.cjs')
4
4
 
5
5
  /** @type {(a: readonly json.Unknown[]) => string} */
6
6
  const stringify = a => json.stringify(sort)(a)
@@ -1,7 +1,7 @@
1
- const _ = require('../types/main.f.cjs')
2
- const list = require('../../list/main.f.cjs')
3
- const cmp = require('../../function/compare/main.f.cjs')
4
- const array = require('../../array/main.f.cjs')
1
+ const _ = require('../types/module.f.cjs')
2
+ const list = require('../../list/module.f.cjs')
3
+ const cmp = require('../../function/compare/module.f.cjs')
4
+ const array = require('../../array/module.f.cjs')
5
5
 
6
6
  /**
7
7
  * @template T
@@ -1,10 +1,10 @@
1
- const _ = require('./main.f.cjs')
2
- const list = require('../../list/main.f.cjs')
3
- const json = require('../../../json/main.f.cjs')
4
- const { sort } = require('../../object/main.f.cjs')
5
- const btree = require('../types/main.f.cjs')
6
- const { stringCmp } = require('../../function/compare/main.f.cjs')
7
- const s = require('../set/main.f.cjs')
1
+ const _ = require('./module.f.cjs')
2
+ const list = require('../../list/module.f.cjs')
3
+ const json = require('../../../json/module.f.cjs')
4
+ const { sort } = require('../../object/module.f.cjs')
5
+ const btree = require('../types/module.f.cjs')
6
+ const { stringCmp } = require('../../function/compare/module.f.cjs')
7
+ const s = require('../set/module.f.cjs')
8
8
 
9
9
  const jsonStr = json.stringify(sort)
10
10
 
@@ -1,6 +1,6 @@
1
- const list = require('../list/main.f.cjs')
2
- const option = require('../option/main.f.cjs')
3
- const _ = require('./types/main.f.cjs')
1
+ const list = require('../list/module.f.cjs')
2
+ const option = require('../option/module.f.cjs')
3
+ const _ = require('./types/module.f.cjs')
4
4
 
5
5
  /** @type {<T>(node: _.Node<T>) => list.Thunk<T>} */
6
6
  const nodeValues = node => () => {
@@ -30,11 +30,11 @@ const values = option.map(nodeValues)
30
30
 
31
31
  module.exports = {
32
32
  /** @readonly */
33
- find: require('./find/main.f.cjs'),
33
+ find: require('./find/module.f.cjs'),
34
34
  /** @readonly */
35
- remove: require('./remove/main.f.cjs'),
35
+ remove: require('./remove/module.f.cjs'),
36
36
  /** @readonly */
37
- set: require('./set/main.f.cjs'),
37
+ set: require('./set/module.f.cjs'),
38
38
  /** @readonly */
39
39
  values,
40
40
  }
@@ -1,9 +1,9 @@
1
- const _ = require('../types/main.f.cjs')
2
- const cmp = require('../../function/compare/main.f.cjs')
3
- const find = require('../find/main.f.cjs')
4
- const list = require('../../list/main.f.cjs')
5
- const array = require('../../array/main.f.cjs')
6
- const option = require('../../option/main.f.cjs')
1
+ const _ = require('../types/module.f.cjs')
2
+ const cmp = require('../../function/compare/module.f.cjs')
3
+ const find = require('../find/module.f.cjs')
4
+ const list = require('../../list/module.f.cjs')
5
+ const array = require('../../array/module.f.cjs')
6
+ const option = require('../../option/module.f.cjs')
7
7
 
8
8
  /**
9
9
  * @template T
@@ -1,9 +1,9 @@
1
- const _ = require('./main.f.cjs')
2
- const btree = require('../types/main.f.cjs')
3
- const s = require('../set/main.f.cjs')
4
- const { stringCmp } = require('../../function/compare/main.f.cjs')
5
- const json = require('../../../json/main.f.cjs')
6
- const { sort } = require('../../object/main.f.cjs')
1
+ const _ = require('./module.f.cjs')
2
+ const btree = require('../types/module.f.cjs')
3
+ const s = require('../set/module.f.cjs')
4
+ const { stringCmp } = require('../../function/compare/module.f.cjs')
5
+ const json = require('../../../json/module.f.cjs')
6
+ const { sort } = require('../../object/module.f.cjs')
7
7
 
8
8
  /** @type {(node: btree.Node<string>) => (value: string) => btree.Node<string>} */
9
9
  const set = node => value => s.set(stringCmp(value))(value)(node)
@@ -1,7 +1,7 @@
1
- const _ = require('../types/main.f.cjs')
2
- const find = require('../find/main.f.cjs')
3
- const cmp = require('../../function/compare/main.f.cjs')
4
- const list = require('../../list/main.f.cjs')
1
+ const _ = require('../types/module.f.cjs')
2
+ const find = require('../find/module.f.cjs')
3
+ const cmp = require('../../function/compare/module.f.cjs')
4
+ const list = require('../../list/module.f.cjs')
5
5
 
6
6
  /**
7
7
  * @template T
@@ -1,8 +1,8 @@
1
- const _ = require('./main.f.cjs')
2
- const btree = require('../types/main.f.cjs')
3
- const { stringCmp } = require('../../function/compare/main.f.cjs')
4
- const json = require('../../../json/main.f.cjs')
5
- const { sort } = require('../../object/main.f.cjs')
1
+ const _ = require('./module.f.cjs')
2
+ const btree = require('../types/module.f.cjs')
3
+ const { stringCmp } = require('../../function/compare/module.f.cjs')
4
+ const json = require('../../../json/module.f.cjs')
5
+ const { sort } = require('../../object/module.f.cjs')
6
6
 
7
7
  /** @type {(node: btree.Node<string>) => (value: string) => btree.Node<string>} */
8
8
  const set = node => value => _.set(stringCmp(value))(value)(node)
@@ -1,11 +1,11 @@
1
- const btree = require('./types/main.f.cjs')
2
- const { values } = require('./main.f.cjs')
3
- const json = require('../../json/main.f.cjs')
4
- const { sort } = require('../object/main.f.cjs')
5
- const { stringCmp } = require('../function/compare/main.f.cjs')
6
- const list = require('../list/main.f.cjs')
7
- const s = require('./set/main.f.cjs')
8
- const f = require('./find/main.f.cjs')
1
+ const btree = require('./types/module.f.cjs')
2
+ const { values } = require('./module.f.cjs')
3
+ const json = require('../../json/module.f.cjs')
4
+ const { sort } = require('../object/module.f.cjs')
5
+ const { stringCmp } = require('../function/compare/module.f.cjs')
6
+ const list = require('../list/module.f.cjs')
7
+ const s = require('./set/module.f.cjs')
8
+ const f = require('./find/module.f.cjs')
9
9
 
10
10
  require('./find/test.f.cjs')
11
11
  require('./set/test.f.cjs')
File without changes
@@ -1,4 +1,4 @@
1
- const array = require('../../array/main.f.cjs')
1
+ const array = require('../../array/module.f.cjs')
2
2
 
3
3
  /** @typedef {array.Index3} Index3 */
4
4
  /** @typedef {array.Index5} Index5 */
@@ -1,4 +1,4 @@
1
- const _ = require('./main.f.cjs')
1
+ const _ = require('./module.f.cjs')
2
2
 
3
3
  {
4
4
  const result = _.numberCmp(4)(5)
@@ -19,9 +19,9 @@ const flip = f => b => a => f(a)(b)
19
19
 
20
20
  module.exports = {
21
21
  /** @readonly */
22
- compare: require('./compare/main.f.cjs'),
22
+ compare: require('./compare/module.f.cjs'),
23
23
  /** @readonly */
24
- operator: require('./operator/main.f.cjs'),
24
+ operator: require('./operator/module.f.cjs'),
25
25
  /** @readonly */
26
26
  identity,
27
27
  /** @readonly */
@@ -1,5 +1,5 @@
1
- const { compose, identity } = require('../function/main.f.cjs')
2
- const operator = require('../function/operator/main.f.cjs')
1
+ const { compose, identity } = require('../function/module.f.cjs')
2
+ const operator = require('../function/operator/module.f.cjs')
3
3
  const { logicalNot, strictEqual, stateScanToScan, reduceToScan, foldToScan } = operator
4
4
 
5
5
  /**
@@ -1,7 +1,7 @@
1
- const _ = require('./main.f.cjs')
2
- const json = require('../../json/main.f.cjs')
3
- const { sort } = require('../object/main.f.cjs')
4
- const { addition, strictEqual, foldToScan } = require('../function/operator/main.f.cjs')
1
+ const _ = require('./module.f.cjs')
2
+ const json = require('../../json/module.f.cjs')
3
+ const { sort } = require('../object/module.f.cjs')
4
+ const { addition, strictEqual, foldToScan } = require('../function/operator/module.f.cjs')
5
5
 
6
6
  /** @type {(sequence: _.List<json.Unknown>) => string} */
7
7
  const stringify = sequence => json.stringify(sort)(_.toArray(sequence))
@@ -159,33 +159,35 @@ const stringify = sequence => json.stringify(sort)(_.toArray(sequence))
159
159
  if (result !== '[[0,"a"],[1,"b"]]') { throw result }
160
160
  }
161
161
 
162
+ const map5 = _.map(x => x > 5)
163
+
162
164
  {
163
- const result = _.some(_.map(x => x > 5)([0, 1, 7]))
165
+ const result = _.some(map5([0, 1, 7]))
164
166
  if (!result) { throw result }
165
167
  }
166
168
 
167
169
  {
168
- const result = _.some(_.map(x => x > 5)([0, 1, 4]))
170
+ const result = _.some(map5([0, 1, 4]))
169
171
  if (result) { throw result }
170
172
  }
171
173
 
172
174
  {
173
- const result = _.some(_.map(x => x > 5)([]))
175
+ const result = _.some(map5([]))
174
176
  if (result) { throw result }
175
177
  }
176
178
 
177
179
  {
178
- const result = _.every(_.map(x => x > 5)([0, 1, 7]))
180
+ const result = _.every(map5([0, 1, 7]))
179
181
  if (result) { throw result }
180
182
  }
181
183
 
182
184
  {
183
- const result = _.every(_.map(x => x > 5)([6, 11, 7]))
185
+ const result = _.every(map5([6, 11, 7]))
184
186
  if (!result) { throw result }
185
187
  }
186
188
 
187
189
  {
188
- const result = _.every(_.map(x => x > 5)([]))
190
+ const result = _.every(map5([]))
189
191
  if (!result) { throw result }
190
192
  }
191
193
 
@@ -1,12 +1,12 @@
1
- const btTypes = require('../btree/types/main.f.cjs')
2
- const btree = require('../btree/main.f.cjs')
3
- const { values } = require("../btree/main.f.cjs")
4
- const find = require('../btree/find/main.f.cjs')
5
- const s = require('../btree/set/main.f.cjs')
6
- const compare = require('../function/compare/main.f.cjs')
7
- const { stringCmp } = require('../function/compare/main.f.cjs')
8
- const list = require('../list/main.f.cjs')
9
- const btRemove = require('../btree/remove/main.f.cjs')
1
+ const btTypes = require('../btree/types/module.f.cjs')
2
+ const btree = require('../btree/module.f.cjs')
3
+ const { values } = require("../btree/module.f.cjs")
4
+ const find = require('../btree/find/module.f.cjs')
5
+ const s = require('../btree/set/module.f.cjs')
6
+ const compare = require('../function/compare/module.f.cjs')
7
+ const { stringCmp } = require('../function/compare/module.f.cjs')
8
+ const list = require('../list/module.f.cjs')
9
+ const btRemove = require('../btree/remove/module.f.cjs')
10
10
 
11
11
  /** @typedef {compare.Sign} Sign */
12
12
 
@@ -1,5 +1,5 @@
1
- const { at, set, empty, entries, remove } = require('./main.f.cjs')
2
- const seq = require('../list/main.f.cjs')
1
+ const { at, set, empty, entries, remove } = require('./module.f.cjs')
2
+ const seq = require('../list/module.f.cjs')
3
3
 
4
4
  {
5
5
  let m = set('a')(1)(undefined)
@@ -53,7 +53,7 @@ const seq = require('../list/main.f.cjs')
53
53
  }
54
54
 
55
55
  {
56
- /** @type {import('./main.f.cjs').Map<number>} */
56
+ /** @type {import('./module.f.cjs').Map<number>} */
57
57
  let m = empty
58
58
  for (let i = 0; i < 100_000; ++i) {
59
59
  m = set((i * i).toString())(i)(m)
@@ -0,0 +1,20 @@
1
+ module.exports = {
2
+ /** @readonly */
3
+ array: require('./array/module.f.cjs'),
4
+ /** @readonly */
5
+ btree: require('./btree/module.f.cjs'),
6
+ /** @readonly */
7
+ function: require('./function/module.f.cjs'),
8
+ /** @readonly */
9
+ list: require('./list/module.f.cjs'),
10
+ /** @readonly */
11
+ map: require('./map/module.f.cjs'),
12
+ /** @readonly */
13
+ object: require('./object/module.f.cjs'),
14
+ /** @readonly */
15
+ range: require('./range/module.f.cjs'),
16
+ /** @readonly */
17
+ result: require('./result/module.f.cjs'),
18
+ /** @readonly */
19
+ stringSet: require('./stringset/module.f.cjs'),
20
+ }
@@ -1,5 +1,5 @@
1
- const list = require('../list/main.f.cjs')
2
- const map = require('../map/main.f.cjs')
1
+ const list = require('../list/module.f.cjs')
2
+ const map = require('../map/module.f.cjs')
3
3
 
4
4
  /**
5
5
  * @template T
@@ -1,4 +1,4 @@
1
- const _ = require('./main.f.cjs')
1
+ const _ = require('./module.f.cjs')
2
2
 
3
3
  {
4
4
  const a = {}
File without changes
@@ -1,4 +1,4 @@
1
- const _ = require('./main.f.cjs')
1
+ const _ = require('./module.f.cjs')
2
2
 
3
3
  {
4
4
  const optionSq = _.map(v => v * v)
File without changes
@@ -1,4 +1,4 @@
1
- const _ = require('./main.f.cjs')
1
+ const _ = require('./module.f.cjs')
2
2
 
3
3
  {
4
4
  if (!_.contains([0, 5])(1)) { throw 1 }
File without changes
@@ -1,9 +1,9 @@
1
- const btTypes = require('../btree/types/main.f.cjs')
2
- const btree = require('../btree/main.f.cjs')
1
+ const btTypes = require('../btree/types/module.f.cjs')
2
+ const btree = require('../btree/module.f.cjs')
3
3
  const { find } = btree
4
- const { stringCmp } = require("../function/compare/main.f.cjs")
5
- const list = require('../list/main.f.cjs')
6
- const { compose } = require('../function/main.f.cjs')
4
+ const { stringCmp } = require("../function/compare/module.f.cjs")
5
+ const list = require('../list/module.f.cjs')
6
+ const { compose } = require('../function/module.f.cjs')
7
7
 
8
8
  /** @typedef {btTypes.Tree<string>} StringSet */
9
9
 
@@ -1,4 +1,4 @@
1
- const _ = require('./main.f.cjs')
1
+ const _ = require('./module.f.cjs')
2
2
 
3
3
  {
4
4
  const r = _.set('hello')(undefined)
package/main.f.cjs DELETED
@@ -1,14 +0,0 @@
1
- module.exports = {
2
- /** @readonly */
3
- commonjs: require('./commonjs/main.f.cjs'),
4
- /** @readonly */
5
- dev: require('./dev/main.f.cjs'),
6
- /** @readonly */
7
- html: require('./html/main.f.cjs'),
8
- /** @readonly */
9
- json: require('./json/main.f.cjs'),
10
- /** @readonly */
11
- sha2: require('./sha2/main.f.cjs'),
12
- /** @readonly */
13
- types: require('./types/main.f.cjs'),
14
- }
package/types/main.f.cjs DELETED
@@ -1,20 +0,0 @@
1
- module.exports = {
2
- /** @readonly */
3
- array: require('./array/main.f.cjs'),
4
- /** @readonly */
5
- btree: require('./btree/main.f.cjs'),
6
- /** @readonly */
7
- function: require('./function/main.f.cjs'),
8
- /** @readonly */
9
- list: require('./list/main.f.cjs'),
10
- /** @readonly */
11
- map: require('./map/main.f.cjs'),
12
- /** @readonly */
13
- object: require('./object/main.f.cjs'),
14
- /** @readonly */
15
- range: require('./range/main.f.cjs'),
16
- /** @readonly */
17
- result: require('./result/main.f.cjs'),
18
- /** @readonly */
19
- stringSet: require('./stringset/main.f.cjs'),
20
- }