UNPKG

lean4-code-actions

Version:

Refactorings and snippets for Lean 4

6 lines (4 loc) 220 B
import { IsEqual } from '../lodash' export const startsWith = <T>(isEqual: IsEqual<T | undefined>) => (source: T[]) => (target: T[]) => { return target.every((value, index) => isEqual(target[index])(source[index])) }