JuliaLang/julia

Comparison operator in findmin() variants

Open

#14.216 geöffnet am 1. Dez. 2015

Auf GitHub ansehen
 (18 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Julia (5.773 Forks)batch import
collectionshelp wanted

Repository-Metriken

Stars
 (48.709 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 20T 6h) (157 gemergte PRs in 30 T)

Beschreibung

This issue was raised in the mailing list: https://groups.google.com/forum/#!topic/julia-users/iBydnBqQgxg

Although we can define a custom type and specialize the < operator for it, sometimes we may be interested in testing different operators on the spot. What are your thoughts on an additional option a la C++?

findmin(array, lt=<)

Contributor Guide