Latest #comprehensions Threads Top

ub4
The problem with my code is that for x ← list, do: x+5 always returns garbage (e.g., ~c"\a\t\n\f\r"). It seems that all other values work...
New
silviurosu
I am rendering a comprehension inside Liveview template (a list of reviews). For each one when pressing a button I want to display an in...
New
josevalim
Hi everyone, This is a proposal for introducing local accumulators to Elixir. This is another attempt of solving the comprehension probl...
1043 10934 245
New
josevalim
UPDATE: This proposal has been retracted. Read the new proposal here: Local accumulators for cleaner comprehensions Hi everyone, This i...
New
jschepmans
Hello all, I’m going through the open source beta version of the Dockyard Academy curriculum (GitHub - DockYard-Academy/curriculum · Git...
New
Sebb
there is this exercism exercise: Given an input integer N, find all Pythagorean triplets for which a + b + c = N. For example, with N ...
New
heves
For a school assignment, I need to esentially brute-force check every possible solution for a puzzle. This is acceptable, as the task is ...
New
heves
I’d like to generate a list from a variable length list of lists, choosing one element from each one. Like this: list = [[:a, :b], [1, 2...
New
Sebb
I understand these results: iex(1)> for <<b::1 <- <<0xff::16>> >>, do: b [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1,...
New
cblavier
Do you think a join option would be a good idea for comprehensions? Something like Enum.map_join/2 that could map and join lists in a si...
New

This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

ub4
The problem with my code is that for x ← list, do: x+5 always returns garbage (e.g., ~c"\a\t\n\f\r"). It seems that all other values work...
New

Last Three Year's Trending Top

josevalim
Hi everyone, This is a proposal for introducing local accumulators to Elixir. This is another attempt of solving the comprehension probl...
1043 10934 245
New
josevalim
UPDATE: This proposal has been retracted. Read the new proposal here: Local accumulators for cleaner comprehensions Hi everyone, This i...
New
mudasobwa
The stream-based implementation of Kernel.SpecialForms.for/1. Allows the same syntax as for and acts the same way. This is an initial ...
New
silviurosu
I am rendering a comprehension inside Liveview template (a list of reviews). For each one when pressing a button I want to display an in...
New

Trending Over Three Years Top

Fl4m3Ph03n1x
Background I am trying to up my Functional Programming (FP) skills and one of the things that newcomers first learn in FP is the Option T...
New
bishoy301
Hello everyone, I’m new to Elixir, Phoenix, and Liveview so I’m hoping that this question isn’t too basic. I have a Liveview that curren...
New
Mnowak
I am trying to get my head around comprehensions and enum.each I am trying to get phoenix to render a list of buttons. My data structur...
New
sandeshsoni
Need help! need to optimize. My terminal hangs when I run the code. I have a list of 1_78_000 words i.e 178k words I need pairs of wor...
New
heves
I’d like to generate a list from a variable length list of lists, choosing one element from each one. Like this: list = [[:a, :b], [1, 2...
New
experimentix
Hello I’m new to elixir and i’m struggling with this problem I’ve a map lets call it order and that has several products I want to loo...
New
cblavier
Do you think a join option would be a good idea for comprehensions? Something like Enum.map_join/2 that could map and join lists in a si...
New
Fl4m3Ph03n1x
Background For the longest time I have been estranged to the magic lands of comprehensions in FP languages. Now I am trying to pick it u...
New
Jayshua
I’m trying to figure out how to use Elixir’s version of for comprehensions. The Phoenix live view generator creates this code in the liv...
New
csadewa
Hi all, recently i have been trying out for comprehension after reading Introducing `for let` and `for reduce` and realizing i am also ha...
New
jschepmans
Hello all, I’m going through the open source beta version of the Dockyard Academy curriculum (GitHub - DockYard-Academy/curriculum · Git...
New
Sebb
I can do: if true, do: :foo, else: :bar and: if true do :foo else :bar end And I can do: for i <- 0..3, do: {i, i+i}, into: %...
New
david234
I have this list which has order and order_details. I want to update the quantity field inside order details by subtracting it with the q...
New
heves
For a school assignment, I need to esentially brute-force check every possible solution for a puzzle. This is acceptable, as the task is ...
New
blksheephw
Hi, What would be the recommended way to divide every item in an enumerable, in this case a list, by every item at the corresponding in...
New
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement