@sheetxl/formulas 0.8.0-beta.1 → 0.8.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/README.md +15 -22
  2. package/browser/esm/{BzNFsi4RXuJrn_1n.mjs → -sN4SmS9cUOrcjVR.mjs} +1 -1
  3. package/browser/esm/{B7750ljsJF3qA9kU.mjs → 0Q46gxHg8afOLJ7K.mjs} +37 -3
  4. package/{node/esm/CG1Fn8D-2DrQZoD5.mjs → browser/esm/B-Ig6HWcV53g7Zy0.mjs} +1 -1
  5. package/browser/esm/{BYRjnggsufwbb27W.mjs → B3LvTqivuAJYZW9O.mjs} +1 -1
  6. package/browser/esm/{BR2ai1V5dGPphpRf.mjs → B52kG70ukWJKrVHl.mjs} +2 -5
  7. package/{node/esm/CltdofO5ik8g_wQ8.mjs → browser/esm/B9GCCzx3ZtHrtgsZ.mjs} +1 -1
  8. package/{node/esm/HgVmqQQhKQ_2v0HD.mjs → browser/esm/BCRhRyTDe0QO3_TF.mjs} +2 -2
  9. package/browser/esm/{Bsb5i9Jq-Q8RTmvi.mjs → BTygNwyrCzzpikEl.mjs} +1 -1
  10. package/{node/esm/-f-RKKojiLg94hp9.mjs → browser/esm/C1TlAj8cFI90ziZT.mjs} +51 -11
  11. package/{node/esm/CkG4LZN-kb7plKXG.mjs → browser/esm/C2WtsJFzD2GtwSHc.mjs} +69 -4
  12. package/browser/esm/{CVv3DuciDQrnFFeu.mjs → C2nw0NszguSU0idO.mjs} +1 -1
  13. package/browser/esm/{B3pEie3jQN0SvV5B.mjs → CXDwT-uLbi_ZUF6Q.mjs} +1 -1
  14. package/browser/esm/{BM1YhvA2ppUZ3QLB.mjs → CXvEGkvOOLo4v17T.mjs} +1 -1
  15. package/browser/esm/{D2miaIrotHbpdWei.mjs → CYtUFqOZCtbGw6Sa.mjs} +1 -1
  16. package/browser/esm/{0amsHACCOHE_JjXI.mjs → CpGJ_hA0h7CW4Jwu.mjs} +1 -1
  17. package/{node/esm/CCGjvL3YYwY09qF-.mjs → browser/esm/CrfZkfvKRkK2qzpP.mjs} +1 -1
  18. package/browser/esm/{DKFABgVKeBMflym9.mjs → D-w_d2PrWN8kwM-Z.mjs} +1 -1
  19. package/browser/esm/{Cdl7ZalV6WPZHHRE.mjs → DG5YNbA9Ya6Uu3DG.mjs} +1 -1
  20. package/browser/esm/{DtqLXxtPFISlNoUd.mjs → DO9cbfqY2roOBQQi.mjs} +1 -1
  21. package/{node/esm/CWAtVXxcIz86XLzE.mjs → browser/esm/DYoyWWN86dEdpzVg.mjs} +1 -1
  22. package/{node/esm/Ct1gudv1TKk-5FMO.mjs → browser/esm/D_PYZQxUASNNORTU.mjs} +48 -2
  23. package/browser/esm/{Cyvobf2wi0quDD3U.mjs → KekfJtUQq6sPOmPq.mjs} +1 -1
  24. package/browser/esm/{C7mAHEhFYDwSEU6O.mjs → PDRj7r-fmSBrQgPS.mjs} +1 -1
  25. package/browser/esm/index.mjs +5125 -5831
  26. package/licenses/dependencies.txt +0 -33
  27. package/node/esm/{BzNFsi4RXuJrn_1n.mjs → -sN4SmS9cUOrcjVR.mjs} +1 -1
  28. package/node/esm/{B7750ljsJF3qA9kU.mjs → 0Q46gxHg8afOLJ7K.mjs} +37 -3
  29. package/{browser/esm/CG1Fn8D-2DrQZoD5.mjs → node/esm/B-Ig6HWcV53g7Zy0.mjs} +1 -1
  30. package/node/esm/{BR2ai1V5dGPphpRf.mjs → B52kG70ukWJKrVHl.mjs} +2 -5
  31. package/{browser/esm/CltdofO5ik8g_wQ8.mjs → node/esm/B9GCCzx3ZtHrtgsZ.mjs} +1 -1
  32. package/{browser/esm/HgVmqQQhKQ_2v0HD.mjs → node/esm/BCRhRyTDe0QO3_TF.mjs} +2 -2
  33. package/node/esm/{DxRD19RVMzj2YvKF.mjs → BN0QCtL-dZU8U-hd.mjs} +1 -1
  34. package/node/esm/{B8rSUcOwH6g4MUgm.mjs → Bp4XujtHH5z4dKlz.mjs} +1 -1
  35. package/{browser/esm/-f-RKKojiLg94hp9.mjs → node/esm/C--VBbIp253pJfw9.mjs} +51 -11
  36. package/node/esm/{ZUay0bTGgyrF8e04.mjs → C-jlV3objhN9hpyt.mjs} +1 -1
  37. package/node/esm/{DDajoVNkJB39_Fkx.mjs → C1Qq-yVzO0uZUnVb.mjs} +1 -1
  38. package/{browser/esm/CkG4LZN-kb7plKXG.mjs → node/esm/C2WtsJFzD2GtwSHc.mjs} +69 -4
  39. package/node/esm/{CVv3DuciDQrnFFeu.mjs → C2nw0NszguSU0idO.mjs} +1 -1
  40. package/node/esm/{D2miaIrotHbpdWei.mjs → CYtUFqOZCtbGw6Sa.mjs} +1 -1
  41. package/node/esm/{2TCIoMd-SYs6i4-N.mjs → Cf28UVIhJr5Y-_24.mjs} +1 -1
  42. package/{browser/esm/Ct1gudv1TKk-5FMO.mjs → node/esm/CkO4Hx9aLq7m3emI.mjs} +48 -2
  43. package/{browser/esm/CCGjvL3YYwY09qF-.mjs → node/esm/CrfZkfvKRkK2qzpP.mjs} +1 -1
  44. package/node/esm/{DKFABgVKeBMflym9.mjs → D-w_d2PrWN8kwM-Z.mjs} +1 -1
  45. package/node/esm/{Cdl7ZalV6WPZHHRE.mjs → DG5YNbA9Ya6Uu3DG.mjs} +1 -1
  46. package/node/esm/{DtqLXxtPFISlNoUd.mjs → DO9cbfqY2roOBQQi.mjs} +1 -1
  47. package/{browser/esm/CWAtVXxcIz86XLzE.mjs → node/esm/DYoyWWN86dEdpzVg.mjs} +1 -1
  48. package/node/esm/{Cyvobf2wi0quDD3U.mjs → KekfJtUQq6sPOmPq.mjs} +1 -1
  49. package/node/esm/{C7mAHEhFYDwSEU6O.mjs → PDRj7r-fmSBrQgPS.mjs} +1 -1
  50. package/node/esm/index.mjs +5787 -4658
  51. package/package.json +6 -8
  52. package/types/src/.generated/decl/dateTime/Date.decl.d.ts +2 -1
  53. package/types/src/.generated/decl/information/Information.decl.d.ts +2 -1
  54. package/types/src/.generated/decl/lookupReference/Reference.decl.d.ts +2 -1
  55. package/types/src/.generated/decl/mathTrig/Math.decl.d.ts +2 -1
  56. package/types/src/.generated/desc/dateTime/Date.desc.d.ts +2 -1
  57. package/types/src/.generated/desc/information/Information.desc.d.ts +2 -1
  58. package/types/src/.generated/desc/lookupReference/Reference.desc.d.ts +2 -1
  59. package/types/src/.generated/desc/mathTrig/Math.desc.d.ts +2 -1
  60. package/types/src/_utils/AValues.d.ts +30 -0
  61. package/types/src/_utils/AggregateIFS.d.ts +3 -1
  62. package/types/src/_utils/Arithmetic.d.ts +36 -0
  63. package/types/src/_utils/Combinatorics.d.ts +20 -0
  64. package/types/src/_utils/Distributions.d.ts +94 -0
  65. package/types/src/_utils/Errors.d.ts +1 -20
  66. package/types/src/_utils/FirstCell.d.ts +32 -0
  67. package/types/src/_utils/Matrix.d.ts +31 -0
  68. package/types/src/_utils/SpecialFunctions.d.ts +91 -0
  69. package/types/src/_utils/X87.d.ts +28 -0
  70. package/types/src/database/Database.d.ts +25 -25
  71. package/types/src/dateTime/Date.d.ts +250 -41
  72. package/types/src/engineering/Bessel.d.ts +9 -9
  73. package/types/src/engineering/Bitwise.d.ts +35 -35
  74. package/types/src/engineering/Convert.d.ts +3 -3
  75. package/types/src/engineering/Engineering.d.ts +5 -5
  76. package/types/src/engineering/Error.d.ts +9 -9
  77. package/types/src/engineering/Imaginary.d.ts +54 -54
  78. package/types/src/information/Information.d.ts +118 -49
  79. package/types/src/japanese/Date.d.ts +2 -2
  80. package/types/src/japanese/Text.d.ts +1 -1
  81. package/types/src/logical/Logical.d.ts +45 -39
  82. package/types/src/lookupReference/Reference.d.ts +212 -86
  83. package/types/src/mathTrig/Math.d.ts +499 -152
  84. package/types/src/mathTrig/Trig.d.ts +26 -22
  85. package/types/src/operators/Operators.d.ts +15 -15
  86. package/types/src/statistical/Distribution.d.ts +157 -161
  87. package/types/src/statistical/Statistical.d.ts +37 -37
  88. package/types/src/testing/Testing.d.ts +2 -2
  89. package/types/src/text/Text.d.ts +119 -54
  90. package/types/src/thai/Text.d.ts +1 -1
  91. package/types/src/web/FilterXML.d.ts +1 -1
  92. package/types/src/web/Web.d.ts +2 -2
  93. package/browser/cjs/1XrWGMP3GmsQOMIX.cjs +0 -1
  94. package/browser/cjs/49_x589Na12sizKK.cjs +0 -1
  95. package/browser/cjs/4nReftSsKWmnRdtf.cjs +0 -1
  96. package/browser/cjs/507hQYooKKjnRzsZ.cjs +0 -1
  97. package/browser/cjs/BAxVLKkxFgI6cXnR.cjs +0 -1
  98. package/browser/cjs/BK0SCfN_VZYqBxoQ.cjs +0 -1
  99. package/browser/cjs/Btc0Nzu40VYOpzLX.cjs +0 -1
  100. package/browser/cjs/C9C-pr-T_ThweQX9.cjs +0 -1
  101. package/browser/cjs/CJYewYJ5Z3iojl7J.cjs +0 -1
  102. package/browser/cjs/CRx1WvmgBjT8WVyB.cjs +0 -1
  103. package/browser/cjs/CV4KQsHluMqo1I2Q.cjs +0 -1
  104. package/browser/cjs/CXlzsh_WHCOsErJ1.cjs +0 -1
  105. package/browser/cjs/CpJJh4UnFl1_qFui.cjs +0 -1
  106. package/browser/cjs/CrZlUtdX1h2RUnCP.cjs +0 -1
  107. package/browser/cjs/D8-KovdJ0LjxqCe2.cjs +0 -1
  108. package/browser/cjs/DCIlWcGDrp-5PDoA.cjs +0 -1
  109. package/browser/cjs/DDnGLOLTqLFsdUDS.cjs +0 -1
  110. package/browser/cjs/DG2kqsWRUtVugjay.cjs +0 -1
  111. package/browser/cjs/DM7-R_ltoLbA9jde.cjs +0 -1
  112. package/browser/cjs/DNKyaSruDogoBd2H.cjs +0 -1
  113. package/browser/cjs/Du4jBiFxRIF1OjD4.cjs +0 -1
  114. package/browser/cjs/EeOVMRq7TuptFKTc.cjs +0 -1
  115. package/browser/cjs/Kvn916ebqGc4t6hv.cjs +0 -1
  116. package/browser/cjs/aONv0Ys3C8xmnaR8.cjs +0 -1
  117. package/browser/cjs/index.cjs +0 -1
  118. package/browser/cjs/z_rZE1OHFPpdGBh4.cjs +0 -1
  119. package/browser/esm/C9jpXFBeugwmOTbx.mjs +0 -21
  120. package/browser/esm/Crb70T1Sp1S4uzq4.mjs +0 -24
  121. package/node/esm/C9jpXFBeugwmOTbx.mjs +0 -21
  122. package/node/esm/Crb70T1Sp1S4uzq4.mjs +0 -24
  123. package/types/src/.generated/decl/lookupReference/GroupBy.decl.d.ts +0 -4
  124. package/types/src/.generated/decl/lookupReference/PivotBy.decl.d.ts +0 -4
  125. package/types/src/.generated/desc/lookupReference/GroupBy.desc.d.ts +0 -4
  126. package/types/src/.generated/desc/lookupReference/PivotBy.desc.d.ts +0 -4
  127. package/types/src/lookupReference/GroupBy.d.ts +0 -19
  128. package/types/src/lookupReference/PivotBy.d.ts +0 -24
@@ -1,100 +1,106 @@
1
- import { IRange, AcceptError, AcceptRefError, IReferenceRange, Scalar, Lambda, Omittable, Repeating } from '@sheetxl/primitives';
1
+ import { IRange, AcceptError, IReferenceRange, Scalar, Lambda, Lazy, Omittable, Repeating } from '@sheetxl/primitives';
2
2
  /**
3
- * @summary Checks whether all arguments are TRUE, and returns TRUE if all arguments are TRUE.
3
+ * Checks whether all arguments are TRUE, and returns TRUE if all arguments are TRUE.
4
4
  * @param logical are 1 to 255 conditions you want to test that can be either TRUE or FALSE and can be logical values, arrays, or references.
5
5
  */
6
- export declare function AND(logical: IRange[]): Scalar;
6
+ export declare function AND(logical: IRange<boolean>[]): Scalar;
7
7
  /**
8
- * @summary Applies a LAMBDA function to each column and returns an array of the results.
8
+ * Applies a LAMBDA function to each column and returns an array of the results.
9
9
  * @param array is an array to be separated by column.
10
10
  * @param fn is a LAMBDA that takes a column as its single parameter and returns one result for it.
11
11
  */
12
- export declare function BYCOL(array: AcceptRefError<IRange>, fn?: Lambda<[column: IRange], Scalar>): IRange;
12
+ export declare function BYCOL(array: IRange, fn?: Lambda<[column: IRange], Scalar>): IRange;
13
13
  /**
14
- * @summary Applies a LAMBDA function to each row and returns an array of the results.
14
+ * Applies a LAMBDA function to each row and returns an array of the results.
15
15
  * @param array is an array to be separated by row.
16
16
  * @param fn is a LAMBDA that takes a row as its single parameter and returns one result for it.
17
17
  */
