import * as tsplus_module_1 from "@effect/core/stm/TArray/operations/indexOfFrom";
/**
 * Get the first index of a specific value in the array or -1 if it does not
 * occur.
 *
 * @tsplus fluent ets/TArray indexOf
 */

export function indexOf_(self, equivalence) {
  return a => tsplus_module_1.indexOfFrom_(self, equivalence)(a, 0);
}
/**
 * Get the first index of a specific value in the array or -1 if it does not
 * occur.
 *
 * @tsplus static ets/TArray/Aspects indexOf
 */

export const indexOf = equivalence => self => indexOf_(self, equivalence);
//# sourceMappingURL=indexOf.mjs.map