iter-fest 0.0.0-main.f37b579

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 (179) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +137 -0
  3. package/dist/chunk-27NJVC7K.mjs +26 -0
  4. package/dist/chunk-27NJVC7K.mjs.map +1 -0
  5. package/dist/chunk-44W7OTNE.mjs +12 -0
  6. package/dist/chunk-44W7OTNE.mjs.map +1 -0
  7. package/dist/chunk-5CHMNKXJ.mjs +20 -0
  8. package/dist/chunk-5CHMNKXJ.mjs.map +1 -0
  9. package/dist/chunk-5CRMPYKD.mjs +19 -0
  10. package/dist/chunk-5CRMPYKD.mjs.map +1 -0
  11. package/dist/chunk-6C3P4TNK.mjs +19 -0
  12. package/dist/chunk-6C3P4TNK.mjs.map +1 -0
  13. package/dist/chunk-EZC33HE6.mjs +15 -0
  14. package/dist/chunk-EZC33HE6.mjs.map +1 -0
  15. package/dist/chunk-GWZF5BB7.mjs +16 -0
  16. package/dist/chunk-GWZF5BB7.mjs.map +1 -0
  17. package/dist/chunk-HYU4EN7J.mjs +20 -0
  18. package/dist/chunk-HYU4EN7J.mjs.map +1 -0
  19. package/dist/chunk-JU353VSE.mjs +16 -0
  20. package/dist/chunk-JU353VSE.mjs.map +1 -0
  21. package/dist/chunk-KONB7TV6.mjs +35 -0
  22. package/dist/chunk-KONB7TV6.mjs.map +1 -0
  23. package/dist/chunk-MDBK7ND5.mjs +26 -0
  24. package/dist/chunk-MDBK7ND5.mjs.map +1 -0
  25. package/dist/chunk-MNDAEMYM.mjs +15 -0
  26. package/dist/chunk-MNDAEMYM.mjs.map +1 -0
  27. package/dist/chunk-MNLOWKTC.mjs +19 -0
  28. package/dist/chunk-MNLOWKTC.mjs.map +1 -0
  29. package/dist/chunk-TEI3K6GT.mjs +21 -0
  30. package/dist/chunk-TEI3K6GT.mjs.map +1 -0
  31. package/dist/chunk-UIEKIMLW.mjs +27 -0
  32. package/dist/chunk-UIEKIMLW.mjs.map +1 -0
  33. package/dist/chunk-V6OWQQ3Q.mjs +20 -0
  34. package/dist/chunk-V6OWQQ3Q.mjs.map +1 -0
  35. package/dist/chunk-W5NEOEVE.mjs +12 -0
  36. package/dist/chunk-W5NEOEVE.mjs.map +1 -0
  37. package/dist/chunk-WKIRSZXX.mjs +32 -0
  38. package/dist/chunk-WKIRSZXX.mjs.map +1 -0
  39. package/dist/chunk-XKBVB2JN.mjs +12 -0
  40. package/dist/chunk-XKBVB2JN.mjs.map +1 -0
  41. package/dist/chunk-XW34KZRY.mjs +17 -0
  42. package/dist/chunk-XW34KZRY.mjs.map +1 -0
  43. package/dist/chunk-Y5M2C7NQ.mjs +13 -0
  44. package/dist/chunk-Y5M2C7NQ.mjs.map +1 -0
  45. package/dist/chunk-ZUBHGSCW.mjs +18 -0
  46. package/dist/chunk-ZUBHGSCW.mjs.map +1 -0
  47. package/dist/iter-fest.d.mts +21 -0
  48. package/dist/iter-fest.d.ts +21 -0
  49. package/dist/iter-fest.iterableAt.d.mts +8 -0
  50. package/dist/iter-fest.iterableAt.d.ts +8 -0
  51. package/dist/iter-fest.iterableAt.js +56 -0
  52. package/dist/iter-fest.iterableAt.js.map +1 -0
  53. package/dist/iter-fest.iterableAt.mjs +8 -0
  54. package/dist/iter-fest.iterableAt.mjs.map +1 -0
  55. package/dist/iter-fest.iterableConcat.d.mts +16 -0
  56. package/dist/iter-fest.iterableConcat.d.ts +16 -0
  57. package/dist/iter-fest.iterableConcat.js +40 -0
  58. package/dist/iter-fest.iterableConcat.js.map +1 -0
  59. package/dist/iter-fest.iterableConcat.mjs +7 -0
  60. package/dist/iter-fest.iterableConcat.mjs.map +1 -0
  61. package/dist/iter-fest.iterableEntries.d.mts +6 -0
  62. package/dist/iter-fest.iterableEntries.d.ts +6 -0
  63. package/dist/iter-fest.iterableEntries.js +36 -0
  64. package/dist/iter-fest.iterableEntries.js.map +1 -0
  65. package/dist/iter-fest.iterableEntries.mjs +7 -0
  66. package/dist/iter-fest.iterableEntries.mjs.map +1 -0
  67. package/dist/iter-fest.iterableEvery.d.mts +24 -0
  68. package/dist/iter-fest.iterableEvery.d.ts +24 -0
  69. package/dist/iter-fest.iterableEvery.js +43 -0
  70. package/dist/iter-fest.iterableEvery.js.map +1 -0
  71. package/dist/iter-fest.iterableEvery.mjs +7 -0
  72. package/dist/iter-fest.iterableEvery.mjs.map +1 -0
  73. package/dist/iter-fest.iterableFilter.d.mts +16 -0
  74. package/dist/iter-fest.iterableFilter.d.ts +16 -0
  75. package/dist/iter-fest.iterableFilter.js +42 -0
  76. package/dist/iter-fest.iterableFilter.js.map +1 -0
  77. package/dist/iter-fest.iterableFilter.mjs +7 -0
  78. package/dist/iter-fest.iterableFilter.mjs.map +1 -0
  79. package/dist/iter-fest.iterableFind.d.mts +15 -0
  80. package/dist/iter-fest.iterableFind.d.ts +15 -0
  81. package/dist/iter-fest.iterableFind.js +43 -0
  82. package/dist/iter-fest.iterableFind.js.map +1 -0
  83. package/dist/iter-fest.iterableFind.mjs +7 -0
  84. package/dist/iter-fest.iterableFind.mjs.map +1 -0
  85. package/dist/iter-fest.iterableFindIndex.d.mts +14 -0
  86. package/dist/iter-fest.iterableFindIndex.d.ts +14 -0
  87. package/dist/iter-fest.iterableFindIndex.js +44 -0
  88. package/dist/iter-fest.iterableFindIndex.js.map +1 -0
  89. package/dist/iter-fest.iterableFindIndex.mjs +7 -0
  90. package/dist/iter-fest.iterableFindIndex.mjs.map +1 -0
  91. package/dist/iter-fest.iterableFindLast.d.mts +15 -0
  92. package/dist/iter-fest.iterableFindLast.d.ts +15 -0
  93. package/dist/iter-fest.iterableFindLast.js +44 -0
  94. package/dist/iter-fest.iterableFindLast.js.map +1 -0
  95. package/dist/iter-fest.iterableFindLast.mjs +7 -0
  96. package/dist/iter-fest.iterableFindLast.mjs.map +1 -0
  97. package/dist/iter-fest.iterableFindLastIndex.d.mts +14 -0
  98. package/dist/iter-fest.iterableFindLastIndex.d.ts +14 -0
  99. package/dist/iter-fest.iterableFindLastIndex.js +45 -0
  100. package/dist/iter-fest.iterableFindLastIndex.js.map +1 -0
  101. package/dist/iter-fest.iterableFindLastIndex.mjs +7 -0
  102. package/dist/iter-fest.iterableFindLastIndex.mjs.map +1 -0
  103. package/dist/iter-fest.iterableForEach.d.mts +10 -0
  104. package/dist/iter-fest.iterableForEach.d.ts +10 -0
  105. package/dist/iter-fest.iterableForEach.js +40 -0
  106. package/dist/iter-fest.iterableForEach.js.map +1 -0
  107. package/dist/iter-fest.iterableForEach.mjs +7 -0
  108. package/dist/iter-fest.iterableForEach.mjs.map +1 -0
  109. package/dist/iter-fest.iterableIncludes.d.mts +9 -0
  110. package/dist/iter-fest.iterableIncludes.d.ts +9 -0
  111. package/dist/iter-fest.iterableIncludes.js +56 -0
  112. package/dist/iter-fest.iterableIncludes.js.map +1 -0
  113. package/dist/iter-fest.iterableIncludes.mjs +8 -0
  114. package/dist/iter-fest.iterableIncludes.mjs.map +1 -0
  115. package/dist/iter-fest.iterableIndexOf.d.mts +9 -0
  116. package/dist/iter-fest.iterableIndexOf.d.ts +9 -0
  117. package/dist/iter-fest.iterableIndexOf.js +57 -0
  118. package/dist/iter-fest.iterableIndexOf.js.map +1 -0
  119. package/dist/iter-fest.iterableIndexOf.mjs +8 -0
  120. package/dist/iter-fest.iterableIndexOf.mjs.map +1 -0
  121. package/dist/iter-fest.iterableJoin.d.mts +8 -0
  122. package/dist/iter-fest.iterableJoin.d.ts +8 -0
  123. package/dist/iter-fest.iterableJoin.js +44 -0
  124. package/dist/iter-fest.iterableJoin.js.map +1 -0
  125. package/dist/iter-fest.iterableJoin.mjs +7 -0
  126. package/dist/iter-fest.iterableJoin.mjs.map +1 -0
  127. package/dist/iter-fest.iterableKeys.d.mts +6 -0
  128. package/dist/iter-fest.iterableKeys.d.ts +6 -0
  129. package/dist/iter-fest.iterableKeys.js +36 -0
  130. package/dist/iter-fest.iterableKeys.js.map +1 -0
  131. package/dist/iter-fest.iterableKeys.mjs +7 -0
  132. package/dist/iter-fest.iterableKeys.mjs.map +1 -0
  133. package/dist/iter-fest.iterableMap.d.mts +8 -0
  134. package/dist/iter-fest.iterableMap.d.ts +8 -0
  135. package/dist/iter-fest.iterableMap.js +39 -0
  136. package/dist/iter-fest.iterableMap.js.map +1 -0
  137. package/dist/iter-fest.iterableMap.mjs +7 -0
  138. package/dist/iter-fest.iterableMap.mjs.map +1 -0
  139. package/dist/iter-fest.iterableReduce.d.mts +19 -0
  140. package/dist/iter-fest.iterableReduce.d.ts +19 -0
  141. package/dist/iter-fest.iterableReduce.js +41 -0
  142. package/dist/iter-fest.iterableReduce.js.map +1 -0
  143. package/dist/iter-fest.iterableReduce.mjs +7 -0
  144. package/dist/iter-fest.iterableReduce.mjs.map +1 -0
  145. package/dist/iter-fest.iterableSlice.d.mts +14 -0
  146. package/dist/iter-fest.iterableSlice.d.ts +14 -0
  147. package/dist/iter-fest.iterableSlice.js +65 -0
  148. package/dist/iter-fest.iterableSlice.js.map +1 -0
  149. package/dist/iter-fest.iterableSlice.mjs +8 -0
  150. package/dist/iter-fest.iterableSlice.mjs.map +1 -0
  151. package/dist/iter-fest.iterableSome.d.mts +12 -0
  152. package/dist/iter-fest.iterableSome.d.ts +12 -0
  153. package/dist/iter-fest.iterableSome.js +43 -0
  154. package/dist/iter-fest.iterableSome.js.map +1 -0
  155. package/dist/iter-fest.iterableSome.mjs +7 -0
  156. package/dist/iter-fest.iterableSome.mjs.map +1 -0
  157. package/dist/iter-fest.iterableToSpliced.d.mts +17 -0
  158. package/dist/iter-fest.iterableToSpliced.d.ts +17 -0
  159. package/dist/iter-fest.iterableToSpliced.js +62 -0
  160. package/dist/iter-fest.iterableToSpliced.js.map +1 -0
  161. package/dist/iter-fest.iterableToSpliced.mjs +8 -0
  162. package/dist/iter-fest.iterableToSpliced.mjs.map +1 -0
  163. package/dist/iter-fest.iterableToString.d.mts +6 -0
  164. package/dist/iter-fest.iterableToString.d.ts +6 -0
  165. package/dist/iter-fest.iterableToString.js +51 -0
  166. package/dist/iter-fest.iterableToString.js.map +1 -0
  167. package/dist/iter-fest.iterableToString.mjs +8 -0
  168. package/dist/iter-fest.iterableToString.mjs.map +1 -0
  169. package/dist/iter-fest.iteratorToIterable.d.mts +3 -0
  170. package/dist/iter-fest.iteratorToIterable.d.ts +3 -0
  171. package/dist/iter-fest.iteratorToIterable.js +39 -0
  172. package/dist/iter-fest.iteratorToIterable.js.map +1 -0
  173. package/dist/iter-fest.iteratorToIterable.mjs +7 -0
  174. package/dist/iter-fest.iteratorToIterable.mjs.map +1 -0
  175. package/dist/iter-fest.js +388 -0
  176. package/dist/iter-fest.js.map +1 -0
  177. package/dist/iter-fest.mjs +88 -0
  178. package/dist/iter-fest.mjs.map +1 -0
  179. package/package.json +279 -0
