4 ms·
not the OP, but I've had a side project in Elixir and often I wanted to browse/play with some of the last saved models in repl. When I get the collection using
by alehander42 10y ago
not the OP, but I've had a side project in Elixir and often I wanted to browse/play with some of the last saved models in repl. When I get the collection using `ecto`'s `Repo.all..` I can't just `bets[4]` or `bets[-2]`, I have to do weird gymnastics like `hd(tl(bets |> Enum.reverse))`
- smss79 10y agohttp://elixir-lang.org/docs/stable/elixir/Enum.html#at/3 http://elixir-lang.org/docs/stable/elixir/Enum.html#at/3
- alehander42 10y agothank you!