derefr
searching PlanetScale…
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
2105 ms·
- 7801.▲
- 7802.▲
- 7803.▲
- 7804.▲
- 7805.▲
- 7806.▲
- 7807.▲
- 7808.▲
- 7809.▲
- 7810.▲
My favourite approach to this so far, that I would like other libraries to copy, is Elixir’s Access protocol, which gives you e.g.: foo = %{key: [[1, 2], [3, 4], [5, 6]]}
path = [:key, Access.all, Access.at(0)]
get_in foo, p - 7811.▲
- 7812.▲
- 7813.▲
- 7814.▲
- 7815.▲
- 7816.▲
- 7817.▲
- 7818.▲
- 7819.▲
- 7820.▲
- 7821.▲
- 7822.▲
- 7823.▲
- 7824.▲
- 7825.▲
- 7826.▲
- 7827.▲
- 7828.▲
- 7829.▲
- 7830.▲
More ›