JuliaArrays/StaticArrays.jl

Provide isless

Open

#367 opened on Feb 16, 2018

View on GitHub
 (9 comments) (0 reactions) (0 assignees)Julia (839 stars) (154 forks)batch import
featuregood first issue

Description

For tuples there is

(1, 2) < (1, 3) #true

Would it make sense to have it for SVectors as well?

SVector(1, 2) < SVector(1, 3) # ERROR: MethodError: no method matching isless(::SVector{2,Int64}, ::SVector{2,Int64})

My use case is to sort a long Vector of small SVector elements.

Contributor guide

Provide isless · JuliaArrays/StaticArrays.jl#367 | Good First Issue