News for hackers. Stuff that matters.
Re:Thoughts on Elixir, Phoenix and LiveView after 18 months ... by foldr on Monday August 14, 2023 @02:02AM (#37117964)
> keyword lists are constant time, ordered list

Unless there’s some kind of behind-the-scenes magic that I’m unaware of, keyword list look up is O(n), not O(1).

Re:Thoughts on Elixir, Phoenix and LiveView after 18 months ... by bitwalker on Monday August 14, 2023 @02:43AM (#37118175)
No, you’re exactly right, they are just regular singly-linked lists of tuples, nothing more.
Re:Thoughts on Elixir, Phoenix and LiveView after 18 months ... by sodapopcan on Monday August 14, 2023 @06:36AM (#37119432)
Oops yes, typo sorry, meant non-constant.