18
- export declare function BYROW(array: AcceptRefError<IRange>, fn?: Lambda<[row: IRange], Scalar>): IRange;
18
+ export declare function BYROW(array: IRange, fn?: Lambda<[row: IRange], Scalar>): IRange;
19
19
  /**
20
- * @summary Returns the logical value FALSE.
20
+ * Returns the logical value FALSE.
21
21
  */
22
22
  export declare function FALSE(): boolean;
23
23
  /**
24
- * @summary Flattens all the values from one or more ranges into a single column.
24
+ * Flattens all the values from one or more ranges into a single column.
25
25
  * @param ranges One or more ranges or scalar values to flatten.
26
26
  * @category Sheets
27
27
  */
28
- export declare function FLATTEN(ranges: AcceptError<IRange>[]): IRange;
28
+ export declare function FLATTEN(ranges: IRange[]): IRange;
29
29
  /**
30
- * @summary Checks whether a condition is met, and returns one value if TRUE, and another value if FALSE.
30
+ * Checks whether a condition is met, and returns one value if TRUE, and another value if FALSE.
31
31
  * @param logicalTest is any value or expression that can be evaluated to TRUE or FALSE.
32
32
  * @param valueIfTrue is the value that is returned if logicalTest is TRUE. If omitted, TRUE is returned. You can nest up to seven IF functions.
33
33
  * @param valueIfFalse is the value that is returned if logicalTest is FALSE. If omitted, FALSE is returned.
34
34
  */
