UNPKG

lean4-code-actions

Version:

Refactorings and snippets for Lean 4

6 lines (4 loc) 148 B
import { NonEmptyArray } from './index' export const isNonEmptyArray = <T>(array: T[]): array is NonEmptyArray<T> => { return array.length > 0 }