cnuernber / dtype-next

A Clojure library designed to aid in the implementation of high performance algorithms and systems.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

universal comparator

genmeblog opened this issue · comments

After fixing #99 some regression was introduced in tablecloth regarding comparison of any type. Till the last version, the following code was working. < or > could be treated as an universal comparator.

(tech.v3.datatype.argops/argsort tech.v3.datatype.functional/< ["ab" "bc"])
;; => [0 1]

Is it possible to make a comparator which acts universally on every type or should I reach for Clojure comparator?