35
- export declare function IF(logicalTest: boolean, valueIfTrue: AcceptError<any>, valueIfFalse?: AcceptError<any>): any;
35
+ export declare function IF(logicalTest: boolean, valueIfTrue: Lazy<AcceptError<any>>, valueIfFalse: Lazy<AcceptError<any>, false>): any;
36
36
  /**
37
- * @summary Returns valueIfError if expression is an error and the value of the expression itself otherwise.
37
+ * Returns valueIfError if expression is an error and the value of the expression itself otherwise.
38
38
  * @param value is any value or expression or reference.
39
39
  * @param valueIfError is any value or expression or reference.
40
40
  */
41
- export declare function IFERROR(value: AcceptError<Scalar>, valueIfError: AcceptError<any>): Scalar;
41
+ export declare function IFERROR(value: AcceptError<Scalar>, valueIfError: Lazy<AcceptError<any>>): Scalar;
42
42
  /**
43
- * @summary Returns the value you specify if the expression resolves to #N/A, otherwise returns the result of the expression.
43
+ * Returns the value you specify if the expression resolves to #N/A, otherwise returns the result of the expression.
44
44
  * @param value is any value or expression or reference.
45
45
  * @param valueIfNA is any value or expression or reference.
46
46
  */
47
- export declare function IFNA(value: AcceptError<Scalar>, valueIfNA: AcceptError<any>): Scalar;
47
+ export declare function IFNA(value: AcceptError<Scalar>, valueIfNA: Lazy<AcceptError<any>>): Scalar;
48
48
  /**
49
- * @summary Checks whether one or more conditions are met and returns a value corresponding to the first TRUE condition.
49
+ * Checks whether one or more conditions are met and returns a value corresponding to the first TRUE condition.
50
50
  * @param condition the conditions to test and the values to return for them.
51
51
  * @param condition.logicalTest is any value or expression that can be evaluated to TRUE or FALSE.
52
52
  * @param condition.logicalTrue is the value returned if logicalTest is TRUE.
53
+ *
54
+ * @remarks
55
+ * The search STOPS at the first TRUE condition, and a condition past it is never read: a
56
+ * `#DIV/0!` or an uncoercible text there does not surface. A fault reached BEFORE the match is
57
+ * fatal, which is why the test slot accepts errors and this body decides — the engine's own
58
+ * left-to-right propagation would refuse the whole call for a condition Excel never evaluates.
53
59
  */
