UNPKG

lean4-code-actions

Version:

Refactorings and snippets for Lean 4

2 lines (1 loc) 114 B
export const asStrings = <T>(getter: (object: T) => string) => (a: T, b: T) => getter(a).localeCompare(getter(b))