@@ -10,10 +10,6 @@ export class CustomType {
10
10
}
11
11
}
12
12
13
- export function isCustomType ( value ) {
14
- return value instanceof CustomType ;
15
- }
16
-
17
13
export class List {
18
14
static fromArray ( array , tail ) {
19
15
let t = tail || new Empty ( ) ;
@@ -57,14 +53,6 @@ export class List {
57
53
}
58
54
}
59
55
60
- export function isList ( value ) {
61
- return value instanceof List ;
62
- }
63
-
64
- export function listToArray ( list ) {
65
- return list . toArray ( ) ;
66
- }
67
-
68
56
// @internal
69
57
export function prepend ( element , tail ) {
70
58
return new NonEmpty ( element , tail ) ;
@@ -119,10 +107,10 @@ export function List$isNonEmpty(value) {
119
107
return value instanceof NonEmpty ;
120
108
}
121
109
122
- export function List$NonEmpty$head ( value ) {
110
+ export function List$NonEmpty$first ( value ) {
123
111
return value . head ;
124
112
}
125
- export function List$NonEmpty$tail ( value ) {
113
+ export function List$NonEmpty$rest ( value ) {
126
114
return value . tail ;
127
115
}
128
116
@@ -349,19 +337,6 @@ export function BitArray$isBitArray(value) {
349
337
return value instanceof BitArray ;
350
338
}
351
339
352
- export function BitArray$BitArray$bitSize ( value ) {
353
- return value . bitSize ;
354
- }
355
- export function BitArray$BitArray$byteSize ( value ) {
356
- return value . byteSize ;
357
- }
358
- export function BitArray$BitArray$bitOffset ( value ) {
359
- return value . bitOffset ;
360
- }
361
- export function BitArray$BitArray$rawBuffer ( value ) {
362
- return value . rawBuffer ;
363
- }
364
-
365
340
/**
366
341
* Returns the nth byte in the given buffer, after applying the specified bit
367
342
* offset. If the index is out of bounds then zero is returned.
@@ -1510,10 +1485,6 @@ export class Result extends CustomType {
1510
1485
}
1511
1486
}
1512
1487
1513
- export function isResult ( value ) {
1514
- return value instanceof Result ;
1515
- }
1516
-
1517
1488
export class Ok extends Result {
1518
1489
constructor ( value ) {
1519
1490
super ( ) ;
0 commit comments