Latest #list-comprehension Threads 
I was using a for loop while matching on a pattern something like this
for {a,b, _} <- my_list do
...
end
And I noticed that this wa...
New
Hi all, I’m trying to do some Leetcode exercises in elixir.
I have a function that takes an integer and it needs to return a list of lis...
New
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
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
I am a complete Elixir beginner. I am trying to understand certain concepts with the following Mastermind sub-problem.
Suppose I have tw...
New
These two work:
iex(1)> for {key, val} <- %{"a" => 1, "b" => 2}, do: {key, val * val}
[{"a", 1}, {"b", 4}]
iex(2)> for {...
New
Background
I have some code that uses list comprehensions in elixir and performs some long operations. I need this code to be lazily eval...
New
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
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
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
This Week's Trending
This Month's Trending
This Year's Trending
I was using a for loop while matching on a pattern something like this
for {a,b, _} <- my_list do
...
end
And I noticed that this wa...
New
Last Three Year's Trending
Trending Over Three Years
Coming from Python and its version of list comprehensions, I am looking for a way to
accomplish in Elixir, transposition of a list of li...
New
Background
I have some code that uses list comprehensions in elixir and performs some long operations. I need this code to be lazily eval...
New
Say we have a simple list comprehensions:
for x <- [some_list] do
case _compute(x) do
nil -> nil # directly exclude this val...
New
How would you write the accepted answer of https://stackoverflow.com/questions/19293481/how-to-elegantly-interleave-two-lists-of-uneven-l...
New
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
Hi all, I’m trying to do some Leetcode exercises in elixir.
I have a function that takes an integer and it needs to return a list of lis...
New
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
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
This is from my arbitrage project. I need to find the best probability of where the client can buy and where he can sell to get maximum p...
New
These two work:
iex(1)> for {key, val} <- %{"a" => 1, "b" => 2}, do: {key, val * val}
[{"a", 1}, {"b", 4}]
iex(2)> for {...
New
I am a complete Elixir beginner. I am trying to understand certain concepts with the following Mastermind sub-problem.
Suppose I have tw...
New
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
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
Latest on Elixir Forum
Get money off!
The Pragmatic Bookshelf
35% off any eBook
Manning Publications
45% off any item
ElixirCasts
10% off for life
The Pragmatic Studio
20% off any course
AppSignal
10% off for 12 months
Honeybadger
10% off for 12 months
Simply use coupon code "devtalk.com" or "elixirforum" at checkout!
Filter by Type:
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #exunit
- #elixirconf
- #discussion
- #javascript
- #podcasts
- #code-sync
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #api
- #processes
- #forms
- #metaprogramming
- #security
- #performance
- #hex







