rafaqz / DimensionalData.jl

Named dimensions and indexing for julia arrays and other data
https://rafaqz.github.io/DimensionalData.jl/stable/
MIT License
262 stars 38 forks source link

let Near At and Contains select ranges between two values #717

Open rafaqz opened 1 month ago

rafaqz commented 1 month ago

This PR lets us do Near(a, b) to select a range of values nearest those end points, and the same for Contains and At.

Mostly this is because its not easy to get Near behavior for range endpoints - its either .. or Touches with nothing in between. Touches pretty much duplicates Contains now (wish I realised that possibility earlier).