@@ -0,0 +1,7 @@
1
+ import {
2
+ iterableFilter
3
+ } from "./chunk-ZUBHGSCW.mjs";
4
+ export {
5
+ iterableFilter
6
+ };
7
+ //# sourceMappingURL=iter-fest.iterableFilter.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Returns the value of the first element in the iterable where predicate is true, and undefined
3
+ * otherwise.
4
+ *
5
+ * @param predicate find calls predicate once for each element of the iterable, in ascending
6
+ * order, until it finds one where predicate returns true. If such an element is found, find
7
+ * immediately returns that element value. Otherwise, find returns undefined.
8
+ *
9
+ * @param thisArg If provided, it will be used as the this value for each invocation of
10
+ * predicate. If it is not provided, undefined is used instead.
11
+ */
12
+ declare function iterableFind<T, S extends T>(iterable: Iterable<T>, predicate: (value: T, index: number, obj: Iterable<T>) => value is S, thisArg?: any): S | undefined;
13
+ declare function iterableFind<T>(iterable: Iterable<T>, predicate: (value: T, index: number, obj: Iterable<T>) => unknown, thisArg?: any): T | undefined;
14
+
15
+ export { iterableFind };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Returns the value of the first element in the iterable where predicate is true, and undefined
3
+ * otherwise.
4
+ *
5
+ * @param predicate find calls predicate once for each element of the iterable, in ascending
6
+ * order, until it finds one where predicate returns true. If such an element is found, find
7
+ * immediately returns that element value. Otherwise, find returns undefined.
8
+ *
9
+ * @param thisArg If provided, it will be used as the this value for each invocation of
10
+ * predicate. If it is not provided, undefined is used instead.
11
+ */
12
+ declare function iterableFind<T, S extends T>(iterable: Iterable<T>, predicate: (value: T, index: number, obj: Iterable<T>) => value is S, thisArg?: any): S | undefined;
13
+ declare function iterableFind<T>(iterable: Iterable<T>, predicate: (value: T, index: number, obj: Iterable<T>) => unknown, thisArg?: any): T | undefined;
14
+
15
+ export { iterableFind };
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/iterableFind.ts
21
+ var iterableFind_exports = {};
22
+ __export(iterableFind_exports, {
23
+ iterableFind: () => iterableFind
24
+ });
25
+ module.exports = __toCommonJS(iterableFind_exports);
26
+ function iterableFind(iterable, predicate, thisArg) {
27
+ let index = 0;
28
+ if (typeof predicate !== "function") {
29
+ throw new TypeError(`${predicate} is not a function`);
30
+ }
31
+ const boundPredicate = predicate.bind(thisArg);
32
+ for (const value of iterable) {
33
+ if (boundPredicate(value, index++, iterable)) {
34
+ return value;
35
+ }
36
+ }
37
+ return void 0;
38
+ }
39
+ // Annotate the CommonJS export names for ESM import in node:
40
+ 0 && (module.exports = {
41
+ iterableFind
42
+ });
43
+ //# sourceMappingURL=iter-fest.iterableFind.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/iterableFind.ts"],"sourcesContent":["/**\n * Returns the value of the first element in the iterable where predicate is true, and undefined\n * otherwise.\n *\n * @param predicate find calls predicate once for each element of the iterable, in ascending\n * order, until it finds one where predicate returns true. If such an element is found, find\n * immediately returns that element value. Otherwise, find returns undefined.\n *\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\nexport function iterableFind<T, S extends T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, obj: Iterable<T>) => value is S,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): S | undefined;\n\nexport function iterableFind<T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, obj: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): T | undefined;\n\nexport function iterableFind<T, S extends T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, obj: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): S | undefined {\n let index = 0;\n\n if (typeof predicate !== 'function') {\n throw new TypeError(`${predicate} is not a function`);\n }\n\n const boundPredicate = predicate.bind(thisArg);\n\n for (const value of iterable) {\n if (boundPredicate(value, index++, iterable)) {\n return value as S;\n }\n }\n\n return undefined;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAyBO,SAAS,aACd,UACA,WAEA,SACe;AACf,MAAI,QAAQ;AAEZ,MAAI,OAAO,cAAc,YAAY;AACnC,UAAM,IAAI,UAAU,GAAG,SAAS,oBAAoB;AAAA,EACtD;AAEA,QAAM,iBAAiB,UAAU,KAAK,OAAO;AAE7C,aAAW,SAAS,UAAU;AAC5B,QAAI,eAAe,OAAO,SAAS,QAAQ,GAAG;AAC5C,aAAO;AAAA,IACT;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
@@ -0,0 +1,7 @@
1
+ import {
2
+ iterableFind
3
+ } from "./chunk-MNLOWKTC.mjs";
4
+ export {
5
+ iterableFind
6
+ };
7
+ //# sourceMappingURL=iter-fest.iterableFind.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Returns the index of the first element in the iterable where predicate is true, and -1
3
+ * otherwise.
4
+ *
5
+ * @param predicate find calls predicate once for each element of the iterable, in ascending
6
+ * order, until it finds one where predicate returns true. If such an element is found,
7
+ * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
8
+ *
9
+ * @param thisArg If provided, it will be used as the this value for each invocation of
10
+ * predicate. If it is not provided, undefined is used instead.
11
+ */
12
+ declare function iterableFindIndex<T>(iterable: Iterable<T>, predicate: (value: T, index: number, obj: Iterable<T>) => unknown, thisArg?: any): number;
13
+
14
+ export { iterableFindIndex };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Returns the index of the first element in the iterable where predicate is true, and -1
3
+ * otherwise.
4
+ *
5
+ * @param predicate find calls predicate once for each element of the iterable, in ascending
6
+ * order, until it finds one where predicate returns true. If such an element is found,
7
+ * findIndex immediately returns that element index. Otherwise, findIndex returns -1.
8
+ *
9
+ * @param thisArg If provided, it will be used as the this value for each invocation of
10
+ * predicate. If it is not provided, undefined is used instead.
11
+ */
12
+ declare function iterableFindIndex<T>(iterable: Iterable<T>, predicate: (value: T, index: number, obj: Iterable<T>) => unknown, thisArg?: any): number;
13
+
14
+ export { iterableFindIndex };
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/iterableFindIndex.ts
21
+ var iterableFindIndex_exports = {};
22
+ __export(iterableFindIndex_exports, {
23
+ iterableFindIndex: () => iterableFindIndex
24
+ });
25
+ module.exports = __toCommonJS(iterableFindIndex_exports);
26
+ function iterableFindIndex(iterable, predicate, thisArg) {
27
+ let index = 0;
28
+ if (typeof predicate !== "function") {
29
+ throw new TypeError(`${predicate} is not a function`);
30
+ }
31
+ const boundPredicate = predicate.bind(thisArg);
32
+ for (const value of iterable) {
33
+ if (boundPredicate(value, index, iterable)) {
34
+ return index;
35
+ }
36
+ index++;
37
+ }
38
+ return -1;
39
+ }
40
+ // Annotate the CommonJS export names for ESM import in node:
41
+ 0 && (module.exports = {
42
+ iterableFindIndex
43
+ });
44
+ //# sourceMappingURL=iter-fest.iterableFindIndex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/iterableFindIndex.ts"],"sourcesContent":["/**\n * Returns the index of the first element in the iterable where predicate is true, and -1\n * otherwise.\n *\n * @param predicate find calls predicate once for each element of the iterable, in ascending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findIndex immediately returns that element index. Otherwise, findIndex returns -1.\n *\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\nexport function iterableFindIndex<T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, obj: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): number {\n let index = 0;\n\n if (typeof predicate !== 'function') {\n throw new TypeError(`${predicate} is not a function`);\n }\n\n const boundPredicate = predicate.bind(thisArg);\n\n for (const value of iterable) {\n if (boundPredicate(value, index, iterable)) {\n return index;\n }\n\n index++;\n }\n\n return -1;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAWO,SAAS,kBACd,UACA,WAEA,SACQ;AACR,MAAI,QAAQ;AAEZ,MAAI,OAAO,cAAc,YAAY;AACnC,UAAM,IAAI,UAAU,GAAG,SAAS,oBAAoB;AAAA,EACtD;AAEA,QAAM,iBAAiB,UAAU,KAAK,OAAO;AAE7C,aAAW,SAAS,UAAU;AAC5B,QAAI,eAAe,OAAO,OAAO,QAAQ,GAAG;AAC1C,aAAO;AAAA,IACT;AAEA;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
@@ -0,0 +1,7 @@
1
+ import {
2
+ iterableFindIndex
3
+ } from "./chunk-HYU4EN7J.mjs";
4
+ export {
5
+ iterableFindIndex
6
+ };
7
+ //# sourceMappingURL=iter-fest.iterableFindIndex.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Returns the value of the last element in the iterable where predicate is true, and undefined
3
+ * otherwise.
4
+ *
5
+ * @param predicate findLast calls predicate once for each element of the iterable, in descending
6
+ * order, until it finds one where predicate returns true. If such an element is found, findLast
7
+ * immediately returns that element value. Otherwise, findLast returns undefined.
8
+ *
9
+ * @param thisArg If provided, it will be used as the this value for each invocation of
10
+ * predicate. If it is not provided, undefined is used instead.
11
+ */
12
+ declare function iterableFindLast<T, S extends T>(iterable: Iterable<T>, predicate: (value: T, index: number, iterable: Iterable<T>) => value is S, thisArg?: any): S | undefined;
13
+ declare function iterableFindLast<T>(iterable: Iterable<T>, predicate: (value: T, index: number, iterable: Iterable<T>) => unknown, thisArg?: any): T | undefined;
14
+
15
+ export { iterableFindLast };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Returns the value of the last element in the iterable where predicate is true, and undefined
3
+ * otherwise.
4
+ *
5
+ * @param predicate findLast calls predicate once for each element of the iterable, in descending
6
+ * order, until it finds one where predicate returns true. If such an element is found, findLast
7
+ * immediately returns that element value. Otherwise, findLast returns undefined.
8
+ *
9
+ * @param thisArg If provided, it will be used as the this value for each invocation of
10
+ * predicate. If it is not provided, undefined is used instead.
11
+ */
12
+ declare function iterableFindLast<T, S extends T>(iterable: Iterable<T>, predicate: (value: T, index: number, iterable: Iterable<T>) => value is S, thisArg?: any): S | undefined;
13
+ declare function iterableFindLast<T>(iterable: Iterable<T>, predicate: (value: T, index: number, iterable: Iterable<T>) => unknown, thisArg?: any): T | undefined;
14
+
15
+ export { iterableFindLast };
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/iterableFindLast.ts
21
+ var iterableFindLast_exports = {};
22
+ __export(iterableFindLast_exports, {
23
+ iterableFindLast: () => iterableFindLast
24
+ });
25
+ module.exports = __toCommonJS(iterableFindLast_exports);
26
+ function iterableFindLast(iterable, predicate, thisArg) {
27
+ let index = 0;
28
+ let last;
29
+ if (typeof predicate !== "function") {
30
+ throw new TypeError(`${predicate} is not a function`);
31
+ }
32
+ const boundPredicate = predicate.bind(thisArg);
33
+ for (const value of iterable) {
34
+ if (boundPredicate(value, index++, iterable)) {
35
+ last = value;
36
+ }
37
+ }
38
+ return last;
39
+ }
40
+ // Annotate the CommonJS export names for ESM import in node:
41
+ 0 && (module.exports = {
42
+ iterableFindLast
43
+ });
44
+ //# sourceMappingURL=iter-fest.iterableFindLast.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/iterableFindLast.ts"],"sourcesContent":["/**\n * Returns the value of the last element in the iterable where predicate is true, and undefined\n * otherwise.\n *\n * @param predicate findLast calls predicate once for each element of the iterable, in descending\n * order, until it finds one where predicate returns true. If such an element is found, findLast\n * immediately returns that element value. Otherwise, findLast returns undefined.\n *\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\nexport function iterableFindLast<T, S extends T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, iterable: Iterable<T>) => value is S,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): S | undefined;\n\nexport function iterableFindLast<T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, iterable: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): T | undefined;\n\nexport function iterableFindLast<T, S extends T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, iterable: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): S | undefined {\n let index = 0;\n let last: S | undefined;\n\n if (typeof predicate !== 'function') {\n throw new TypeError(`${predicate} is not a function`);\n }\n\n const boundPredicate = predicate.bind(thisArg);\n\n for (const value of iterable) {\n if (boundPredicate(value, index++, iterable)) {\n last = value as S;\n }\n }\n\n return last;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAyBO,SAAS,iBACd,UACA,WAEA,SACe;AACf,MAAI,QAAQ;AACZ,MAAI;AAEJ,MAAI,OAAO,cAAc,YAAY;AACnC,UAAM,IAAI,UAAU,GAAG,SAAS,oBAAoB;AAAA,EACtD;AAEA,QAAM,iBAAiB,UAAU,KAAK,OAAO;AAE7C,aAAW,SAAS,UAAU;AAC5B,QAAI,eAAe,OAAO,SAAS,QAAQ,GAAG;AAC5C,aAAO;AAAA,IACT;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
@@ -0,0 +1,7 @@
1
+ import {
2
+ iterableFindLast
3
+ } from "./chunk-V6OWQQ3Q.mjs";
4
+ export {
5
+ iterableFindLast
6
+ };
7
+ //# sourceMappingURL=iter-fest.iterableFindLast.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Returns the index of the last element in the iterable where predicate is true, and -1
3
+ * otherwise.
4
+ *
5
+ * @param predicate findLastIndex calls predicate once for each element of the iterable, in descending
6
+ * order, until it finds one where predicate returns true. If such an element is found,
7
+ * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
8
+ *
9
+ * @param thisArg If provided, it will be used as the this value for each invocation of
10
+ * predicate. If it is not provided, undefined is used instead.
11
+ */
12
+ declare function iterableFindLastIndex<T>(iterable: Iterable<T>, predicate: (value: T, index: number, iterable: Iterable<T>) => unknown, thisArg?: any): number;
13
+
14
+ export { iterableFindLastIndex };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Returns the index of the last element in the iterable where predicate is true, and -1
3
+ * otherwise.
4
+ *
5
+ * @param predicate findLastIndex calls predicate once for each element of the iterable, in descending
6
+ * order, until it finds one where predicate returns true. If such an element is found,
7
+ * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.
8
+ *
9
+ * @param thisArg If provided, it will be used as the this value for each invocation of
10
+ * predicate. If it is not provided, undefined is used instead.
11
+ */
12
+ declare function iterableFindLastIndex<T>(iterable: Iterable<T>, predicate: (value: T, index: number, iterable: Iterable<T>) => unknown, thisArg?: any): number;
13
+
14
+ export { iterableFindLastIndex };
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/iterableFindLastIndex.ts
21
+ var iterableFindLastIndex_exports = {};
22
+ __export(iterableFindLastIndex_exports, {
23
+ iterableFindLastIndex: () => iterableFindLastIndex
24
+ });
25
+ module.exports = __toCommonJS(iterableFindLastIndex_exports);
26
+ function iterableFindLastIndex(iterable, predicate, thisArg) {
27
+ let index = 0;
28
+ let lastIndex = -1;
29
+ if (typeof predicate !== "function") {
30
+ throw new TypeError(`${predicate} is not a function`);
31
+ }
32
+ const boundPredicate = predicate.bind(thisArg);
33
+ for (const value of iterable) {
34
+ if (boundPredicate(value, index, iterable)) {
35
+ lastIndex = index;
36
+ }
37
+ index++;
38
+ }
39
+ return lastIndex;
40
+ }
41
+ // Annotate the CommonJS export names for ESM import in node:
42
+ 0 && (module.exports = {
43
+ iterableFindLastIndex
44
+ });
45
+ //# sourceMappingURL=iter-fest.iterableFindLastIndex.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/iterableFindLastIndex.ts"],"sourcesContent":["/**\n * Returns the index of the last element in the iterable where predicate is true, and -1\n * otherwise.\n *\n * @param predicate findLastIndex calls predicate once for each element of the iterable, in descending\n * order, until it finds one where predicate returns true. If such an element is found,\n * findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.\n *\n * @param thisArg If provided, it will be used as the this value for each invocation of\n * predicate. If it is not provided, undefined is used instead.\n */\nexport function iterableFindLastIndex<T>(\n iterable: Iterable<T>,\n predicate: (value: T, index: number, iterable: Iterable<T>) => unknown,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): number {\n let index = 0;\n let lastIndex: number = -1;\n\n if (typeof predicate !== 'function') {\n throw new TypeError(`${predicate} is not a function`);\n }\n\n const boundPredicate = predicate.bind(thisArg);\n\n for (const value of iterable) {\n if (boundPredicate(value, index, iterable)) {\n lastIndex = index;\n }\n\n index++;\n }\n\n return lastIndex;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAWO,SAAS,sBACd,UACA,WAEA,SACQ;AACR,MAAI,QAAQ;AACZ,MAAI,YAAoB;AAExB,MAAI,OAAO,cAAc,YAAY;AACnC,UAAM,IAAI,UAAU,GAAG,SAAS,oBAAoB;AAAA,EACtD;AAEA,QAAM,iBAAiB,UAAU,KAAK,OAAO;AAE7C,aAAW,SAAS,UAAU;AAC5B,QAAI,eAAe,OAAO,OAAO,QAAQ,GAAG;AAC1C,kBAAY;AAAA,IACd;AAEA;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
@@ -0,0 +1,7 @@
1
+ import {
2
+ iterableFindLastIndex
3
+ } from "./chunk-TEI3K6GT.mjs";
4
+ export {
5
+ iterableFindLastIndex
6
+ };
7
+ //# sourceMappingURL=iter-fest.iterableFindLastIndex.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Performs the specified action for each element in an iterable.
3
+ *
4
+ * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the iterable.
5
+ *
6
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
7
+ */
8
+ declare function iterableForEach<T>(iterable: Iterable<T>, callbackfn: (value: T, index: number, iterable: Iterable<T>) => void, thisArg?: any): void;
9
+
10
+ export { iterableForEach };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Performs the specified action for each element in an iterable.
3
+ *
4
+ * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the iterable.
5
+ *
6
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
7
+ */
8
+ declare function iterableForEach<T>(iterable: Iterable<T>, callbackfn: (value: T, index: number, iterable: Iterable<T>) => void, thisArg?: any): void;
9
+
10
+ export { iterableForEach };
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/iterableForEach.ts
21
+ var iterableForEach_exports = {};
22
+ __export(iterableForEach_exports, {
23
+ iterableForEach: () => iterableForEach
24
+ });
25
+ module.exports = __toCommonJS(iterableForEach_exports);
26
+ function iterableForEach(iterable, callbackfn, thisArg) {
27
+ let index = 0;
28
+ if (typeof callbackfn !== "function") {
29
+ throw new TypeError(`${callbackfn} is not a function`);
30
+ }
31
+ const boundCallbackfn = callbackfn.bind(thisArg);
32
+ for (const value of iterable) {
33
+ boundCallbackfn(value, index++, iterable);
34
+ }
35
+ }
36
+ // Annotate the CommonJS export names for ESM import in node:
37
+ 0 && (module.exports = {
38
+ iterableForEach
39
+ });
40
+ //# sourceMappingURL=iter-fest.iterableForEach.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/iterableForEach.ts"],"sourcesContent":["/**\n * Performs the specified action for each element in an iterable.\n *\n * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the iterable.\n *\n * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n */\nexport function iterableForEach<T>(\n iterable: Iterable<T>,\n callbackfn: (value: T, index: number, iterable: Iterable<T>) => void,\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n thisArg?: any\n): void {\n let index = 0;\n\n if (typeof callbackfn !== 'function') {\n throw new TypeError(`${callbackfn} is not a function`);\n }\n\n const boundCallbackfn = callbackfn.bind(thisArg);\n\n for (const value of iterable) {\n boundCallbackfn(value, index++, iterable);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAOO,SAAS,gBACd,UACA,YAEA,SACM;AACN,MAAI,QAAQ;AAEZ,MAAI,OAAO,eAAe,YAAY;AACpC,UAAM,IAAI,UAAU,GAAG,UAAU,oBAAoB;AAAA,EACvD;AAEA,QAAM,kBAAkB,WAAW,KAAK,OAAO;AAE/C,aAAW,SAAS,UAAU;AAC5B,oBAAgB,OAAO,SAAS,QAAQ;AAAA,EAC1C;AACF;","names":[]}
@@ -0,0 +1,7 @@
1
+ import {
2
+ iterableForEach
3
+ } from "./chunk-JU353VSE.mjs";
4
+ export {
5
+ iterableForEach
6
+ };
7
+ //# sourceMappingURL=iter-fest.iterableForEach.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Determines whether an iterable includes a certain element, returning true or false as appropriate.
3
+ *
4
+ * @param searchElement The element to search for.
5
+ * @param fromIndex The position in this iterable at which to begin searching for searchElement.
6
+ */
7
+ declare function iterableIncludes<T>(iterable: Iterable<T>, searchElement: T, fromIndex?: number): boolean;
8
+
9
+ export { iterableIncludes };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Determines whether an iterable includes a certain element, returning true or false as appropriate.
3
+ *
4
+ * @param searchElement The element to search for.
5
+ * @param fromIndex The position in this iterable at which to begin searching for searchElement.
6
+ */
7
+ declare function iterableIncludes<T>(iterable: Iterable<T>, searchElement: T, fromIndex?: number): boolean;
8
+
9
+ export { iterableIncludes };
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/iterableIncludes.ts
21
+ var iterableIncludes_exports = {};
22
+ __export(iterableIncludes_exports, {
23
+ iterableIncludes: () => iterableIncludes
24
+ });
25
+ module.exports = __toCommonJS(iterableIncludes_exports);
26
+
27
+ // src/private/toIntegerOrInfinity.ts
28
+ function toIntegerOrInfinity(value) {
29
+ if (value === Infinity || value === -Infinity) {
30
+ return value;
31
+ }
32
+ return ~~value;
33
+ }
34
+
35
+ // src/iterableIncludes.ts
36
+ function iterableIncludes(iterable, searchElement, fromIndex = 0) {
37
+ let index = 0;
38
+ fromIndex = toIntegerOrInfinity(fromIndex);
39
+ if (fromIndex !== Infinity) {
40
+ fromIndex = fromIndex === -Infinity ? 0 : fromIndex;
41
+ if (fromIndex < 0) {
42
+ throw new TypeError("fromIndex cannot be a negative finite number");
43
+ }
44
+ for (const item of iterable) {
45
+ if (index++ >= fromIndex && Object.is(item, searchElement)) {
46
+ return true;
47
+ }
48
+ }
49
+ }
50
+ return false;
51
+ }
52
+ // Annotate the CommonJS export names for ESM import in node:
53
+ 0 && (module.exports = {
54
+ iterableIncludes
55
+ });
56
+ //# sourceMappingURL=iter-fest.iterableIncludes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/iterableIncludes.ts","../src/private/toIntegerOrInfinity.ts"],"sourcesContent":["import toIntegerOrInfinity from './private/toIntegerOrInfinity';\n\n/**\n * Determines whether an iterable includes a certain element, returning true or false as appropriate.\n *\n * @param searchElement The element to search for.\n * @param fromIndex The position in this iterable at which to begin searching for searchElement.\n */\nexport function iterableIncludes<T>(iterable: Iterable<T>, searchElement: T, fromIndex: number = 0): boolean {\n let index = 0;\n\n fromIndex = toIntegerOrInfinity(fromIndex);\n\n if (fromIndex !== Infinity) {\n fromIndex = fromIndex === -Infinity ? 0 : fromIndex;\n\n if (fromIndex < 0) {\n // TODO: Support negative fromIndex.\n throw new TypeError('fromIndex cannot be a negative finite number');\n }\n\n for (const item of iterable) {\n if (index++ >= fromIndex && Object.is(item, searchElement)) {\n return true;\n }\n }\n }\n\n return false;\n}\n","export default function toIntegerOrInfinity(value: number): number {\n if (value === Infinity || value === -Infinity) {\n return value;\n }\n\n return ~~value;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAe,SAAR,oBAAqC,OAAuB;AACjE,MAAI,UAAU,YAAY,UAAU,WAAW;AAC7C,WAAO;AAAA,EACT;AAEA,SAAO,CAAC,CAAC;AACX;;;ADEO,SAAS,iBAAoB,UAAuB,eAAkB,YAAoB,GAAY;AAC3G,MAAI,QAAQ;AAEZ,cAAY,oBAAoB,SAAS;AAEzC,MAAI,cAAc,UAAU;AAC1B,gBAAY,cAAc,YAAY,IAAI;AAE1C,QAAI,YAAY,GAAG;AAEjB,YAAM,IAAI,UAAU,8CAA8C;AAAA,IACpE;AAEA,eAAW,QAAQ,UAAU;AAC3B,UAAI,WAAW,aAAa,OAAO,GAAG,MAAM,aAAa,GAAG;AAC1D,eAAO;AAAA,MACT;AAAA,IACF;AAAA,EACF;AAEA,SAAO;AACT;","names":[]}
@@ -0,0 +1,8 @@
1
+ import {
2
+ iterableIncludes
3
+ } from "./chunk-27NJVC7K.mjs";
4
+ import "./chunk-W5NEOEVE.mjs";
5
+ export {
6
+ iterableIncludes
7
+ };
8
+ //# sourceMappingURL=iter-fest.iterableIncludes.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Returns the index of the first occurrence of a value in an iterable, or -1 if it is not present.
3
+ *
4
+ * @param searchElement The value to locate in the iterable.
5
+ * @param fromIndex The iterable index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
6
+ */
7
+ declare function iterableIndexOf<T>(iterable: Iterable<T>, searchElement: T, fromIndex?: number): number;
8
+
9
+ export { iterableIndexOf };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Returns the index of the first occurrence of a value in an iterable, or -1 if it is not present.
3
+ *
4
+ * @param searchElement The value to locate in the iterable.
5
+ * @param fromIndex The iterable index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
6
+ */
7
+ declare function iterableIndexOf<T>(iterable: Iterable<T>, searchElement: T, fromIndex?: number): number;
8
+
9
+ export { iterableIndexOf };