54
- export declare function IFS(condition: Repeating<[logicalTest: boolean, logicalTrue: AcceptError<any>]>): any;
60
+ export declare function IFS(condition: Repeating<[logicalTest: AcceptError<boolean>, logicalTrue: AcceptError<any>], 254>): any;
55
61
  /**
56
- * @summary Creates a function value which can be called within formulas.
62
+ * Creates a function value which can be called within formulas.
57
63
  * @param parameterOrCalculation a parameter or a calculation that returns a value. If a parameter, it must be the last argument.
58
64
  */
59
- export declare function LAMBDA(parameterOrCalculation: AcceptError<IRange>[]): Lambda;
65
+ export declare function LAMBDA(parameterOrCalculation: Repeating<AcceptError<IRange>, 254>): Lambda;
60
66
  /**
61
- * @summary Assigns calculation results to names. Useful for storing intermediate calculations and values by defining names inside a formula. These names only apply within the scope of the LET function.
67
+ * Assigns calculation results to names. Useful for storing intermediate calculations and values by defining names inside a formula. These names only apply within the scope of the LET function.
62
68
  * @param name the name, or a calculation which can make use of all names within the LET. Names must start with a letter, cannot be the output of a formula, or conflict with range syntax.
63
69
  * @param nameOrValue the value associated with the name.
64
70
  */
