Хотите угореть по системам типов? Посмотрите на реализацию сортировки на зависимых типах в Idris.
https://github.com/stepancheg/idris-sort/
#types
https://github.com/stepancheg/idris-sort/
#types
GitHub
GitHub - stepancheg/idris-sort
Contribute to stepancheg/idris-sort development by creating an account on GitHub.