Latest #list-comprehension Threads 
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
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 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
How would you write the accepted answer of https://stackoverflow.com/questions/19293481/how-to-elegantly-interleave-two-lists-of-uneven-l...
New
This Week's Trending
This Month's Trending
This Year's Trending
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
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
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #ash-questions
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #exunit
- #discussion
- #javascript
- #elixirconf
- #library
- #oban-questions
- #dialyzer
- #docker
- #onsite
- #authentication
- #podcasts
- #full-time-contract
- #umbrella
- #code-sync
- #ecto-query
- #phoenix_html
- #iex
- #graphql
- #genstage
- #elixir-ls
- #nerves-questions
- #podcasts-by-brainlid
- #supervisor
- #websockets
- #distillery
- #advent-of-code
- #blog-post
- #livebook-questions
- #processes
- #forms
- #api
- #metaprogramming