65
- export declare function LET(name: AcceptError<any>, nameOrValue: AcceptError<IRange>, calculationOrName: AcceptError<IRange>, ...rest: AcceptError<IRange>[]): any;
71
+ export declare function LET(name: AcceptError<any>, nameOrValue: AcceptError<IRange>, calculationOrName: AcceptError<IRange>, ...rest: Repeating<AcceptError<IRange>, 254>): any;
66
72
  /**
67
- * @summary Returns a calculated array of a specified row and column size, by applying a LAMBDA function.
73
+ * Returns a calculated array of a specified row and column size, by applying a LAMBDA function.
68
74
  * @param rows is the number of rows in the array. Must be greater than zero.
69
75
  * @param columns is the number of columns in the array. Must be greater than zero.
70
76
  * @param fn is a LAMBDA that is called to create the array. The LAMBDA takes two parameters, row index and column index.
71
77
  */
72
78
  export declare function MAKEARRAY(rows: Omittable<number, 1>, columns: Omittable<number, 1>, fn: Lambda<[rowIndex: number, colIndex: number], Scalar>): IRange;
73
79
  /**
74
- * @summary Returns an array formed by 'mapping' each value in the array(s) to a new value by applying a lambda to create a new value.
80
+ * Returns an array formed by 'mapping' each value in the array(s) to a new value by applying a lambda to create a new value.
75
81
  * @param array is an array to be mapped.
76
82
  * @param lambdaOrArray is a LAMBDA which must be the last argument and must have a parameter for each array passed, or another array to be mapped.
77
83
  */
78
- export declare function MAP(array: AcceptRefError<IRange>, lambdaOrArray: (any | Lambda<any[], Scalar>)[]): IRange;
84
+ export declare function MAP(array: IRange, lambdaOrArray: AcceptError<any | Lambda<any[], Scalar>>[]): IRange;
79
85
  /**
80
- * @summary Changes FALSE to TRUE, or TRUE to FALSE.
86
+ * Changes FALSE to TRUE, or TRUE to FALSE.
81
87
  * @param logical is a value or expression that can be evaluated to TRUE or FALSE.
82
88
  */
83
89
  export declare function NOT(logical: boolean): boolean;
84
90
  /**
85
- * @summary Checks whether any of the arguments are TRUE, and returns TRUE or FALSE. Returns FALSE only if all arguments are FALSE.
91
+ * Checks whether any of the arguments are TRUE, and returns TRUE or FALSE. Returns FALSE only if all arguments are FALSE.
86
92
  * @param logical are 1 to 255 conditions that you want to test that can be either TRUE or FALSE.
87
93
  */
88
- export declare function OR(logical: IRange[]): Scalar;
94
+ export declare function OR(logical: IRange<boolean>[]): Scalar;
89
95
  /**
90
- * @summary Reduces an array to an accumulated value by applying a LAMBDA function to each value and returning the total value in the accumulator.
96
+ * Reduces an array to an accumulated value by applying a LAMBDA function to each value and returning the total value in the accumulator.
91
97
  * @param initialValue is the starting value for the accumulator.
92
98
  * @param array is an array to be reduced.
93
99
  * @param fn is a LAMBDA that is called to reduce the array. The LAMBDA takes two parameters, accumulator and value.
94
100
  */
