compostjs 0.0.8 → 0.0.12
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/README.md +4 -4
- package/dist/fable_modules/fable-library-js.4.28.0/Array.d.ts +123 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Array.js +1242 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Async.d.ts +26 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Async.js +145 -0
- package/dist/fable_modules/fable-library-js.4.28.0/AsyncBuilder.d.ts +59 -0
- package/dist/fable_modules/fable-library-js.4.28.0/AsyncBuilder.js +183 -0
- package/dist/fable_modules/fable-library-js.4.28.0/BigInt.d.ts +115 -0
- package/dist/fable_modules/fable-library-js.4.28.0/BigInt.js +283 -0
- package/dist/fable_modules/fable-library-js.4.28.0/BitConverter.d.ts +27 -0
- package/dist/fable_modules/fable-library-js.4.28.0/BitConverter.js +138 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Boolean.d.ts +3 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Boolean.js +21 -0
- package/dist/fable_modules/fable-library-js.4.28.0/CHANGELOG.md +100 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Char.d.ts +65 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Char.js +169 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Choice.d.ts +121 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Choice.js +184 -0
- package/dist/fable_modules/fable-library-js.4.28.0/CollectionUtil.d.ts +7 -0
- package/dist/fable_modules/fable-library-js.4.28.0/CollectionUtil.js +182 -0
- package/dist/fable_modules/fable-library-js.4.28.0/ConditionalWeakTable.d.ts +9 -0
- package/dist/fable_modules/fable-library-js.4.28.0/ConditionalWeakTable.js +21 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Date.d.ts +70 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Date.js +748 -0
- package/dist/fable_modules/fable-library-js.4.28.0/DateOffset.d.ts +63 -0
- package/dist/fable_modules/fable-library-js.4.28.0/DateOffset.js +268 -0
- package/dist/fable_modules/fable-library-js.4.28.0/DateOnly.d.ts +18 -0
- package/dist/fable_modules/fable-library-js.4.28.0/DateOnly.js +124 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Decimal.d.ts +45 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Decimal.js +212 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Double.d.ts +11 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Double.js +46 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Encoding.d.ts +12 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Encoding.js +173 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Event.d.ts +31 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Event.js +93 -0
- package/dist/fable_modules/fable-library-js.4.28.0/FSharp.Collections.d.ts +7 -0
- package/dist/fable_modules/fable-library-js.4.28.0/FSharp.Collections.js +27 -0
- package/dist/fable_modules/fable-library-js.4.28.0/FSharp.Core.CompilerServices.d.ts +12 -0
- package/dist/fable_modules/fable-library-js.4.28.0/FSharp.Core.CompilerServices.js +27 -0
- package/dist/fable_modules/fable-library-js.4.28.0/FSharp.Core.d.ts +17 -0
- package/dist/fable_modules/fable-library-js.4.28.0/FSharp.Core.js +69 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Global.d.ts +24 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Global.js +8 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Guid.d.ts +10 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Guid.js +142 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Int32.d.ts +28 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Int32.js +135 -0
- package/dist/fable_modules/fable-library-js.4.28.0/List.d.ts +143 -0
- package/dist/fable_modules/fable-library-js.4.28.0/List.js +1273 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Long.d.ts +3 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Long.js +46 -0
- package/dist/fable_modules/fable-library-js.4.28.0/MailboxProcessor.d.ts +25 -0
- package/dist/fable_modules/fable-library-js.4.28.0/MailboxProcessor.js +93 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Map.d.ts +178 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Map.js +1396 -0
- package/dist/fable_modules/fable-library-js.4.28.0/MapUtil.d.ts +12 -0
- package/dist/fable_modules/fable-library-js.4.28.0/MapUtil.js +127 -0
- package/dist/fable_modules/fable-library-js.4.28.0/MutableMap.d.ts +52 -0
- package/dist/fable_modules/fable-library-js.4.28.0/MutableMap.js +327 -0
- package/dist/fable_modules/fable-library-js.4.28.0/MutableSet.d.ts +39 -0
- package/dist/fable_modules/fable-library-js.4.28.0/MutableSet.js +233 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Native.d.ts +2 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Native.js +8 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Numeric.d.ts +19 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Numeric.js +71 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Observable.d.ts +32 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Observable.js +113 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Option.d.ts +28 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Option.js +96 -0
- package/dist/fable_modules/fable-library-js.4.28.0/README.md +3 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Random.d.ts +37 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Random.js +170 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Range.d.ts +12 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Range.js +45 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Reflection.d.ts +119 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Reflection.js +461 -0
- package/dist/fable_modules/fable-library-js.4.28.0/RegExp.d.ts +10 -0
- package/dist/fable_modules/fable-library-js.4.28.0/RegExp.js +131 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Result.d.ts +37 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Result.js +165 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Seq.d.ts +165 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Seq.js +1378 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Seq2.d.ts +18 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Seq2.js +111 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Set.d.ts +190 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Set.js +1789 -0
- package/dist/fable_modules/fable-library-js.4.28.0/String.d.ts +58 -0
- package/dist/fable_modules/fable-library-js.4.28.0/String.js +554 -0
- package/dist/fable_modules/fable-library-js.4.28.0/System.Collections.Generic.d.ts +79 -0
- package/dist/fable_modules/fable-library-js.4.28.0/System.Collections.Generic.js +317 -0
- package/dist/fable_modules/fable-library-js.4.28.0/System.Text.d.ts +38 -0
- package/dist/fable_modules/fable-library-js.4.28.0/System.Text.js +162 -0
- package/dist/fable_modules/fable-library-js.4.28.0/SystemException.d.ts +5 -0
- package/dist/fable_modules/fable-library-js.4.28.0/SystemException.js +5 -0
- package/dist/fable_modules/fable-library-js.4.28.0/TimeOnly.d.ts +15 -0
- package/dist/fable_modules/fable-library-js.4.28.0/TimeOnly.js +122 -0
- package/dist/fable_modules/fable-library-js.4.28.0/TimeSpan.d.ts +34 -0
- package/dist/fable_modules/fable-library-js.4.28.0/TimeSpan.js +177 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Timer.d.ts +19 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Timer.js +67 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Types.d.ts +58 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Types.js +208 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Unicode.13.0.0.d.ts +2 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Unicode.13.0.0.js +4 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Uri.d.ts +31 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Uri.js +159 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Util.d.ts +210 -0
- package/dist/fable_modules/fable-library-js.4.28.0/Util.js +769 -0
- package/dist/fable_modules/fable-library-js.4.28.0/big.d.ts +338 -0
- package/dist/fable_modules/fable-library-js.4.28.0/lib/big.d.ts +5 -0
- package/dist/fable_modules/fable-library-js.4.28.0/lib/big.js +825 -0
- package/dist/fable_modules/fable-library-js.4.28.0/package.json +24 -0
- package/dist/fable_modules/project_cracked.json +1 -0
- package/package.json +6 -5
- package/.claude/settings.local.json +0 -11
- package/dist/fable-library.2.10.1/Array.js +0 -1336
- package/dist/fable-library.2.10.1/Async.js +0 -121
- package/dist/fable-library.2.10.1/AsyncBuilder.js +0 -200
- package/dist/fable-library.2.10.1/Date.js +0 -501
- package/dist/fable-library.2.10.1/Decimal.js +0 -208
- package/dist/fable-library.2.10.1/Event.js +0 -193
- package/dist/fable-library.2.10.1/Int32.js +0 -157
- package/dist/fable-library.2.10.1/List.js +0 -1234
- package/dist/fable-library.2.10.1/Long.js +0 -155
- package/dist/fable-library.2.10.1/Map.js +0 -1292
- package/dist/fable-library.2.10.1/MutableMap.js +0 -360
- package/dist/fable-library.2.10.1/MutableSet.js +0 -279
- package/dist/fable-library.2.10.1/Observable.js +0 -131
- package/dist/fable-library.2.10.1/Option.js +0 -118
- package/dist/fable-library.2.10.1/Reflection.js +0 -345
- package/dist/fable-library.2.10.1/RegExp.js +0 -118
- package/dist/fable-library.2.10.1/Seq.js +0 -917
- package/dist/fable-library.2.10.1/Set.js +0 -1692
- package/dist/fable-library.2.10.1/String.js +0 -679
- package/dist/fable-library.2.10.1/Types.js +0 -308
- package/dist/fable-library.2.10.1/Util.js +0 -761
- package/dist/helpers.js +0 -31
- package/dist/lib/big.js +0 -905
- package/dist/lib/long.js +0 -1375
- package/index.html +0 -49
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IEqualityComparer } from "./Util.js";
|
|
2
|
+
import { int32 } from "./Int32.js";
|
|
3
|
+
import { FSharpList } from "./List.js";
|
|
4
|
+
export declare function distinct<T>(xs: Iterable<T>, comparer: IEqualityComparer<T>): Iterable<T>;
|
|
5
|
+
export declare function distinctBy<T, Key>(projection: ((arg0: T) => Key), xs: Iterable<T>, comparer: IEqualityComparer<Key>): Iterable<T>;
|
|
6
|
+
export declare function except<T>(itemsToExclude: Iterable<T>, xs: Iterable<T>, comparer: IEqualityComparer<T>): Iterable<T>;
|
|
7
|
+
export declare function countBy<T, Key>(projection: ((arg0: T) => Key), xs: Iterable<T>, comparer: IEqualityComparer<Key>): Iterable<[Key, int32]>;
|
|
8
|
+
export declare function groupBy<T, Key>(projection: ((arg0: T) => Key), xs: Iterable<T>, comparer: IEqualityComparer<Key>): Iterable<[Key, Iterable<T>]>;
|
|
9
|
+
export declare function Array_distinct<T>(xs: T[], comparer: IEqualityComparer<T>): T[];
|
|
10
|
+
export declare function Array_distinctBy<T, Key>(projection: ((arg0: T) => Key), xs: T[], comparer: IEqualityComparer<Key>): T[];
|
|
11
|
+
export declare function Array_except<T>(itemsToExclude: Iterable<T>, xs: T[], comparer: IEqualityComparer<T>): T[];
|
|
12
|
+
export declare function Array_countBy<T, Key>(projection: ((arg0: T) => Key), xs: T[], comparer: IEqualityComparer<Key>): [Key, int32][];
|
|
13
|
+
export declare function Array_groupBy<T, Key>(projection: ((arg0: T) => Key), xs: T[], comparer: IEqualityComparer<Key>): [Key, T[]][];
|
|
14
|
+
export declare function List_distinct<T>(xs: FSharpList<T>, comparer: IEqualityComparer<T>): FSharpList<T>;
|
|
15
|
+
export declare function List_distinctBy<T, Key>(projection: ((arg0: T) => Key), xs: FSharpList<T>, comparer: IEqualityComparer<Key>): FSharpList<T>;
|
|
16
|
+
export declare function List_except<T>(itemsToExclude: Iterable<T>, xs: FSharpList<T>, comparer: IEqualityComparer<T>): FSharpList<T>;
|
|
17
|
+
export declare function List_countBy<T, Key>(projection: ((arg0: T) => Key), xs: FSharpList<T>, comparer: IEqualityComparer<Key>): FSharpList<[Key, int32]>;
|
|
18
|
+
export declare function List_groupBy<T, Key>(projection: ((arg0: T) => Key), xs: FSharpList<T>, comparer: IEqualityComparer<Key>): FSharpList<[Key, FSharpList<T>]>;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { toList, toArray, map, filter, delay } from "./Seq.js";
|
|
2
|
+
import { HashSet } from "./MutableSet.js";
|
|
3
|
+
import { defaultOf, disposeSafe, getEnumerator } from "./Util.js";
|
|
4
|
+
import { addToDict, getItemFromDict, tryGetValue, addToSet } from "./MapUtil.js";
|
|
5
|
+
import { Dictionary } from "./MutableMap.js";
|
|
6
|
+
import { FSharpRef } from "./Types.js";
|
|
7
|
+
export function distinct(xs, comparer) {
|
|
8
|
+
return delay(() => {
|
|
9
|
+
const hashSet = new HashSet([], comparer);
|
|
10
|
+
return filter((x) => addToSet(x, hashSet), xs);
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
export function distinctBy(projection, xs, comparer) {
|
|
14
|
+
return delay(() => {
|
|
15
|
+
const hashSet = new HashSet([], comparer);
|
|
16
|
+
return filter((x) => addToSet(projection(x), hashSet), xs);
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
export function except(itemsToExclude, xs, comparer) {
|
|
20
|
+
return delay(() => {
|
|
21
|
+
const hashSet = new HashSet(itemsToExclude, comparer);
|
|
22
|
+
return filter((x) => addToSet(x, hashSet), xs);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
export function countBy(projection, xs, comparer) {
|
|
26
|
+
return delay(() => {
|
|
27
|
+
const dict = new Dictionary([], comparer);
|
|
28
|
+
const keys = [];
|
|
29
|
+
const enumerator = getEnumerator(xs);
|
|
30
|
+
try {
|
|
31
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
32
|
+
const key = projection(enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]());
|
|
33
|
+
let matchValue;
|
|
34
|
+
let outArg = 0;
|
|
35
|
+
matchValue = [tryGetValue(dict, key, new FSharpRef(() => outArg, (v) => {
|
|
36
|
+
outArg = (v | 0);
|
|
37
|
+
})), outArg];
|
|
38
|
+
if (matchValue[0]) {
|
|
39
|
+
dict.set(key, matchValue[1] + 1);
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
dict.set(key, 1);
|
|
43
|
+
void (keys.push(key));
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
finally {
|
|
48
|
+
disposeSafe(enumerator);
|
|
49
|
+
}
|
|
50
|
+
return map((key_1) => [key_1, getItemFromDict(dict, key_1)], keys);
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
export function groupBy(projection, xs, comparer) {
|
|
54
|
+
return delay(() => {
|
|
55
|
+
const dict = new Dictionary([], comparer);
|
|
56
|
+
const keys = [];
|
|
57
|
+
const enumerator = getEnumerator(xs);
|
|
58
|
+
try {
|
|
59
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
60
|
+
const x = enumerator["System.Collections.Generic.IEnumerator`1.get_Current"]();
|
|
61
|
+
const key = projection(x);
|
|
62
|
+
let matchValue;
|
|
63
|
+
let outArg = defaultOf();
|
|
64
|
+
matchValue = [tryGetValue(dict, key, new FSharpRef(() => outArg, (v) => {
|
|
65
|
+
outArg = v;
|
|
66
|
+
})), outArg];
|
|
67
|
+
if (matchValue[0]) {
|
|
68
|
+
void (matchValue[1].push(x));
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
addToDict(dict, key, [x]);
|
|
72
|
+
void (keys.push(key));
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
finally {
|
|
77
|
+
disposeSafe(enumerator);
|
|
78
|
+
}
|
|
79
|
+
return map((key_1) => [key_1, getItemFromDict(dict, key_1)], keys);
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
export function Array_distinct(xs, comparer) {
|
|
83
|
+
return toArray(distinct(xs, comparer));
|
|
84
|
+
}
|
|
85
|
+
export function Array_distinctBy(projection, xs, comparer) {
|
|
86
|
+
return toArray(distinctBy(projection, xs, comparer));
|
|
87
|
+
}
|
|
88
|
+
export function Array_except(itemsToExclude, xs, comparer) {
|
|
89
|
+
return toArray(except(itemsToExclude, xs, comparer));
|
|
90
|
+
}
|
|
91
|
+
export function Array_countBy(projection, xs, comparer) {
|
|
92
|
+
return toArray(countBy(projection, xs, comparer));
|
|
93
|
+
}
|
|
94
|
+
export function Array_groupBy(projection, xs, comparer) {
|
|
95
|
+
return toArray(map((tupledArg) => [tupledArg[0], toArray(tupledArg[1])], groupBy(projection, xs, comparer)));
|
|
96
|
+
}
|
|
97
|
+
export function List_distinct(xs, comparer) {
|
|
98
|
+
return toList(distinct(xs, comparer));
|
|
99
|
+
}
|
|
100
|
+
export function List_distinctBy(projection, xs, comparer) {
|
|
101
|
+
return toList(distinctBy(projection, xs, comparer));
|
|
102
|
+
}
|
|
103
|
+
export function List_except(itemsToExclude, xs, comparer) {
|
|
104
|
+
return toList(except(itemsToExclude, xs, comparer));
|
|
105
|
+
}
|
|
106
|
+
export function List_countBy(projection, xs, comparer) {
|
|
107
|
+
return toList(countBy(projection, xs, comparer));
|
|
108
|
+
}
|
|
109
|
+
export function List_groupBy(projection, xs, comparer) {
|
|
110
|
+
return toList(map((tupledArg) => [tupledArg[0], toList(tupledArg[1])], groupBy(projection, xs, comparer)));
|
|
111
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { TypeInfo } from "./Reflection.js";
|
|
2
|
+
import { Option } from "./Option.js";
|
|
3
|
+
import { int32 } from "./Int32.js";
|
|
4
|
+
import { ISet, IEnumerator, IComparer } from "./Util.js";
|
|
5
|
+
import { Record } from "./Types.js";
|
|
6
|
+
import { FSharpList } from "./List.js";
|
|
7
|
+
export declare class SetTreeLeaf$1<T> {
|
|
8
|
+
readonly k: T;
|
|
9
|
+
constructor(k: T);
|
|
10
|
+
}
|
|
11
|
+
export declare function SetTreeLeaf$1_$reflection(gen0: TypeInfo): TypeInfo;
|
|
12
|
+
export declare function SetTreeLeaf$1_$ctor_2B595<T>(k: T): SetTreeLeaf$1<T>;
|
|
13
|
+
export declare function SetTreeLeaf$1__get_Key<T>(_: SetTreeLeaf$1<T>): T;
|
|
14
|
+
export declare class SetTreeNode$1<T> extends SetTreeLeaf$1<T> {
|
|
15
|
+
readonly right: Option<SetTreeLeaf$1<T>>;
|
|
16
|
+
readonly left: Option<SetTreeLeaf$1<T>>;
|
|
17
|
+
readonly h: int32;
|
|
18
|
+
constructor(v: T, left: Option<SetTreeLeaf$1<T>>, right: Option<SetTreeLeaf$1<T>>, h: int32);
|
|
19
|
+
}
|
|
20
|
+
export declare function SetTreeNode$1_$reflection(gen0: TypeInfo): TypeInfo;
|
|
21
|
+
export declare function SetTreeNode$1_$ctor_5F465FC9<T>(v: T, left: Option<SetTreeLeaf$1<T>>, right: Option<SetTreeLeaf$1<T>>, h: int32): SetTreeNode$1<T>;
|
|
22
|
+
export declare function SetTreeNode$1__get_Left<T>(_: SetTreeNode$1<T>): Option<SetTreeLeaf$1<T>>;
|
|
23
|
+
export declare function SetTreeNode$1__get_Right<T>(_: SetTreeNode$1<T>): Option<SetTreeLeaf$1<T>>;
|
|
24
|
+
export declare function SetTreeNode$1__get_Height<T>(_: SetTreeNode$1<T>): int32;
|
|
25
|
+
export declare function SetTreeModule_empty<T>(): Option<SetTreeLeaf$1<T>>;
|
|
26
|
+
export declare function SetTreeModule_countAux<T>(t_mut: Option<SetTreeLeaf$1<T>>, acc_mut: int32): int32;
|
|
27
|
+
export declare function SetTreeModule_count<$a>(s: Option<SetTreeLeaf$1<$a>>): int32;
|
|
28
|
+
export declare function SetTreeModule_mk<T>(l: Option<SetTreeLeaf$1<T>>, k: T, r: Option<SetTreeLeaf$1<T>>): Option<SetTreeLeaf$1<T>>;
|
|
29
|
+
export declare function SetTreeModule_rebalance<T>(t1: Option<SetTreeLeaf$1<T>>, v: T, t2: Option<SetTreeLeaf$1<T>>): Option<SetTreeLeaf$1<T>>;
|
|
30
|
+
export declare function SetTreeModule_add<T>(comparer: IComparer<T>, k: T, t: Option<SetTreeLeaf$1<T>>): Option<SetTreeLeaf$1<T>>;
|
|
31
|
+
export declare function SetTreeModule_balance<T>(comparer: IComparer<T>, t1: Option<SetTreeLeaf$1<T>>, k: T, t2: Option<SetTreeLeaf$1<T>>): Option<SetTreeLeaf$1<T>>;
|
|
32
|
+
export declare function SetTreeModule_split<T>(comparer: IComparer<T>, pivot: T, t: Option<SetTreeLeaf$1<T>>): [Option<SetTreeLeaf$1<T>>, boolean, Option<SetTreeLeaf$1<T>>];
|
|
33
|
+
export declare function SetTreeModule_spliceOutSuccessor<T>(t: Option<SetTreeLeaf$1<T>>): [T, Option<SetTreeLeaf$1<T>>];
|
|
34
|
+
export declare function SetTreeModule_remove<T>(comparer: IComparer<T>, k: T, t: Option<SetTreeLeaf$1<T>>): Option<SetTreeLeaf$1<T>>;
|
|
35
|
+
export declare function SetTreeModule_mem<T>(comparer_mut: IComparer<T>, k_mut: T, t_mut: Option<SetTreeLeaf$1<T>>): boolean;
|
|
36
|
+
export declare function SetTreeModule_iter<T>(f_mut: ((arg0: T) => void), t_mut: Option<SetTreeLeaf$1<T>>): void;
|
|
37
|
+
export declare function SetTreeModule_foldBackOpt<T, $a>(f_mut: any, t_mut: Option<SetTreeLeaf$1<T>>, x_mut: $a): $a;
|
|
38
|
+
export declare function SetTreeModule_foldBack<$a, $b>(f: ((arg0: $a, arg1: $b) => $b), m: Option<SetTreeLeaf$1<$a>>, x: $b): $b;
|
|
39
|
+
export declare function SetTreeModule_foldOpt<$a, T>(f_mut: any, x_mut: $a, t_mut: Option<SetTreeLeaf$1<T>>): $a;
|
|
40
|
+
export declare function SetTreeModule_fold<$a, $b>(f: ((arg0: $a, arg1: $b) => $a), x: $a, m: Option<SetTreeLeaf$1<$b>>): $a;
|
|
41
|
+
export declare function SetTreeModule_forall<T>(f_mut: ((arg0: T) => boolean), t_mut: Option<SetTreeLeaf$1<T>>): boolean;
|
|
42
|
+
export declare function SetTreeModule_exists<T>(f_mut: ((arg0: T) => boolean), t_mut: Option<SetTreeLeaf$1<T>>): boolean;
|
|
43
|
+
export declare function SetTreeModule_subset<$a>(comparer: IComparer<$a>, a: Option<SetTreeLeaf$1<$a>>, b: Option<SetTreeLeaf$1<$a>>): boolean;
|
|
44
|
+
export declare function SetTreeModule_properSubset<$a>(comparer: IComparer<$a>, a: Option<SetTreeLeaf$1<$a>>, b: Option<SetTreeLeaf$1<$a>>): boolean;
|
|
45
|
+
export declare function SetTreeModule_filterAux<T>(comparer_mut: IComparer<T>, f_mut: ((arg0: T) => boolean), t_mut: Option<SetTreeLeaf$1<T>>, acc_mut: Option<SetTreeLeaf$1<T>>): Option<SetTreeLeaf$1<T>>;
|
|
46
|
+
export declare function SetTreeModule_filter<$a>(comparer: IComparer<$a>, f: ((arg0: $a) => boolean), s: Option<SetTreeLeaf$1<$a>>): Option<SetTreeLeaf$1<$a>>;
|
|
47
|
+
export declare function SetTreeModule_diffAux<T>(comparer_mut: IComparer<T>, t_mut: Option<SetTreeLeaf$1<T>>, acc_mut: Option<SetTreeLeaf$1<T>>): Option<SetTreeLeaf$1<T>>;
|
|
48
|
+
export declare function SetTreeModule_diff<$a>(comparer: IComparer<$a>, a: Option<SetTreeLeaf$1<$a>>, b: Option<SetTreeLeaf$1<$a>>): Option<SetTreeLeaf$1<$a>>;
|
|
49
|
+
export declare function SetTreeModule_union<T>(comparer: IComparer<T>, t1: Option<SetTreeLeaf$1<T>>, t2: Option<SetTreeLeaf$1<T>>): Option<SetTreeLeaf$1<T>>;
|
|
50
|
+
export declare function SetTreeModule_intersectionAux<T>(comparer_mut: IComparer<T>, b_mut: Option<SetTreeLeaf$1<T>>, t_mut: Option<SetTreeLeaf$1<T>>, acc_mut: Option<SetTreeLeaf$1<T>>): Option<SetTreeLeaf$1<T>>;
|
|
51
|
+
export declare function SetTreeModule_intersection<$a>(comparer: IComparer<$a>, a: Option<SetTreeLeaf$1<$a>>, b: Option<SetTreeLeaf$1<$a>>): Option<SetTreeLeaf$1<$a>>;
|
|
52
|
+
export declare function SetTreeModule_partition1<$a>(comparer: IComparer<$a>, f: ((arg0: $a) => boolean), k: $a, acc1: Option<SetTreeLeaf$1<$a>>, acc2: Option<SetTreeLeaf$1<$a>>): [Option<SetTreeLeaf$1<$a>>, Option<SetTreeLeaf$1<$a>>];
|
|
53
|
+
export declare function SetTreeModule_partitionAux<T>(comparer_mut: IComparer<T>, f_mut: ((arg0: T) => boolean), t_mut: Option<SetTreeLeaf$1<T>>, acc__mut: Option<SetTreeLeaf$1<T>>, acc__1_mut: Option<SetTreeLeaf$1<T>>): [Option<SetTreeLeaf$1<T>>, Option<SetTreeLeaf$1<T>>];
|
|
54
|
+
export declare function SetTreeModule_partition<$a>(comparer: IComparer<$a>, f: ((arg0: $a) => boolean), s: Option<SetTreeLeaf$1<$a>>): [Option<SetTreeLeaf$1<$a>>, Option<SetTreeLeaf$1<$a>>];
|
|
55
|
+
export declare function SetTreeModule_minimumElementAux<T>(t_mut: Option<SetTreeLeaf$1<T>>, n_mut: T): T;
|
|
56
|
+
export declare function SetTreeModule_minimumElementOpt<T>(t: Option<SetTreeLeaf$1<T>>): Option<T>;
|
|
57
|
+
export declare function SetTreeModule_maximumElementAux<T>(t_mut: Option<SetTreeLeaf$1<T>>, n_mut: T): T;
|
|
58
|
+
export declare function SetTreeModule_maximumElementOpt<T>(t: Option<SetTreeLeaf$1<T>>): Option<T>;
|
|
59
|
+
export declare function SetTreeModule_minimumElement<$a>(s: Option<SetTreeLeaf$1<$a>>): $a;
|
|
60
|
+
export declare function SetTreeModule_maximumElement<$a>(s: Option<SetTreeLeaf$1<$a>>): $a;
|
|
61
|
+
export declare class SetTreeModule_SetIterator$1<T> extends Record {
|
|
62
|
+
stack: FSharpList<Option<SetTreeLeaf$1<T>>>;
|
|
63
|
+
started: boolean;
|
|
64
|
+
constructor(stack: FSharpList<Option<SetTreeLeaf$1<T>>>, started: boolean);
|
|
65
|
+
}
|
|
66
|
+
export declare function SetTreeModule_SetIterator$1_$reflection(gen0: TypeInfo): TypeInfo;
|
|
67
|
+
export declare function SetTreeModule_collapseLHS<T>(stack_mut: FSharpList<Option<SetTreeLeaf$1<T>>>): FSharpList<Option<SetTreeLeaf$1<T>>>;
|
|
68
|
+
export declare function SetTreeModule_mkIterator<$a>(s: Option<SetTreeLeaf$1<$a>>): SetTreeModule_SetIterator$1<$a>;
|
|
69
|
+
export declare function SetTreeModule_notStarted<$a>(): $a;
|
|
70
|
+
export declare function SetTreeModule_alreadyFinished<$a>(): $a;
|
|
71
|
+
export declare function SetTreeModule_current<$a>(i: SetTreeModule_SetIterator$1<$a>): $a;
|
|
72
|
+
export declare function SetTreeModule_moveNext<T>(i: SetTreeModule_SetIterator$1<T>): boolean;
|
|
73
|
+
export declare function SetTreeModule_mkIEnumerator<a>(s: Option<SetTreeLeaf$1<a>>): IEnumerator<a>;
|
|
74
|
+
/**
|
|
75
|
+
* Set comparison. Note this can be expensive.
|
|
76
|
+
*/
|
|
77
|
+
export declare function SetTreeModule_compareStacks<T>(comparer_mut: IComparer<T>, l1_mut: FSharpList<Option<SetTreeLeaf$1<T>>>, l2_mut: FSharpList<Option<SetTreeLeaf$1<T>>>): int32;
|
|
78
|
+
export declare function SetTreeModule_compare<T>(comparer: IComparer<T>, t1: Option<SetTreeLeaf$1<T>>, t2: Option<SetTreeLeaf$1<T>>): int32;
|
|
79
|
+
export declare function SetTreeModule_choose<$a>(s: Option<SetTreeLeaf$1<$a>>): $a;
|
|
80
|
+
export declare function SetTreeModule_toList<T>(t: Option<SetTreeLeaf$1<T>>): FSharpList<T>;
|
|
81
|
+
export declare function SetTreeModule_copyToArray<$a>(s: Option<SetTreeLeaf$1<$a>>, arr: $a[], i: int32): void;
|
|
82
|
+
export declare function SetTreeModule_toArray<$a>(s: Option<SetTreeLeaf$1<$a>>): $a[];
|
|
83
|
+
export declare function SetTreeModule_mkFromEnumerator<$a>(comparer_mut: IComparer<$a>, acc_mut: Option<SetTreeLeaf$1<$a>>, e_mut: IEnumerator<$a>): Option<SetTreeLeaf$1<$a>>;
|
|
84
|
+
export declare function SetTreeModule_ofArray<$a>(comparer: IComparer<$a>, l: $a[]): Option<SetTreeLeaf$1<$a>>;
|
|
85
|
+
export declare function SetTreeModule_ofList<$a>(comparer: IComparer<$a>, l: FSharpList<$a>): Option<SetTreeLeaf$1<$a>>;
|
|
86
|
+
export declare function SetTreeModule_ofSeq<T>(comparer: IComparer<T>, c: Iterable<T>): Option<SetTreeLeaf$1<T>>;
|
|
87
|
+
export declare class FSharpSet<T> implements ISet<T>, Iterable<T>, Iterable<T> {
|
|
88
|
+
readonly tree: Option<SetTreeLeaf$1<T>>;
|
|
89
|
+
readonly comparer: IComparer<T>;
|
|
90
|
+
constructor(comparer: IComparer<T>, tree: Option<SetTreeLeaf$1<T>>);
|
|
91
|
+
GetHashCode(): int32;
|
|
92
|
+
Equals(that: any): boolean;
|
|
93
|
+
toString(): string;
|
|
94
|
+
get [Symbol.toStringTag](): string;
|
|
95
|
+
toJSON(): any;
|
|
96
|
+
CompareTo(that: any): int32;
|
|
97
|
+
"System.Collections.Generic.ICollection`1.Add2B595"(x: T): void;
|
|
98
|
+
"System.Collections.Generic.ICollection`1.Clear"(): void;
|
|
99
|
+
"System.Collections.Generic.ICollection`1.Remove2B595"(x: T): boolean;
|
|
100
|
+
"System.Collections.Generic.ICollection`1.Contains2B595"(x: T): boolean;
|
|
101
|
+
"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(arr: T[], i: int32): void;
|
|
102
|
+
"System.Collections.Generic.ICollection`1.get_IsReadOnly"(): boolean;
|
|
103
|
+
"System.Collections.Generic.ICollection`1.get_Count"(): int32;
|
|
104
|
+
"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(): int32;
|
|
105
|
+
GetEnumerator(): IEnumerator<T>;
|
|
106
|
+
[Symbol.iterator](): Iterator<T>;
|
|
107
|
+
"System.Collections.IEnumerable.GetEnumerator"(): IEnumerator<any>;
|
|
108
|
+
get size(): int32;
|
|
109
|
+
add(k: T): ISet<T>;
|
|
110
|
+
clear(): void;
|
|
111
|
+
delete(k: T): boolean;
|
|
112
|
+
has(k: T): boolean;
|
|
113
|
+
keys(): Iterable<T>;
|
|
114
|
+
values(): Iterable<T>;
|
|
115
|
+
entries(): Iterable<[T, T]>;
|
|
116
|
+
forEach(f: ((arg0: T, arg1: T, arg2: ISet<T>) => void), thisArg?: Option<any>): void;
|
|
117
|
+
}
|
|
118
|
+
export declare function FSharpSet_$reflection(gen0: TypeInfo): TypeInfo;
|
|
119
|
+
export declare function FSharpSet_$ctor<T>(comparer: IComparer<T>, tree: Option<SetTreeLeaf$1<T>>): FSharpSet<T>;
|
|
120
|
+
export declare function FSharpSet__get_Comparer<T>(set$: FSharpSet<T>): IComparer<T>;
|
|
121
|
+
export declare function FSharpSet__get_Tree<T>(set$: FSharpSet<T>): Option<SetTreeLeaf$1<T>>;
|
|
122
|
+
export declare function FSharpSet_Empty<T>(comparer: IComparer<T>): FSharpSet<T>;
|
|
123
|
+
export declare function FSharpSet__Add<T>(s: FSharpSet<T>, value: T): FSharpSet<T>;
|
|
124
|
+
export declare function FSharpSet__Remove<T>(s: FSharpSet<T>, value: T): FSharpSet<T>;
|
|
125
|
+
export declare function FSharpSet__get_Count<T>(s: FSharpSet<T>): int32;
|
|
126
|
+
export declare function FSharpSet__Contains<T>(s: FSharpSet<T>, value: T): boolean;
|
|
127
|
+
export declare function FSharpSet__Iterate<T>(s: FSharpSet<T>, x: ((arg0: T) => void)): void;
|
|
128
|
+
export declare function FSharpSet__Fold<T, $a>(s: FSharpSet<T>, f: ((arg0: T, arg1: $a) => $a), z: $a): $a;
|
|
129
|
+
export declare function FSharpSet__get_IsEmpty<T>(s: FSharpSet<T>): boolean;
|
|
130
|
+
export declare function FSharpSet__Partition<T>(s: FSharpSet<T>, f: ((arg0: T) => boolean)): [FSharpSet<T>, FSharpSet<T>];
|
|
131
|
+
export declare function FSharpSet__Filter<T>(s: FSharpSet<T>, f: ((arg0: T) => boolean)): FSharpSet<T>;
|
|
132
|
+
export declare function FSharpSet__Map<T, U>(s: FSharpSet<T>, f: ((arg0: T) => U), comparer: IComparer<U>): FSharpSet<U>;
|
|
133
|
+
export declare function FSharpSet__Exists<T>(s: FSharpSet<T>, f: ((arg0: T) => boolean)): boolean;
|
|
134
|
+
export declare function FSharpSet__ForAll<T>(s: FSharpSet<T>, f: ((arg0: T) => boolean)): boolean;
|
|
135
|
+
export declare function FSharpSet_op_Subtraction<T>(set1: FSharpSet<T>, set2: FSharpSet<T>): FSharpSet<T>;
|
|
136
|
+
export declare function FSharpSet_op_Addition<T>(set1: FSharpSet<T>, set2: FSharpSet<T>): FSharpSet<T>;
|
|
137
|
+
export declare function FSharpSet_Intersection<T>(a: FSharpSet<T>, b: FSharpSet<T>): FSharpSet<T>;
|
|
138
|
+
export declare function FSharpSet_IntersectionMany<T>(sets: Iterable<FSharpSet<T>>): FSharpSet<T>;
|
|
139
|
+
export declare function FSharpSet_Equality<T>(a: FSharpSet<T>, b: FSharpSet<T>): boolean;
|
|
140
|
+
export declare function FSharpSet_Compare<T>(a: FSharpSet<T>, b: FSharpSet<T>): int32;
|
|
141
|
+
export declare function FSharpSet__get_Choose<T>(x: FSharpSet<T>): T;
|
|
142
|
+
export declare function FSharpSet__get_MinimumElement<T>(x: FSharpSet<T>): T;
|
|
143
|
+
export declare function FSharpSet__get_MaximumElement<T>(x: FSharpSet<T>): T;
|
|
144
|
+
export declare function FSharpSet__IsSubsetOf<T>(x: FSharpSet<T>, otherSet: FSharpSet<T>): boolean;
|
|
145
|
+
export declare function FSharpSet__IsSupersetOf<T>(x: FSharpSet<T>, otherSet: FSharpSet<T>): boolean;
|
|
146
|
+
export declare function FSharpSet__IsProperSubsetOf<T>(x: FSharpSet<T>, otherSet: FSharpSet<T>): boolean;
|
|
147
|
+
export declare function FSharpSet__IsProperSupersetOf<T>(x: FSharpSet<T>, otherSet: FSharpSet<T>): boolean;
|
|
148
|
+
export declare function FSharpSet__ToList<T>(x: FSharpSet<T>): FSharpList<T>;
|
|
149
|
+
export declare function FSharpSet__ToArray<T>(x: FSharpSet<T>): T[];
|
|
150
|
+
export declare function FSharpSet__ComputeHashCode<T>(this$: FSharpSet<T>): int32;
|
|
151
|
+
export declare function isEmpty<T>(set$: FSharpSet<T>): boolean;
|
|
152
|
+
export declare function contains<T>(element: T, set$: FSharpSet<T>): boolean;
|
|
153
|
+
export declare function add<T>(value: T, set$: FSharpSet<T>): FSharpSet<T>;
|
|
154
|
+
export declare function singleton<T>(value: T, comparer: IComparer<T>): FSharpSet<T>;
|
|
155
|
+
export declare function remove<T>(value: T, set$: FSharpSet<T>): FSharpSet<T>;
|
|
156
|
+
export declare function union<T>(set1: FSharpSet<T>, set2: FSharpSet<T>): FSharpSet<T>;
|
|
157
|
+
export declare function unionMany<T>(sets: Iterable<FSharpSet<T>>, comparer: IComparer<T>): FSharpSet<T>;
|
|
158
|
+
export declare function intersect<T>(set1: FSharpSet<T>, set2: FSharpSet<T>): FSharpSet<T>;
|
|
159
|
+
export declare function intersectMany<T>(sets: Iterable<FSharpSet<T>>): FSharpSet<T>;
|
|
160
|
+
export declare function iterate<T>(action: ((arg0: T) => void), set$: FSharpSet<T>): void;
|
|
161
|
+
export declare function empty<T>(comparer: IComparer<T>): FSharpSet<T>;
|
|
162
|
+
export declare function forAll<T>(predicate: ((arg0: T) => boolean), set$: FSharpSet<T>): boolean;
|
|
163
|
+
export declare function exists<T>(predicate: ((arg0: T) => boolean), set$: FSharpSet<T>): boolean;
|
|
164
|
+
export declare function filter<T>(predicate: ((arg0: T) => boolean), set$: FSharpSet<T>): FSharpSet<T>;
|
|
165
|
+
export declare function partition<T>(predicate: ((arg0: T) => boolean), set$: FSharpSet<T>): [FSharpSet<T>, FSharpSet<T>];
|
|
166
|
+
export declare function fold<T, State>(folder: ((arg0: State, arg1: T) => State), state: State, set$: FSharpSet<T>): State;
|
|
167
|
+
export declare function foldBack<T, State>(folder: ((arg0: T, arg1: State) => State), set$: FSharpSet<T>, state: State): State;
|
|
168
|
+
export declare function map<T, U>(mapping: ((arg0: T) => U), set$: FSharpSet<T>, comparer: IComparer<U>): FSharpSet<U>;
|
|
169
|
+
export declare function count<T>(set$: FSharpSet<T>): int32;
|
|
170
|
+
export declare function ofList<T>(elements: Iterable<T>, comparer: IComparer<T>): FSharpSet<T>;
|
|
171
|
+
export declare function ofArray<T>(array: T[], comparer: IComparer<T>): FSharpSet<T>;
|
|
172
|
+
export declare function toList<T>(set$: FSharpSet<T>): FSharpList<T>;
|
|
173
|
+
export declare function toArray<T>(set$: FSharpSet<T>): T[];
|
|
174
|
+
export declare function toSeq<T>(set$: FSharpSet<T>): Iterable<T>;
|
|
175
|
+
export declare function ofSeq<T>(elements: Iterable<T>, comparer: IComparer<T>): FSharpSet<T>;
|
|
176
|
+
export declare function difference<T>(set1: FSharpSet<T>, set2: FSharpSet<T>): FSharpSet<T>;
|
|
177
|
+
export declare function isSubset<T>(set1: FSharpSet<T>, set2: FSharpSet<T>): boolean;
|
|
178
|
+
export declare function isSuperset<T>(set1: FSharpSet<T>, set2: FSharpSet<T>): boolean;
|
|
179
|
+
export declare function isProperSubset<T>(set1: FSharpSet<T>, set2: FSharpSet<T>): boolean;
|
|
180
|
+
export declare function isProperSuperset<T>(set1: FSharpSet<T>, set2: FSharpSet<T>): boolean;
|
|
181
|
+
export declare function minElement<T>(set$: FSharpSet<T>): T;
|
|
182
|
+
export declare function maxElement<T>(set$: FSharpSet<T>): T;
|
|
183
|
+
export declare function unionWith<T>(s1: ISet<T>, s2: Iterable<T>): ISet<T>;
|
|
184
|
+
export declare function newMutableSetWith<T>(s1: ISet<T>, s2: Iterable<T>): ISet<T>;
|
|
185
|
+
export declare function intersectWith<T>(s1: ISet<T>, s2: Iterable<T>): void;
|
|
186
|
+
export declare function exceptWith<T>(s1: ISet<T>, s2: Iterable<T>): void;
|
|
187
|
+
export declare function isSubsetOf<T>(s1: ISet<T>, s2: Iterable<T>): boolean;
|
|
188
|
+
export declare function isSupersetOf<T>(s1: ISet<T>, s2: Iterable<T>): boolean;
|
|
189
|
+
export declare function isProperSubsetOf<T>(s1: ISet<T>, s2: Iterable<T>): boolean;
|
|
190
|
+
export declare function isProperSupersetOf<T>(s1: ISet<T>, s2: Iterable<T>): boolean;
|