Elixir can do some fucking amazing shit.
>Bitstring generators are also supported and are very useful when you need to comprehend over bitstring streams. The example below receives a list of pixels from a binary with their respective red, green and blue values and converts them into tuples of three elements each:iex> pixels = <<213, 45, 132, 64, 76, 32, 76, 0, 0, 234, 32, 15>>
iex> for <<r::8, g::8, b::8 <- pixels>>, do: {r, g, b}
[{213, 45, 132}, {64, 76, 32}, {76, 0, 0}, {234, 32, 15}]
http://elixir-lang.org/getting-started/comprehensions.html#bitstring-generators
Now you're just getting desperate... Go shill your shitty language somewhere else.
SAGE
>>58748188
anon told me elixir is hipster trash. Am confused. What should i do now?
>>58749062
Fag
>>58749062
Built on top of the Erlang VM, it inherits many of its features and improves a lot of them, while still allowing you to use native Erlang.
All the while providing a, in my opinion, cleaner syntax.
You wouldn't dare call Erlang shitty, now would you?
>>58748188Python 3.6.0 (default, Jan 16 2017, 12:12:55)
>>> pixels [213, 45, 132, 64, 76, 32, 76, 0, 0, 234, 32, 15]
>>> [(r, g, b, ) for (r, g, b, ) in zip(pixels[0::3], pixels[1::3], pixels[2::3])]
[(213, 45, 132), (64, 76, 32), (76, 0, 0), (234, 32, 15)]