JuliaLang/julia

Comparison operator in findmin() variants

Open

#14 216 ouverte le 1 déc. 2015

Voir sur GitHub
 (18 commentaires) (0 réactions) (0 assignés)Julia (5 773 forks)batch import
collectionshelp wanted

Métriques du dépôt

Stars
 (48 709 stars)
Métriques de merge PR
 (Merge moyen 20j 6h) (157 PRs mergées en 30 j)

Description

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=<)

Guide contributeur