JuliaLang/julia

Comparison operator in findmin() variants

Open

#14,216 opened on Dec 1, 2015

View on GitHub
 (18 comments) (0 reactions) (0 assignees)Julia (5,773 forks)batch import
collectionshelp wanted

Repository metrics

Stars
 (48,709 stars)
PR merge metrics
 (Avg merge 20d 6h) (157 merged PRs in 30d)

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

Contributor guide