# Idiomatic way to find extreme and the next (less) extreme unique values

**URL:** https://discourse.julialang.org/t/idiomatic-way-to-find-extreme-and-the-next-less-extreme-unique-values/42331
**Category:** New to Julia
**Created:** [July 1, 2020, 2:10am UTC](https://discourse.julialang.org/t/idiomatic-way-to-find-extreme-and-the-next-less-extreme-unique-values/42331 "2020-07-01T02:10:49Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![pauljurczak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pauljurczak/32/921_2.png) [@pauljurczak](https://discourse.julialang.org/u/pauljurczak)
#### Post date: [July 1, 2020, 6:21am UTC](https://discourse.julialang.org/t/idiomatic-way-to-find-extreme-and-the-next-less-extreme-unique-values/42331/9 "2020-07-01T06:21:47Z")

</div>

Timings on my PC are so close to 10x, they almost look fake 😉

```julia
  13.558 ms (2 allocations: 7.63 MiB)
  1.358 ms (0 allocations: 0 bytes)

```

---

_[View the full topic](https://discourse.julialang.org/t/idiomatic-way-to-find-extreme-and-the-next-less-extreme-unique-values/42331)._
