const fileName_1 = "(@effect/core) _src/stm/TArray/operations/lastIndexOf.ts";
import * as tsplus_module_1 from "@effect/core/stm/TArray/operations/length";
import * as tsplus_module_2 from "@effect/core/stm/TArray/operations/lastIndexOfFrom";
/**
 * Get the first index of a specific value in the arrayor -1 if it does not
 * occur.
 *
 * @tsplus fluent ets/TArray lastIndexOf
 */

export function lastIndexOf_(self, equivalence) {
  return a => {
    return tsplus_module_2.lastIndexOfFrom_(self, equivalence)(a, tsplus_module_1.length(self, fileName_1 + ":9:53") - 1);
  };
}
/**
 * Get the first index of a specific value in the arrayor -1 if it does not
 * occur.
 *
 * @tsplus static ets/TArray/Aspects lastIndexOf
 */

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