UNPKG

lean4-code-actions

Version:

Refactorings and snippets for Lean 4

6 lines (4 loc) 165 B
import { intersection } from 'remeda' export function hasIntersection<T>(arr1: readonly T[], arr2: readonly T[]) { return intersection(arr1, arr2).length !== 0 }