Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

  Some other cool features of Elixir:
    ...
    * List comprehensions
I'd just like to point out that Erlang has list comprehensions as well.


Shh! I know, the list just looked dumb with only two items.


Feeling a little Rick Perry this morning? :-)


Polymorphic records are worth a mention.


Not only list comprehensions, but database comprehensions as well.


Are you referring to Erlang or Elixir? Erlang has QLC (Query List Comprehensions) which work like that for Mnesia, for instance. I couldn't find information on this in the Elixir docs but I probably didn't know where to look.


Yes, I was referring to Erlang's QLC module.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: