functype 0.4.1 → 0.8.0
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/dist/chunk-2I2NKDFN.mjs +1 -0
- package/dist/chunk-3Y43FJKZ.mjs +1 -0
- package/dist/chunk-4AEODSGH.mjs +1 -0
- package/dist/chunk-4PGXHDAS.js +1 -0
- package/dist/chunk-E3BAZBU2.js +1 -0
- package/dist/chunk-E6RS47F7.js +1 -0
- package/dist/chunk-FMHIRYL5.mjs +1 -0
- package/dist/chunk-GPS3OL5F.mjs +1 -0
- package/dist/chunk-HJAAA6CD.mjs +1 -0
- package/dist/chunk-KWPKGISB.js +1 -0
- package/dist/chunk-OXLZ6UIZ.js +1 -0
- package/dist/chunk-PMZTOIT2.js +1 -0
- package/dist/chunk-REXFLQTJ.js +1 -0
- package/dist/chunk-TVCOFH5I.js +1 -0
- package/dist/chunk-VK5GL6NM.mjs +1 -0
- package/dist/chunk-VUD7L2T6.mjs +1 -0
- package/dist/chunk-WDHUQRFT.js +1 -0
- package/dist/chunk-ZMF3MVW7.mjs +1 -0
- package/dist/collections/index.d.mts +1 -1
- package/dist/collections/index.d.ts +1 -1
- package/dist/either/Either.d.mts +1 -1
- package/dist/either/Either.d.ts +1 -1
- package/dist/either/Either.js +1 -1
- package/dist/either/Either.mjs +1 -1
- package/dist/either/index.d.mts +1 -1
- package/dist/either/index.d.ts +1 -1
- package/dist/either/index.js +1 -1
- package/dist/either/index.mjs +1 -1
- package/dist/error/ParseError.d.mts +6 -2
- package/dist/error/ParseError.d.ts +6 -2
- package/dist/error/ParseError.js +1 -1
- package/dist/error/ParseError.mjs +1 -1
- package/dist/functor/index.d.mts +11 -11
- package/dist/functor/index.d.ts +11 -11
- package/dist/index-BB5a793T.d.mts +208 -0
- package/dist/index-DyWcaZaG.d.ts +208 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/iterable/Seq.d.mts +1 -1
- package/dist/iterable/Seq.d.ts +1 -1
- package/dist/iterable/Seq.js +1 -1
- package/dist/iterable/Seq.mjs +1 -1
- package/dist/iterable/index.d.mts +1 -1
- package/dist/iterable/index.d.ts +1 -1
- package/dist/iterable/index.js +1 -1
- package/dist/iterable/index.mjs +1 -1
- package/dist/list/List.d.mts +1 -1
- package/dist/list/List.d.ts +1 -1
- package/dist/list/List.js +1 -1
- package/dist/list/List.mjs +1 -1
- package/dist/list/index.d.mts +1 -1
- package/dist/list/index.d.ts +1 -1
- package/dist/list/index.js +1 -1
- package/dist/list/index.mjs +1 -1
- package/dist/map/Map.d.mts +1 -1
- package/dist/map/Map.d.ts +1 -1
- package/dist/map/Map.js +1 -1
- package/dist/map/Map.mjs +1 -1
- package/dist/map/index.d.mts +1 -1
- package/dist/map/index.d.ts +1 -1
- package/dist/map/index.js +1 -1
- package/dist/map/index.mjs +1 -1
- package/dist/map/shim.js +1 -1
- package/dist/map/shim.mjs +1 -1
- package/dist/option/Option.d.mts +1 -1
- package/dist/option/Option.d.ts +1 -1
- package/dist/option/Option.js +1 -1
- package/dist/option/Option.mjs +1 -1
- package/dist/option/index.d.mts +1 -1
- package/dist/option/index.d.ts +1 -1
- package/dist/option/index.js +1 -1
- package/dist/option/index.mjs +1 -1
- package/dist/set/Set.d.mts +1 -1
- package/dist/set/Set.d.ts +1 -1
- package/dist/set/Set.js +1 -1
- package/dist/set/Set.mjs +1 -1
- package/dist/set/index.d.mts +1 -1
- package/dist/set/index.d.ts +1 -1
- package/dist/set/index.js +1 -1
- package/dist/set/index.mjs +1 -1
- package/dist/set/shim.js +1 -1
- package/dist/set/shim.mjs +1 -1
- package/dist/try/Try.d.mts +1 -1
- package/dist/try/Try.d.ts +1 -1
- package/dist/try/Try.js +1 -1
- package/dist/try/Try.mjs +1 -1
- package/dist/try/index.d.mts +1 -1
- package/dist/try/index.d.ts +1 -1
- package/dist/try/index.js +1 -1
- package/dist/try/index.mjs +1 -1
- package/dist/tuple/Tuple.d.mts +7 -15
- package/dist/tuple/Tuple.d.ts +7 -15
- package/dist/tuple/Tuple.js +1 -1
- package/dist/tuple/Tuple.mjs +1 -1
- package/dist/tuple/index.d.mts +0 -1
- package/dist/tuple/index.d.ts +0 -1
- package/dist/tuple/index.js +1 -1
- package/dist/tuple/index.mjs +1 -1
- package/dist/util/index.d.mts +1 -1
- package/dist/util/index.d.ts +1 -1
- package/dist/util/index.js +1 -1
- package/dist/util/index.mjs +1 -1
- package/dist/util/isIterable.js +1 -1
- package/dist/util/isIterable.mjs +1 -1
- package/lib/collections/index.d.ts +6 -6
- package/lib/either/Either.d.ts +28 -28
- package/lib/either/index.d.ts +1 -1
- package/lib/error/ParseError.d.ts +6 -2
- package/lib/functor/index.d.ts +10 -10
- package/lib/index.d.ts +7 -4
- package/lib/iterable/Seq.d.ts +27 -24
- package/lib/iterable/index.d.ts +7 -7
- package/lib/list/List.d.ts +19 -21
- package/lib/list/index.d.ts +4 -3
- package/lib/map/Map.d.ts +14 -35
- package/lib/map/index.d.ts +1 -1
- package/lib/option/Option.d.ts +28 -40
- package/lib/option/index.d.ts +6 -5
- package/lib/set/Set.d.ts +15 -18
- package/lib/set/index.d.ts +1 -1
- package/lib/try/Try.d.ts +24 -18
- package/lib/try/index.d.ts +1 -1
- package/lib/tuple/Tuple.d.ts +6 -13
- package/lib/tuple/index.d.ts +5 -1
- package/lib/util/index.d.ts +1 -1
- package/package.json +6 -6
- package/dist/chunk-2XH6TPQK.mjs +0 -1
- package/dist/chunk-3APFKSCC.js +0 -1
- package/dist/chunk-63PL65AF.js +0 -1
- package/dist/chunk-6FZZWNOL.js +0 -1
- package/dist/chunk-74TKYQJS.mjs +0 -0
- package/dist/chunk-CFYIJKWF.mjs +0 -1
- package/dist/chunk-E35CYHY2.mjs +0 -1
- package/dist/chunk-HH4VYR73.js +0 -1
- package/dist/chunk-HOO2EPER.mjs +0 -1
- package/dist/chunk-I4BEM5D2.js +0 -1
- package/dist/chunk-J4OZ7K3I.mjs +0 -1
- package/dist/chunk-JR557W27.mjs +0 -1
- package/dist/chunk-O2XFH626.js +0 -1
- package/dist/chunk-R7GOBZSO.mjs +0 -1
- package/dist/chunk-RLT5VF56.mjs +0 -1
- package/dist/chunk-SKJIJETA.js +0 -1
- package/dist/chunk-TYHKMGLC.mjs +0 -1
- package/dist/chunk-V5UFW2E4.js +0 -1
- package/dist/chunk-XKON5UBC.js +0 -1
- package/dist/chunk-XVHCBGUW.js +0 -1
- package/dist/chunk-Z2XAS3AB.mjs +0 -1
- package/dist/chunk-ZTL76QDL.js +0 -1
- package/dist/index-BIu07QR3.d.ts +0 -232
- package/dist/index-DC8arpKk.d.mts +0 -232
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { Type, Functor } from './functor/index.js';
|
|
2
|
+
import { Tuple } from './tuple/Tuple.js';
|
|
3
|
+
import './tuple/index.js';
|
|
4
|
+
|
|
5
|
+
declare const Some: <T extends Type>(value: T) => Option<T>;
|
|
6
|
+
declare const None: <T extends Type>() => Option<T>;
|
|
7
|
+
type Option<T extends Type> = {
|
|
8
|
+
readonly _tag: "Some" | "None";
|
|
9
|
+
readonly value: T | undefined;
|
|
10
|
+
isEmpty: boolean;
|
|
11
|
+
get(): T;
|
|
12
|
+
getOrElse(defaultValue: T): T;
|
|
13
|
+
orElse(alternative: Option<T>): Option<T>;
|
|
14
|
+
map<U extends Type>(f: (value: T) => U): Option<U>;
|
|
15
|
+
flatMap<U extends Type>(f: (value: T) => Option<U>): Option<U>;
|
|
16
|
+
reduce<U>(f: (acc: U, value: T) => U): U;
|
|
17
|
+
reduceRight<U>(f: (acc: U, value: T) => U): U;
|
|
18
|
+
foldLeft<B>(z: B): (op: (b: B, a: T) => B) => B;
|
|
19
|
+
foldRight<B>(z: B): (op: (a: T, b: B) => B) => B;
|
|
20
|
+
toList(): _Iterable_<T>;
|
|
21
|
+
contains(value: T): boolean;
|
|
22
|
+
size: number;
|
|
23
|
+
valueOf(): {
|
|
24
|
+
_tag: "Some" | "None";
|
|
25
|
+
value?: T;
|
|
26
|
+
};
|
|
27
|
+
toString(): string;
|
|
28
|
+
} & Traversable<T> & Functor<T> & Typeable;
|
|
29
|
+
declare const Option: <T extends Type>(value: T | null | undefined) => Option<T>;
|
|
30
|
+
declare const match$2: <T extends Type, U>(option: Option<T>, patterns: {
|
|
31
|
+
Some: (value: T) => U;
|
|
32
|
+
None: () => U;
|
|
33
|
+
}) => U;
|
|
34
|
+
|
|
35
|
+
declare const option: <T extends Type>(value?: T) => Option<T>;
|
|
36
|
+
declare const some: <T extends Type>(value: T) => Option<T>;
|
|
37
|
+
declare const none: <T extends Type>() => Option<T>;
|
|
38
|
+
|
|
39
|
+
declare const createSeq: <A>(values?: Iterable<A> | _Iterable_<A>) => Seq<A>;
|
|
40
|
+
type Seq<A> = {
|
|
41
|
+
readonly length: number;
|
|
42
|
+
readonly [Symbol.iterator]: () => Iterator<A>;
|
|
43
|
+
map: <B>(f: (a: A) => B) => Seq<B>;
|
|
44
|
+
flatMap: <B>(f: (a: A) => _Iterable_<B>) => Seq<B>;
|
|
45
|
+
forEach: (f: (a: A) => void) => void;
|
|
46
|
+
count: (p: (x: A) => boolean) => number;
|
|
47
|
+
exists: (p: (a: A) => boolean) => boolean;
|
|
48
|
+
filter: (p: (a: A) => boolean) => Seq<A>;
|
|
49
|
+
filterNot: (p: (a: A) => boolean) => Seq<A>;
|
|
50
|
+
find: (p: (a: A) => boolean) => Option<A>;
|
|
51
|
+
readonly head: A;
|
|
52
|
+
readonly headOption: Option<A>;
|
|
53
|
+
readonly isEmpty: boolean;
|
|
54
|
+
readonly size: number;
|
|
55
|
+
toArray: () => A[];
|
|
56
|
+
reduce: (f: (prev: A, curr: A) => A) => A;
|
|
57
|
+
reduceRight: (f: (prev: A, curr: A) => A) => A;
|
|
58
|
+
foldLeft: <B>(z: B) => (op: (b: B, a: A) => B) => B;
|
|
59
|
+
foldRight: <B>(z: B) => (op: (a: A, b: B) => B) => B;
|
|
60
|
+
valueOf: () => {
|
|
61
|
+
values: A[];
|
|
62
|
+
};
|
|
63
|
+
} & _Iterable_<A>;
|
|
64
|
+
declare const Seq: <A>(values?: Iterable<A> | _Iterable_<A>) => Seq<A>;
|
|
65
|
+
|
|
66
|
+
type _Iterable_<A extends Type> = {
|
|
67
|
+
count(p: (x: A) => boolean): number;
|
|
68
|
+
find(p: (a: A) => boolean): Option<A>;
|
|
69
|
+
forEach(f: (a: A) => void): void;
|
|
70
|
+
exists(p: (a: A) => boolean): boolean;
|
|
71
|
+
filter(p: (a: A) => boolean): _Iterable_<A>;
|
|
72
|
+
filterNot(p: (a: A) => boolean): _Iterable_<A>;
|
|
73
|
+
reduce(f: (b: A, a: A) => A): A;
|
|
74
|
+
reduceRight(f: (b: A, a: A) => A): A;
|
|
75
|
+
foldLeft<B>(z: B): (op: (b: B, a: A) => B) => B;
|
|
76
|
+
foldRight<B>(z: B): (op: (a: A, b: B) => B) => B;
|
|
77
|
+
get head(): A;
|
|
78
|
+
get headOption(): Option<A>;
|
|
79
|
+
get isEmpty(): boolean;
|
|
80
|
+
map<B extends Type>(f: (a: A) => B): _Iterable_<B>;
|
|
81
|
+
flatMap<B extends Type>(f: (a: A) => _Iterable_<B> | Iterable<B>): _Iterable_<B>;
|
|
82
|
+
get size(): number;
|
|
83
|
+
toArray(): readonly A[];
|
|
84
|
+
} & Functor<A>;
|
|
85
|
+
|
|
86
|
+
type Set<A> = {
|
|
87
|
+
add: (value: A) => Set<A>;
|
|
88
|
+
remove: (value: A) => Set<A>;
|
|
89
|
+
contains: (value: A) => boolean;
|
|
90
|
+
has: (value: A) => boolean;
|
|
91
|
+
map: <B>(f: (a: A) => B) => Set<B>;
|
|
92
|
+
flatMap: <B>(f: (a: A) => _Iterable_<B>) => Set<B>;
|
|
93
|
+
toList: () => List<A>;
|
|
94
|
+
toSet: () => Set<A>;
|
|
95
|
+
toString: () => string;
|
|
96
|
+
} & _Iterable_<A> & Collection<A>;
|
|
97
|
+
declare const Set: <A>(iterable?: Iterable<A> | _Iterable_<A>) => Set<A>;
|
|
98
|
+
|
|
99
|
+
type Converters<A> = {
|
|
100
|
+
toList(): List<A>;
|
|
101
|
+
toSet(): Set<A>;
|
|
102
|
+
toString(): string;
|
|
103
|
+
};
|
|
104
|
+
type Collection<A> = Converters<A>;
|
|
105
|
+
|
|
106
|
+
type List<A> = {
|
|
107
|
+
add: (item: A) => List<A>;
|
|
108
|
+
map: <B>(f: (a: A) => B) => List<B>;
|
|
109
|
+
flatMap: <B>(f: (a: A) => _Iterable_<B>) => List<B>;
|
|
110
|
+
remove: (value: A) => List<A>;
|
|
111
|
+
contains: (value: A) => boolean;
|
|
112
|
+
removeAt: (index: number) => List<A>;
|
|
113
|
+
get: (index: number) => Option<A>;
|
|
114
|
+
concat: (other: List<A>) => List<A>;
|
|
115
|
+
toList: () => List<A>;
|
|
116
|
+
toSet: () => Set<A>;
|
|
117
|
+
toString: () => string;
|
|
118
|
+
valueOf: () => {
|
|
119
|
+
values: A[];
|
|
120
|
+
};
|
|
121
|
+
} & ArrayLike<A> & _Iterable_<A> & Collection<A>;
|
|
122
|
+
declare const List: <A>(values?: Iterable<A> | _Iterable_<A>) => List<A>;
|
|
123
|
+
|
|
124
|
+
declare const list: <T extends Type>(items: T[] | undefined) => List<T>;
|
|
125
|
+
|
|
126
|
+
type Either<L extends Type, R extends Type> = {
|
|
127
|
+
readonly _tag: "Left" | "Right";
|
|
128
|
+
value: L | R;
|
|
129
|
+
isLeft: () => boolean;
|
|
130
|
+
isRight: () => boolean;
|
|
131
|
+
map: <U extends Type>(f: (value: R) => U) => Either<L, U>;
|
|
132
|
+
flatMap: <U extends Type>(f: (value: R) => Either<L, U>) => Either<L, U>;
|
|
133
|
+
toOption: () => Option<R>;
|
|
134
|
+
toList: () => List<R>;
|
|
135
|
+
valueOf: () => {
|
|
136
|
+
_tag: "Left" | "Right";
|
|
137
|
+
value: L | R;
|
|
138
|
+
};
|
|
139
|
+
toString: () => string;
|
|
140
|
+
} & Functor<R> & Typeable;
|
|
141
|
+
declare const Right: <L, R>(value: R) => Either<L, R>;
|
|
142
|
+
declare const Left: <L, R>(value: L) => Either<L, R>;
|
|
143
|
+
declare const isRight: <L, R>(either: Either<L, R>) => either is Either<L, R> & {
|
|
144
|
+
value: R;
|
|
145
|
+
};
|
|
146
|
+
declare const isLeft: <L, R>(either: Either<L, R>) => either is Either<L, R> & {
|
|
147
|
+
value: L;
|
|
148
|
+
};
|
|
149
|
+
declare const tryCatch: <L, R>(f: () => R, onError: (error: unknown) => L) => Either<L, R>;
|
|
150
|
+
declare const match$1: <L, R, U>(either: Either<L, R>, patterns: {
|
|
151
|
+
Left: (value: L) => U;
|
|
152
|
+
Right: (value: R) => U;
|
|
153
|
+
}) => U;
|
|
154
|
+
|
|
155
|
+
declare const left: <L, R>(value: L) => Either<L, R>;
|
|
156
|
+
declare const right: <L, R>(value: R) => Either<L, R>;
|
|
157
|
+
|
|
158
|
+
type SafeTraversable<K, V> = Omit<Traversable<Tuple<[K, V]>>, "map" | "flatMap">;
|
|
159
|
+
type Map<K, V> = {
|
|
160
|
+
add(item: Tuple<[K, V]>): Map<K, V>;
|
|
161
|
+
remove(value: K): Map<K, V>;
|
|
162
|
+
map<U>(f: (value: V) => U): Map<K, U>;
|
|
163
|
+
flatMap<K2, V2>(f: (entry: Tuple<[K, V]>) => _Iterable_<[K2, V2]>): Map<K2, V2>;
|
|
164
|
+
get(key: K): Option<V>;
|
|
165
|
+
getOrElse(key: K, defaultValue: V): V;
|
|
166
|
+
orElse(key: K, alternative: Option<V>): Option<V>;
|
|
167
|
+
} & SafeTraversable<K, V> & Collection<Tuple<[K, V]>>;
|
|
168
|
+
declare const Map: <K, V>(entries?: readonly (readonly [K, V])[] | IterableIterator<[K, V]> | null) => Map<K, V>;
|
|
169
|
+
|
|
170
|
+
type Try<T> = {
|
|
171
|
+
readonly _tag: "Success" | "Failure";
|
|
172
|
+
readonly value: T | undefined;
|
|
173
|
+
readonly error: Error | undefined;
|
|
174
|
+
isSuccess: () => boolean;
|
|
175
|
+
isFailure: () => boolean;
|
|
176
|
+
getOrElse: (defaultValue: T) => T;
|
|
177
|
+
orElse: (alternative: Try<T>) => Try<T>;
|
|
178
|
+
toEither: () => Either<Error, T>;
|
|
179
|
+
map: <U>(f: (value: T) => U) => Try<U>;
|
|
180
|
+
flatMap: <U>(f: (value: T) => Try<U>) => Try<U>;
|
|
181
|
+
valueOf: () => {
|
|
182
|
+
_tag: "Success" | "Failure";
|
|
183
|
+
value?: T;
|
|
184
|
+
error?: Error;
|
|
185
|
+
};
|
|
186
|
+
toString: () => string;
|
|
187
|
+
} & Typeable;
|
|
188
|
+
declare const Try: <T>(f: () => T) => Try<T>;
|
|
189
|
+
declare const match: <T, U>(tryValue: Try<T>, patterns: {
|
|
190
|
+
Success: (value: T) => U;
|
|
191
|
+
Failure: (error: Error) => U;
|
|
192
|
+
}) => U;
|
|
193
|
+
|
|
194
|
+
type Traversable<A extends Type> = Functor<A> & {
|
|
195
|
+
get size(): number;
|
|
196
|
+
get isEmpty(): boolean;
|
|
197
|
+
contains(value: A): boolean;
|
|
198
|
+
reduce(f: (b: A, a: A) => A): A;
|
|
199
|
+
reduceRight(f: (b: A, a: A) => A): A;
|
|
200
|
+
foldLeft<B>(z: B): (op: (b: B, a: A) => B) => B;
|
|
201
|
+
foldRight<B>(z: B): (op: (a: A, b: B) => B) => B;
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
type Typeable = {
|
|
205
|
+
_tag: Type;
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
export { type Converters as C, type Either as E, List as L, Map as M, None as N, Option as O, Right as R, Some as S, Try as T, type _Iterable_ as _, Seq as a, Set as b, createSeq as c, type Collection as d, Left as e, isLeft as f, match$1 as g, left as h, isRight as i, match as j, type Traversable as k, list as l, match$2 as m, none as n, option as o, type Typeable as p, right as r, some as s, tryCatch as t };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { E as Either,
|
|
1
|
+
export { AbstractFunctor, ArrayFunctor, ArrayType, Functor, SingleType, Type } from './functor/index.mjs';
|
|
2
|
+
export { E as Either, e as Left, L as List, M as Map, N as None, O as Option, R as Right, a as Seq, b as Set, S as Some, k as Traversable, T as Try, p as Typeable, _ as _Iterable_, h as left, l as list, n as none, o as option, r as right, s as some } from './index-BB5a793T.mjs';
|
|
3
3
|
export { t, tuple } from './tuple/index.mjs';
|
|
4
|
-
export { Tuple
|
|
4
|
+
export { Tuple } from './tuple/Tuple.mjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { E as Either,
|
|
1
|
+
export { AbstractFunctor, ArrayFunctor, ArrayType, Functor, SingleType, Type } from './functor/index.js';
|
|
2
|
+
export { E as Either, e as Left, L as List, M as Map, N as None, O as Option, R as Right, a as Seq, b as Set, S as Some, k as Traversable, T as Try, p as Typeable, _ as _Iterable_, h as left, l as list, n as none, o as option, r as right, s as some } from './index-DyWcaZaG.js';
|
|
3
3
|
export { t, tuple } from './tuple/index.js';
|
|
4
|
-
export { Tuple
|
|
4
|
+
export { Tuple } from './tuple/Tuple.js';
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-6BEXQNLZ.js');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-6BEXQNLZ.js');var _chunkPMZTOIT2js = require('./chunk-PMZTOIT2.js');require('./chunk-ZOH672YH.js');var _chunkREXFLQTJjs = require('./chunk-REXFLQTJ.js');var _chunkE3BAZBU2js = require('./chunk-E3BAZBU2.js');var _chunkOXLZ6UIZjs = require('./chunk-OXLZ6UIZ.js');require('./chunk-5VTXJIR3.js');var _chunk4PGXHDASjs = require('./chunk-4PGXHDAS.js');var _chunkTVCOFH5Ijs = require('./chunk-TVCOFH5I.js');var _chunkKWPKGISBjs = require('./chunk-KWPKGISB.js');require('./chunk-3VJERXBP.js');require('./chunk-XORABVON.js');var _chunkWDHUQRFTjs = require('./chunk-WDHUQRFT.js');require('./chunk-BNNK42JC.js');exports.Left = _chunkTVCOFH5Ijs.b; exports.List = _chunkKWPKGISBjs.b; exports.Map = _chunkREXFLQTJjs.a; exports.None = _chunkWDHUQRFTjs.b; exports.Option = _chunkWDHUQRFTjs.c; exports.Right = _chunkTVCOFH5Ijs.a; exports.Seq = _chunkWDHUQRFTjs.i; exports.Set = _chunkKWPKGISBjs.a; exports.Some = _chunkWDHUQRFTjs.a; exports.Try = _chunkPMZTOIT2js.a; exports.Tuple = _chunkOXLZ6UIZjs.a; exports.left = _chunk4PGXHDASjs.a; exports.list = _chunkKWPKGISBjs.c; exports.none = _chunkWDHUQRFTjs.g; exports.option = _chunkWDHUQRFTjs.e; exports.right = _chunk4PGXHDASjs.b; exports.some = _chunkWDHUQRFTjs.f; exports.t = _chunkE3BAZBU2js.a; exports.tuple = _chunkE3BAZBU2js.b;
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-Q4H3PCBH.mjs";import{a as
|
|
1
|
+
import"./chunk-Q4H3PCBH.mjs";import{a as d}from"./chunk-ZMF3MVW7.mjs";import"./chunk-3OHJLCSR.mjs";import{a as c}from"./chunk-VUD7L2T6.mjs";import{a as i,b as u}from"./chunk-4AEODSGH.mjs";import{a as y}from"./chunk-2I2NKDFN.mjs";import"./chunk-377WQNCB.mjs";import{a as n,b as l}from"./chunk-3Y43FJKZ.mjs";import{a as B,b}from"./chunk-HJAAA6CD.mjs";import{a as A,b as a,c as x}from"./chunk-GPS3OL5F.mjs";import"./chunk-HA5XD5KC.mjs";import"./chunk-V2J3R5IU.mjs";import{a as e,b as o,c as r,e as t,f as p,g as f,i as m}from"./chunk-FMHIRYL5.mjs";import"./chunk-RRAIFS3D.mjs";export{b as Left,a as List,c as Map,o as None,r as Option,B as Right,m as Seq,A as Set,e as Some,d as Try,y as Tuple,n as left,x as list,f as none,t as option,l as right,p as some,i as t,u as tuple};
|
package/dist/iterable/Seq.d.mts
CHANGED
package/dist/iterable/Seq.d.ts
CHANGED
package/dist/iterable/Seq.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWDHUQRFTjs = require('../chunk-WDHUQRFT.js');require('../chunk-BNNK42JC.js');exports.Seq = _chunkWDHUQRFTjs.i; exports.createSeq = _chunkWDHUQRFTjs.h;
|
package/dist/iterable/Seq.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{h as a,i as b}from"../chunk-FMHIRYL5.mjs";import"../chunk-RRAIFS3D.mjs";export{b as Seq,a as createSeq};
|
package/dist/iterable/index.d.ts
CHANGED
package/dist/iterable/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWDHUQRFTjs = require('../chunk-WDHUQRFT.js');require('../chunk-BNNK42JC.js');exports.Seq = _chunkWDHUQRFTjs.i;
|
package/dist/iterable/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{i as a}from"../chunk-FMHIRYL5.mjs";import"../chunk-RRAIFS3D.mjs";export{a as Seq};
|
package/dist/list/List.d.mts
CHANGED
package/dist/list/List.d.ts
CHANGED
package/dist/list/List.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKWPKGISBjs = require('../chunk-KWPKGISB.js');require('../chunk-3VJERXBP.js');require('../chunk-WDHUQRFT.js');require('../chunk-BNNK42JC.js');exports.List = _chunkKWPKGISBjs.b;
|
package/dist/list/List.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a}from"../chunk-
|
|
1
|
+
import{b as a}from"../chunk-GPS3OL5F.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-FMHIRYL5.mjs";import"../chunk-RRAIFS3D.mjs";export{a as List};
|
package/dist/list/index.d.mts
CHANGED
package/dist/list/index.d.ts
CHANGED
package/dist/list/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKWPKGISBjs = require('../chunk-KWPKGISB.js');require('../chunk-3VJERXBP.js');require('../chunk-WDHUQRFT.js');require('../chunk-BNNK42JC.js');exports.List = _chunkKWPKGISBjs.b; exports.list = _chunkKWPKGISBjs.c;
|
package/dist/list/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as a,c as b}from"../chunk-
|
|
1
|
+
import{b as a,c as b}from"../chunk-GPS3OL5F.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-FMHIRYL5.mjs";import"../chunk-RRAIFS3D.mjs";export{a as List,b as list};
|
package/dist/map/Map.d.mts
CHANGED
package/dist/map/Map.d.ts
CHANGED
package/dist/map/Map.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkREXFLQTJjs = require('../chunk-REXFLQTJ.js');require('../chunk-E3BAZBU2.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-5VTXJIR3.js');require('../chunk-KWPKGISB.js');require('../chunk-3VJERXBP.js');require('../chunk-WDHUQRFT.js');require('../chunk-BNNK42JC.js');exports.Map = _chunkREXFLQTJjs.a;
|
package/dist/map/Map.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-VUD7L2T6.mjs";import"../chunk-4AEODSGH.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-GPS3OL5F.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-FMHIRYL5.mjs";import"../chunk-RRAIFS3D.mjs";export{a as Map};
|
package/dist/map/index.d.mts
CHANGED
package/dist/map/index.d.ts
CHANGED
package/dist/map/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-ZOH672YH.js');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-ZOH672YH.js');var _chunkREXFLQTJjs = require('../chunk-REXFLQTJ.js');require('../chunk-E3BAZBU2.js');require('../chunk-OXLZ6UIZ.js');require('../chunk-5VTXJIR3.js');require('../chunk-KWPKGISB.js');require('../chunk-3VJERXBP.js');require('../chunk-WDHUQRFT.js');require('../chunk-BNNK42JC.js');exports.Map = _chunkREXFLQTJjs.a;
|
package/dist/map/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunk-3OHJLCSR.mjs";import{a}from"../chunk-
|
|
1
|
+
import"../chunk-3OHJLCSR.mjs";import{a}from"../chunk-VUD7L2T6.mjs";import"../chunk-4AEODSGH.mjs";import"../chunk-2I2NKDFN.mjs";import"../chunk-377WQNCB.mjs";import"../chunk-GPS3OL5F.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-FMHIRYL5.mjs";import"../chunk-RRAIFS3D.mjs";export{a as Map};
|
package/dist/map/shim.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5VTXJIR3js = require('../chunk-5VTXJIR3.js');
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk5VTXJIR3js = require('../chunk-5VTXJIR3.js');exports.ESMap = _chunk5VTXJIR3js.a;
|
package/dist/map/shim.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-377WQNCB.mjs";
|
|
1
|
+
import{a}from"../chunk-377WQNCB.mjs";export{a as ESMap};
|
package/dist/option/Option.d.mts
CHANGED
package/dist/option/Option.d.ts
CHANGED
package/dist/option/Option.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWDHUQRFTjs = require('../chunk-WDHUQRFT.js');require('../chunk-BNNK42JC.js');exports.None = _chunkWDHUQRFTjs.b; exports.Option = _chunkWDHUQRFTjs.c; exports.Some = _chunkWDHUQRFTjs.a; exports.match = _chunkWDHUQRFTjs.d;
|
package/dist/option/Option.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b}from"../chunk-
|
|
1
|
+
import{a,b,c,d}from"../chunk-FMHIRYL5.mjs";import"../chunk-RRAIFS3D.mjs";export{b as None,c as Option,a as Some,d as match};
|
package/dist/option/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { N as None, S as Some, _ as _Option_, n as none, o as option, s as some } from '../index-DC8arpKk.mjs';
|
|
2
1
|
import '../functor/index.mjs';
|
|
2
|
+
export { N as None, O as Option, S as Some, n as none, o as option, s as some } from '../index-BB5a793T.mjs';
|
|
3
3
|
import '../tuple/Tuple.mjs';
|
|
4
4
|
import '../tuple/index.mjs';
|
package/dist/option/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { N as None, S as Some, _ as _Option_, n as none, o as option, s as some } from '../index-BIu07QR3.js';
|
|
2
1
|
import '../functor/index.js';
|
|
2
|
+
export { N as None, O as Option, S as Some, n as none, o as option, s as some } from '../index-DyWcaZaG.js';
|
|
3
3
|
import '../tuple/Tuple.js';
|
|
4
4
|
import '../tuple/index.js';
|
package/dist/option/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWDHUQRFTjs = require('../chunk-WDHUQRFT.js');require('../chunk-BNNK42JC.js');exports.None = _chunkWDHUQRFTjs.b; exports.Option = _chunkWDHUQRFTjs.c; exports.Some = _chunkWDHUQRFTjs.a; exports.none = _chunkWDHUQRFTjs.g; exports.option = _chunkWDHUQRFTjs.e; exports.some = _chunkWDHUQRFTjs.f;
|
package/dist/option/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e}from"../chunk-
|
|
1
|
+
import{a,b,c,e as d,f as e,g as f}from"../chunk-FMHIRYL5.mjs";import"../chunk-RRAIFS3D.mjs";export{b as None,c as Option,a as Some,f as none,d as option,e as some};
|
package/dist/set/Set.d.mts
CHANGED
package/dist/set/Set.d.ts
CHANGED
package/dist/set/Set.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKWPKGISBjs = require('../chunk-KWPKGISB.js');require('../chunk-3VJERXBP.js');require('../chunk-WDHUQRFT.js');require('../chunk-BNNK42JC.js');exports.Set = _chunkKWPKGISBjs.a;
|
package/dist/set/Set.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-GPS3OL5F.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-FMHIRYL5.mjs";import"../chunk-RRAIFS3D.mjs";export{a as Set};
|
package/dist/set/index.d.mts
CHANGED
package/dist/set/index.d.ts
CHANGED
package/dist/set/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKWPKGISBjs = require('../chunk-KWPKGISB.js');require('../chunk-3VJERXBP.js');require('../chunk-WDHUQRFT.js');require('../chunk-BNNK42JC.js');exports.Set = _chunkKWPKGISBjs.a;
|
package/dist/set/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-GPS3OL5F.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-FMHIRYL5.mjs";import"../chunk-RRAIFS3D.mjs";export{a as Set};
|
package/dist/set/shim.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3VJERXBPjs = require('../chunk-3VJERXBP.js');
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3VJERXBPjs = require('../chunk-3VJERXBP.js');exports.ESSet = _chunk3VJERXBPjs.a;
|
package/dist/set/shim.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-HA5XD5KC.mjs";
|
|
1
|
+
import{a}from"../chunk-HA5XD5KC.mjs";export{a as ESSet};
|
package/dist/try/Try.d.mts
CHANGED
package/dist/try/Try.d.ts
CHANGED
package/dist/try/Try.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkPMZTOIT2js = require('../chunk-PMZTOIT2.js');require('../chunk-4PGXHDAS.js');require('../chunk-TVCOFH5I.js');require('../chunk-KWPKGISB.js');require('../chunk-3VJERXBP.js');require('../chunk-WDHUQRFT.js');require('../chunk-BNNK42JC.js');exports.Try = _chunkPMZTOIT2js.a; exports.match = _chunkPMZTOIT2js.b;
|
package/dist/try/Try.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a,b}from"../chunk-ZMF3MVW7.mjs";import"../chunk-3Y43FJKZ.mjs";import"../chunk-HJAAA6CD.mjs";import"../chunk-GPS3OL5F.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-FMHIRYL5.mjs";import"../chunk-RRAIFS3D.mjs";export{a as Try,b as match};
|
package/dist/try/index.d.mts
CHANGED
package/dist/try/index.d.ts
CHANGED
package/dist/try/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-6BEXQNLZ.js');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../chunk-6BEXQNLZ.js');var _chunkPMZTOIT2js = require('../chunk-PMZTOIT2.js');require('../chunk-4PGXHDAS.js');require('../chunk-TVCOFH5I.js');require('../chunk-KWPKGISB.js');require('../chunk-3VJERXBP.js');require('../chunk-WDHUQRFT.js');require('../chunk-BNNK42JC.js');exports.Try = _chunkPMZTOIT2js.a;
|
package/dist/try/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../chunk-Q4H3PCBH.mjs";import{a}from"../chunk-
|
|
1
|
+
import"../chunk-Q4H3PCBH.mjs";import{a}from"../chunk-ZMF3MVW7.mjs";import"../chunk-3Y43FJKZ.mjs";import"../chunk-HJAAA6CD.mjs";import"../chunk-GPS3OL5F.mjs";import"../chunk-HA5XD5KC.mjs";import"../chunk-FMHIRYL5.mjs";import"../chunk-RRAIFS3D.mjs";export{a as Try};
|
package/dist/tuple/Tuple.d.mts
CHANGED
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
import { ArrayType,
|
|
1
|
+
import { ArrayType, ArrayFunctor } from '../functor/index.mjs';
|
|
2
2
|
|
|
3
|
-
type
|
|
4
|
-
get(index:
|
|
5
|
-
getAs<U>(index: number, f?: (item: T) => boolean): U;
|
|
6
|
-
map<U extends any[]>(f: (value: T) => U): _Tuple_<U>;
|
|
7
|
-
flatMap<U extends any[]>(f: (value: T) => _Tuple_<U>): _Tuple_<U>;
|
|
8
|
-
toArray(): T;
|
|
9
|
-
};
|
|
10
|
-
declare class Tuple<T extends ArrayType> implements _Tuple_<T> {
|
|
11
|
-
private readonly values;
|
|
12
|
-
constructor(values: T);
|
|
3
|
+
type Tuple<T extends ArrayType> = {
|
|
4
|
+
get<K extends number>(index: K): T[K];
|
|
13
5
|
map<U extends ArrayType>(f: (value: T) => U): Tuple<U>;
|
|
14
6
|
flatMap<U extends ArrayType>(f: (value: T) => Tuple<U>): Tuple<U>;
|
|
15
|
-
get(index: number): T[number];
|
|
16
|
-
getAs<U>(index: number, f?: (item: T) => boolean): U;
|
|
17
7
|
toArray(): T;
|
|
18
|
-
|
|
8
|
+
[Symbol.iterator](): Iterator<T[number]>;
|
|
9
|
+
} & ArrayFunctor<T>;
|
|
10
|
+
declare const Tuple: <T extends ArrayType>(values: T) => Tuple<T>;
|
|
19
11
|
|
|
20
|
-
export { Tuple
|
|
12
|
+
export { Tuple };
|