This Week's Trending
This Month's Trending
This Year's Trending
For a list of integers, I can simply write a typespec like this:
@type foo() :: [integer()] # or list(integer())
But what about a Strea...
New
Last Three Year's Trending
Hello!
I’m trying to filter list of maps to remove items where value of key was declared previously in this list. List that I have:
lis...
New
How would you leverage or translate an existing, clear Enum.reduce/3-alike struct method into a valid defimpl for Enumerable.reduce/3?
W...
New
The Comprehensions article says:
In Elixir, it is common to loop over an Enumerable … Comprehensions are syntactic sugar for such const...
New
Hello!
I’m trying to filter list of maps to remove items where value of key was declared previously in this list. List that I have:
lis...
New
Background
I have a structure where the new function requires a parameter to be part of a closed set of values (think of it as an enum). ...
New
Is there a guard for testing protocol implementation?
is_proto/2
For example, how to guard test for implementing Enumerable?
I underst...
New
Trending Over Three Years
I have a list say
x = ["23gh", "56kh", "97mh"]
I would like to pass each element to Val in each iteration.
Say, in iteration 1 -------...
New
A proper list is a list that ends in an empty list, such as:
[1, 2, 3] (which is syntactic sugar for [1 | [ 2 | [3 | [] ] ] ] )
An im...
New
what is the closest thing to Arrays in Elixir. By arrays I mean, a container for values which I can access in constant time.
I’ve looked...
New
Sorry because many other people asked a similar question… but how do you implement the Enumerable protocol for a struct? I see the docs ...
New
I wrapped an API using pagination with Stream.unfold so that it returns Enum.t (Enumerable.t).
Is it possible to specify @spec of value...
New
Ultimately I’d like to update the values of keys in myMap based on whether the key is in myList and in myOtherList:
myList = ["a", "b", ...
New
How would I map over something like this?
results = [
{"John Smith", %{"twitter" => "jsmith"}},
{"Lisa Smith", %{"twitter" =>...
New
Example:
iex(1)> Enum.reduce([], fn x,y -> y end)
** (Enum.EmptyError) empty error
(elixir) lib/enum.ex:1754: Enum.reduce/2
...
New
trades =
%{
"3QvxP6YFBKpWJSMAfYtL8Niv8KmmKsnpb9uQwQpg8QN2" => [
%{
asset: "3QvxP6YFBKpWJSMAfYtL8Niv8KmmKsnpb9uQwQpg8QN2",...
New
Hello, Elixir gang. I’m starting to get the hang of Elixir, which has been challenging since I’m not coming from Ruby. I have been strugg...
New
Hey I a trying to make a login system for my phoenix app, but I am having an error on successful login attempt:
# protocol Enumerable no...
New
Bin Counting elements in a collection by updating a counter map is much slower than first grouping the elements by bin and then count eac...
New
I have a list of maps.
For example,
students = [%{ sid: 1, name: "Bob", score: 80}, %{ sid: 2, name: "Kelly", score: 60},.....]
I have...
New
Like the title says, I want to pass a stream to two outputs.
I am looking for something like below:
function_which_returns_stream
|&...
New
G’day OGs
I have this code as follows:
def create(conn, %{"a" => a_params}) do
with true <- someClause(),
a_params ...
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:
Sub Categories:
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