95
- export declare function REDUCE(initialValue: Omittable<AcceptError<any>>, array: AcceptRefError<IRange>, fn: Lambda<[accumulator: any, value: Scalar], any>): any;
101
+ export declare function REDUCE(initialValue: Omittable<AcceptError<any>>, array: IRange, fn: Lambda<[accumulator: any, value: IRange | Scalar], any>): any;
96
102
  /**
97
- * @summary Reduces the cells specified by a given condition or criteria.
103
+ * Reduces the cells specified by a given condition or criteria.
98
104
  * @param range is the range of cells you want evaluated.
99
105
  * @param criteria is the condition or criteria in the form of a number, expression, or text that defines which cells will be reduced.
100
106
  * @param reduceRange are the actual cells to reduce. If omitted, the cells in range are used. This can be blank.
@@ -104,30 +110,30 @@ export declare function REDUCE(initialValue: Omittable<AcceptError<any>>, array:
104
110
  * @remarks
105
111
  * This is a lambda equivalent to SUMIF, COUNTIF, and AVERAGEIF.
106
112
  */
107
- export declare function REDUCEIF(range: AcceptError<IReferenceRange>, criteria: AcceptError<Scalar>, reduceRange: Omittable<AcceptError<IReferenceRange>>, fn: Lambda<[accumulator: Scalar, value: Scalar], Scalar>): Scalar;
113
+ export declare function REDUCEIF(range: IReferenceRange, criteria: AcceptError<Scalar>, reduceRange: Omittable<IReferenceRange>, fn: Lambda<[accumulator: Scalar, value: Scalar], Scalar>): Scalar;
108
114
  /**
109
- * @summary Scans an array by applying a LAMBDA function to each value and returns an array that has each intermediate value.
115
+ * Scans an array by applying a LAMBDA function to each value and returns an array that has each intermediate value.
110
116
  * @param initialValue is the starting value for the accumulator.
111
117
  * @param array is an array to be reduced.
112
118
  * @param fn is a LAMBDA that is called to reduce the array. The LAMBDA takes two parameters, accumulator and value.
113
119
  */
114
- export declare function SCAN(initialValue: Omittable<Scalar>, array: AcceptRefError<IRange>, fn: Lambda<[accumulator: Scalar, value: Scalar], Scalar>): IRange;
120
+ export declare function SCAN(initialValue: Omittable<AcceptError<any>>, array: IRange, fn: Lambda<[accumulator: any, value: IRange | Scalar], Scalar>): IRange;
115
121
  /**
116
- * @summary Evaluates an expression against a list of values and returns the result corresponding to the first matching value. If there is no match, an optional default value is returned.
122
+ * Evaluates an expression against a list of values and returns the result corresponding to the first matching value. If there is no match, an optional default value is returned.
117
123
  * @param match the values to compare against expression and the results to return for them.
118
124
  * @param match.value is a value to compare against expression.
119
125
  * @param match.result is a result to be returned if the corresponding value matches expression.
120
126
  * @param expression is an expression to be evaluated.
121
127
  * @param defaultResult is the result to be returned when no value matches expression.
122
128
  */
123
- export declare function SWITCH(expression: Scalar, match: Repeating<[value: Scalar, result: AcceptError<any>]>, defaultResult?: Omittable<AcceptError<any>, 0>): any;
129
+ export declare function SWITCH(expression: Scalar, match: Repeating<[value: AcceptError<Scalar>, result: AcceptError<any>], 254>, defaultResult?: Omittable<AcceptError<any>, 0>): any;
124
130
  /**
125
- * @summary Returns the logical value TRUE.
131
+ * Returns the logical value TRUE.
126
132
  */
127
133
  export declare function TRUE(): boolean;
128
134
  /**
129
- * @summary Returns a logical 'Exclusive Or' of all arguments.
135
+ * Returns a logical 'Exclusive Or' of all arguments.
130
136
  * @param logical are 1 to 254 conditions you want to test that can be either TRUE or FALSE and can be logical values, arrays, or references.
131
137
  */
132
- export declare function XOR(logical: IRange[]): Scalar;
138
+ export declare function XOR(logical: Repeating<IRange<boolean>, 254>): Scalar;
133
139
  //# sourceMappingURL=Logical.d.ts.map