News for hackers. Stuff that matters.
Re:Rails 5.0: Action Cable, API mode, and more by frigo_1337 on Friday July 01, 2016 @04:18AM (#12014584)
...but why do you want to access it by index?

Since you refuse to be more specific, it sounds like you're just not willing to learn the language and the way problems are solved with it.

Expecting mutable C-type arrays in elixir/erlang is like expecting classes and lambdas in an assembly language. It's just not a good fit for what the language was designed to do.

Re:Rails 5.0: Action Cable, API mode, and more by alehander42 on Friday July 01, 2016 @07:04AM (#12015090)
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))`
Re:Rails 5.0: Action Cable, API mode, and more by smss79 on Friday July 01, 2016 @07:36AM (#12015225)
Re:Rails 5.0: Action Cable, API mode, and more by alehander42 on Friday July 01, 2016 @04:34PM (#12019432)
thank you!