import { Index , List } from '../types' ; import { IndexOf } from './types' ; import { Maybe } from '@typed/maybe' ; import { curry2 } from '@typed/functions' ; import { equals } from '@typed/logic' ; import { findIndex } from '../findIndex' ; name export const indexOf = curry2 ( __indexOf ) ; function __indexOf < A > ( value , list ) { return findIndex ( equals ( value ) , list ) ; }