UNPKG
lean4-code-actions
Version:
latest (1.1.32)
1.1.32
Refactorings and snippets for Lean 4
lean4-code-actions
/
libs
/
utils
/
array
/
sort.ts
2 lines
(1 loc)
•
114 B
text/typescript
View Raw
1
2
export
const
asStrings = <T>
(
getter
: (
object
: T) =>
string
) =>
(
a
: T,
b
: T
) =>
getter
(a).
localeCompare
(
getter
(b))