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
package/README.md
CHANGED
|
@@ -16,8 +16,8 @@ using [the Fable compiler](https://fable.io). To build Compost, you will need to
|
|
|
16
16
|
[Ionide plugin](http://ionide.io/) for Visual Studio Code.
|
|
17
17
|
|
|
18
18
|
### Developing Compost
|
|
19
|
-
To work on Compost, you can use the
|
|
20
|
-
`
|
|
19
|
+
To work on Compost, you can use the Vite dev server. The following will serve the
|
|
20
|
+
`index.html` file and compile the `src/project/demos.js` source code at
|
|
21
21
|
http://localhost:8080
|
|
22
22
|
|
|
23
23
|
```
|
|
@@ -26,8 +26,8 @@ npm start
|
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
### Building Compost
|
|
29
|
-
There are two ways to build Compost. Running `npm run build` will
|
|
30
|
-
|
|
29
|
+
There are two ways to build Compost. Running `npm run build` will
|
|
30
|
+
generate nice JavaScript files for a NPM package in the `dist` folder, which is then
|
|
31
31
|
packaged and published on NPM. Running `npm run standalone` builds a standalone
|
|
32
32
|
JavaScript file that is added to the `releases` folder of the `docs` with the current
|
|
33
33
|
version number in the filename (and also updates the `latest` file).
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { int32 } from "./Int32.js";
|
|
2
|
+
import { Option } from "./Option.js";
|
|
3
|
+
import { IComparer, IEqualityComparer } from "./Util.js";
|
|
4
|
+
import { FSharpRef } from "./Types.js";
|
|
5
|
+
export declare function append<T>(array1: T[], array2: T[], cons?: any): T[];
|
|
6
|
+
export declare function filter<T>(predicate: ((arg0: T) => boolean), array: T[]): T[];
|
|
7
|
+
export declare function fill<T>(target: T[], targetIndex: int32, count: int32, value: T): T[];
|
|
8
|
+
export declare function getSubArray<T>(array: T[], start: int32, count: int32): T[];
|
|
9
|
+
export declare function last<T>(array: T[]): T;
|
|
10
|
+
export declare function tryLast<T>(array: T[]): Option<T>;
|
|
11
|
+
export declare function mapIndexed<T, U>(f: ((arg0: int32, arg1: T) => U), source: T[], cons?: any): U[];
|
|
12
|
+
export declare function map<T, U>(f: ((arg0: T) => U), source: T[], cons?: any): U[];
|
|
13
|
+
export declare function mapIndexed2<T1, T2, U>(f: ((arg0: int32, arg1: T1, arg2: T2) => U), source1: T1[], source2: T2[], cons?: any): U[];
|
|
14
|
+
export declare function map2<T1, T2, U>(f: ((arg0: T1, arg1: T2) => U), source1: T1[], source2: T2[], cons?: any): U[];
|
|
15
|
+
export declare function mapIndexed3<T1, T2, T3, U>(f: ((arg0: int32, arg1: T1, arg2: T2, arg3: T3) => U), source1: T1[], source2: T2[], source3: T3[], cons?: any): U[];
|
|
16
|
+
export declare function map3<T1, T2, T3, U>(f: ((arg0: T1, arg1: T2, arg2: T3) => U), source1: T1[], source2: T2[], source3: T3[], cons?: any): U[];
|
|
17
|
+
export declare function mapFold<T, State, Result>(mapping: ((arg0: State, arg1: T) => [Result, State]), state: State, array: T[], cons?: any): [Result[], State];
|
|
18
|
+
export declare function mapFoldBack<T, State, Result>(mapping: ((arg0: T, arg1: State) => [Result, State]), array: T[], state: State, cons?: any): [Result[], State];
|
|
19
|
+
export declare function indexed<T>(source: T[]): [int32, T][];
|
|
20
|
+
export declare function truncate<T>(count: int32, array: T[]): T[];
|
|
21
|
+
export declare function concat<T>(arrays: Iterable<T[]>, cons?: any): T[];
|
|
22
|
+
export declare function collect<T, U>(mapping: ((arg0: T) => U[]), array: T[], cons?: any): U[];
|
|
23
|
+
export declare function where<$a>(predicate: ((arg0: $a) => boolean), array: $a[]): $a[];
|
|
24
|
+
export declare function indexOf<T>(array: T[], item_1: T, start: Option<int32>, count: Option<int32>, eq: IEqualityComparer<T>): int32;
|
|
25
|
+
export declare function contains<T>(value: T, array: T[], eq: IEqualityComparer<T>): boolean;
|
|
26
|
+
export declare function empty<$a>(cons: any): $a[];
|
|
27
|
+
export declare function singleton<T>(value: T, cons?: any): T[];
|
|
28
|
+
export declare function initialize<T>(count: int32, initializer: ((arg0: int32) => T), cons?: any): T[];
|
|
29
|
+
export declare function pairwise<T>(array: T[]): [T, T][];
|
|
30
|
+
export declare function replicate<T>(count: int32, initial: T, cons?: any): T[];
|
|
31
|
+
export declare function copy<T>(array: T[]): T[];
|
|
32
|
+
export declare function copyTo<T>(source: T[], sourceIndex: int32, target: T[], targetIndex: int32, count: int32): void;
|
|
33
|
+
export declare function reverse<T>(array: T[]): T[];
|
|
34
|
+
export declare function scan<T, State>(folder: ((arg0: State, arg1: T) => State), state: State, array: T[], cons?: any): State[];
|
|
35
|
+
export declare function scanBack<T, State>(folder: ((arg0: T, arg1: State) => State), array: T[], state: State, cons?: any): State[];
|
|
36
|
+
export declare function skip<T>(count: int32, array: T[], cons?: any): T[];
|
|
37
|
+
export declare function skipWhile<T>(predicate: ((arg0: T) => boolean), array: T[], cons?: any): T[];
|
|
38
|
+
export declare function take<T>(count: int32, array: T[], cons?: any): T[];
|
|
39
|
+
export declare function takeWhile<T>(predicate: ((arg0: T) => boolean), array: T[], cons?: any): T[];
|
|
40
|
+
export declare function addInPlace<T>(x: T, array: T[]): void;
|
|
41
|
+
export declare function addRangeInPlace<T>(range: Iterable<T>, array: T[]): void;
|
|
42
|
+
export declare function insertRangeInPlace<T>(index: int32, range: Iterable<T>, array: T[]): void;
|
|
43
|
+
export declare function removeInPlace<T>(item_1: T, array: T[], eq: IEqualityComparer<T>): boolean;
|
|
44
|
+
export declare function removeAllInPlace<T>(predicate: ((arg0: T) => boolean), array: T[]): int32;
|
|
45
|
+
export declare function partition<T>(f: ((arg0: T) => boolean), source: T[], cons?: any): [T[], T[]];
|
|
46
|
+
export declare function find<T>(predicate: ((arg0: T) => boolean), array: T[]): T;
|
|
47
|
+
export declare function tryFind<T>(predicate: ((arg0: T) => boolean), array: T[]): Option<T>;
|
|
48
|
+
export declare function findIndex<T>(predicate: ((arg0: T) => boolean), array: T[]): int32;
|
|
49
|
+
export declare function tryFindIndex<T>(predicate: ((arg0: T) => boolean), array: T[]): Option<int32>;
|
|
50
|
+
export declare function pick<$a, $b>(chooser: ((arg0: $a) => Option<$b>), array: $a[]): $b;
|
|
51
|
+
export declare function tryPick<$a, $b>(chooser: ((arg0: $a) => Option<$b>), array: $a[]): Option<$b>;
|
|
52
|
+
export declare function findBack<$a>(predicate: ((arg0: $a) => boolean), array: $a[]): $a;
|
|
53
|
+
export declare function tryFindBack<$a>(predicate: ((arg0: $a) => boolean), array: $a[]): Option<$a>;
|
|
54
|
+
export declare function findLastIndex<$a>(predicate: ((arg0: $a) => boolean), array: $a[]): int32;
|
|
55
|
+
export declare function findIndexBack<$a>(predicate: ((arg0: $a) => boolean), array: $a[]): int32;
|
|
56
|
+
export declare function tryFindIndexBack<$a>(predicate: ((arg0: $a) => boolean), array: $a[]): Option<int32>;
|
|
57
|
+
export declare function choose<T, U>(chooser: ((arg0: T) => Option<U>), array: T[], cons?: any): U[];
|
|
58
|
+
export declare function foldIndexed<T, State>(folder: ((arg0: int32, arg1: State, arg2: T) => State), state: State, array: T[]): State;
|
|
59
|
+
export declare function fold<T, State>(folder: ((arg0: State, arg1: T) => State), state: State, array: T[]): State;
|
|
60
|
+
export declare function iterate<T>(action: ((arg0: T) => void), array: T[]): void;
|
|
61
|
+
export declare function iterateIndexed<T>(action: ((arg0: int32, arg1: T) => void), array: T[]): void;
|
|
62
|
+
export declare function iterate2<T1, T2>(action: ((arg0: T1, arg1: T2) => void), array1: T1[], array2: T2[]): void;
|
|
63
|
+
export declare function iterateIndexed2<T1, T2>(action: ((arg0: int32, arg1: T1, arg2: T2) => void), array1: T1[], array2: T2[]): void;
|
|
64
|
+
export declare function isEmpty<T>(array: T[]): boolean;
|
|
65
|
+
export declare function forAll<T>(predicate: ((arg0: T) => boolean), array: T[]): boolean;
|
|
66
|
+
export declare function permute<T>(f: ((arg0: int32) => int32), array: T[]): T[];
|
|
67
|
+
export declare function setSlice<T>(target: T[], lower: Option<int32>, upper: Option<int32>, source: T[]): void;
|
|
68
|
+
export declare function sortInPlaceBy<a, b>(projection: ((arg0: a) => b), xs: a[], comparer: IComparer<b>): void;
|
|
69
|
+
export declare function sortInPlace<T>(xs: T[], comparer: IComparer<T>): void;
|
|
70
|
+
export declare function sort<T>(xs: T[], comparer: IComparer<T>): T[];
|
|
71
|
+
export declare function sortBy<a, b>(projection: ((arg0: a) => b), xs: a[], comparer: IComparer<b>): a[];
|
|
72
|
+
export declare function sortDescending<T>(xs: T[], comparer: IComparer<T>): T[];
|
|
73
|
+
export declare function sortByDescending<a, b>(projection: ((arg0: a) => b), xs: a[], comparer: IComparer<b>): a[];
|
|
74
|
+
export declare function sortWith<T>(comparer: ((arg0: T, arg1: T) => int32), xs: T[]): T[];
|
|
75
|
+
export declare function allPairs<T1, T2>(xs: T1[], ys: T2[]): [T1, T2][];
|
|
76
|
+
export declare function unfold<T, State>(generator: ((arg0: State) => Option<[T, State]>), state: State): T[];
|
|
77
|
+
export declare function unzip<$a, $b>(array: [$a, $b][]): [$a[], $b[]];
|
|
78
|
+
export declare function unzip3<$a, $b, $c>(array: [$a, $b, $c][]): [$a[], $b[], $c[]];
|
|
79
|
+
export declare function zip<T, U>(array1: T[], array2: U[]): [T, U][];
|
|
80
|
+
export declare function zip3<T, U, V>(array1: T[], array2: U[], array3: V[]): [T, U, V][];
|
|
81
|
+
export declare function chunkBySize<T>(chunkSize: int32, array: T[]): T[][];
|
|
82
|
+
export declare function splitAt<T>(index: int32, array: T[]): [T[], T[]];
|
|
83
|
+
export declare function compareWith<T>(comparer: ((arg0: T, arg1: T) => int32), source1: T[], source2: T[]): int32;
|
|
84
|
+
export declare function compareTo<T>(comparer: ((arg0: T, arg1: T) => int32), source1: T[], source2: T[]): int32;
|
|
85
|
+
export declare function equalsWith<T>(equals: ((arg0: T, arg1: T) => boolean), array1: T[], array2: T[]): boolean;
|
|
86
|
+
export declare function exactlyOne<T>(array: T[]): T;
|
|
87
|
+
export declare function tryExactlyOne<T>(array: T[]): Option<T>;
|
|
88
|
+
export declare function head<T>(array: T[]): T;
|
|
89
|
+
export declare function tryHead<T>(array: T[]): Option<T>;
|
|
90
|
+
export declare function tail<T>(array: T[]): T[];
|
|
91
|
+
export declare function item<T>(index: int32, array: T[]): T;
|
|
92
|
+
export declare function setItem<T>(array: T[], index: int32, value: T): void;
|
|
93
|
+
export declare function tryItem<T>(index: int32, array: T[]): Option<T>;
|
|
94
|
+
export declare function foldBackIndexed<T, State>(folder: ((arg0: int32, arg1: T, arg2: State) => State), array: T[], state: State): State;
|
|
95
|
+
export declare function foldBack<T, State>(folder: ((arg0: T, arg1: State) => State), array: T[], state: State): State;
|
|
96
|
+
export declare function foldIndexed2<$a, $b, $c>(folder: ((arg0: int32, arg1: $a, arg2: $b, arg3: $c) => $a), state: $a, array1: $b[], array2: $c[]): $a;
|
|
97
|
+
export declare function fold2<T1, T2, State>(folder: ((arg0: State, arg1: T1, arg2: T2) => State), state: State, array1: T1[], array2: T2[]): State;
|
|
98
|
+
export declare function foldBackIndexed2<T1, T2, State>(folder: ((arg0: int32, arg1: T1, arg2: T2, arg3: State) => State), array1: T1[], array2: T2[], state: State): State;
|
|
99
|
+
export declare function foldBack2<T1, T2, State>(f: ((arg0: T1, arg1: T2, arg2: State) => State), array1: T1[], array2: T2[], state: State): State;
|
|
100
|
+
export declare function reduce<T>(reduction: ((arg0: T, arg1: T) => T), array: T[]): T;
|
|
101
|
+
export declare function reduceBack<T>(reduction: ((arg0: T, arg1: T) => T), array: T[]): T;
|
|
102
|
+
export declare function forAll2<$a, $b>(predicate: ((arg0: $a, arg1: $b) => boolean), array1: $a[], array2: $b[]): boolean;
|
|
103
|
+
export declare function existsOffset<T>(predicate_mut: ((arg0: T) => boolean), array_mut: T[], index_mut: int32): boolean;
|
|
104
|
+
export declare function exists<$a>(predicate: ((arg0: $a) => boolean), array: $a[]): boolean;
|
|
105
|
+
export declare function existsOffset2<$a, $b>(predicate_mut: ((arg0: $a, arg1: $b) => boolean), array1_mut: $a[], array2_mut: $b[], index_mut: int32): boolean;
|
|
106
|
+
export declare function exists2<$a, $b>(predicate: ((arg0: $a, arg1: $b) => boolean), array1: $a[], array2: $b[]): boolean;
|
|
107
|
+
export declare function sum<T>(array: T[], adder: any): T;
|
|
108
|
+
export declare function sumBy<T, T2>(projection: ((arg0: T) => T2), array: T[], adder: any): T2;
|
|
109
|
+
export declare function maxBy<a, b>(projection: ((arg0: a) => b), xs: a[], comparer: IComparer<b>): a;
|
|
110
|
+
export declare function max<a>(xs: a[], comparer: IComparer<a>): a;
|
|
111
|
+
export declare function minBy<a, b>(projection: ((arg0: a) => b), xs: a[], comparer: IComparer<b>): a;
|
|
112
|
+
export declare function min<a>(xs: a[], comparer: IComparer<a>): a;
|
|
113
|
+
export declare function average<T>(array: T[], averager: any): T;
|
|
114
|
+
export declare function averageBy<T, T2>(projection: ((arg0: T) => T2), array: T[], averager: any): T2;
|
|
115
|
+
export declare function windowed<T>(windowSize: int32, source: T[]): T[][];
|
|
116
|
+
export declare function splitInto<T>(chunks: int32, array: T[]): T[][];
|
|
117
|
+
export declare function transpose<T>(arrays: Iterable<T[]>, cons?: any): T[][];
|
|
118
|
+
export declare function insertAt<T>(index: int32, y: T, xs: T[], cons?: any): T[];
|
|
119
|
+
export declare function insertManyAt<T>(index: int32, ys: Iterable<T>, xs: T[], cons?: any): T[];
|
|
120
|
+
export declare function removeAt<T>(index: int32, xs: T[]): T[];
|
|
121
|
+
export declare function removeManyAt<T>(index: int32, count: int32, xs: T[]): T[];
|
|
122
|
+
export declare function updateAt<T>(index: int32, y: T, xs: T[], cons?: any): T[];
|
|
123
|
+
export declare function resize<T>(xs: FSharpRef<T[]>, newSize: int32, zero?: Option<T>, cons?: any): void;
|