Latest #maps Threads 
Hey all!
I’m releasing TaggedTupleShorthand today as an experiment with Elixir syntax.
Field Punning
The aim of the library is to suppo...
New
I’ve got this bit of code; I’m wondering why create_or_open_room always creates a new room, even when there is an existing child process ...
New
I’ve just publish something I’ve been experimenting with:
Since the discussion about local accumulators I’ve joined some discussions on...
New
When you know that the map has only one key (from a guard for instance), is there something more efficient than this:
[{k, v}] = Map.to_...
New
Hey everyone!
How can I keep the original ordering of a Map?
I’ve created one and notice that after the creation, the order of elements...
New
So I have found a pothole and I am not sure what the solution is.
I have a pretty standard JSON api in phoenix, I am using ecto, and I a...
New
Hi folks,
I’m building a library and I have an interesting case when it comes to pattern matching with maps.
Would appreciate any help ...
New
I’ve just released what I believe is a production-ready version of my library, es6_maps.
es6_maps hacks into the Elixir compiler to enab...
New
I’m new to functional programming and I’d like to know the idiomatic way to convert a flat list of maps into a nested list.
For some bac...
New
We all know that we’re able to build a map using the literal syntax using %{key1 => value1, key2 => value2}, as well as update exis...
New
This Week's Trending
This Month's Trending
This Year's Trending
Lets say i have map like this fetching from my database
%{"_id" => #BSON.ObjectId<58eb1a7a9ad169198c3dXXXX>, "email" => "XX...
New
Last Three Year's Trending
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
Hi all! Just want to know if there is someone else thinking Map.take is not a very good name for function that returns subset of a map. I...
New
Hi folks,
I’m building a library and I have an interesting case when it comes to pattern matching with maps.
Would appreciate any help ...
New
I’ve just released what I believe is a production-ready version of my library, es6_maps.
es6_maps hacks into the Elixir compiler to enab...
New
Hey everyone!
How can I keep the original ordering of a Map?
I’ve created one and notice that after the creation, the order of elements...
New
I’ve got this bit of code; I’m wondering why create_or_open_room always creates a new room, even when there is an existing child process ...
New
So I have found a pothole and I am not sure what the solution is.
I have a pretty standard JSON api in phoenix, I am using ecto, and I a...
New
When you know that the map has only one key (from a guard for instance), is there something more efficient than this:
[{k, v}] = Map.to_...
New
Hey all!
I’m releasing TaggedTupleShorthand today as an experiment with Elixir syntax.
Field Punning
The aim of the library is to suppo...
New
I’ve just publish something I’ve been experimenting with:
Since the discussion about local accumulators I’ve joined some discussions on...
New
Trending Over Three Years
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum.
...
New
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
Hello, I have map which I want to convert it to string like this:
the map:
%{last_name: "tavakkoli", name: "shahryar"}
the string I ne...
New
I would like to propose a syntax for merging maps.
Map can be updated via | operator, like %{map | key: value}
I believe it would be ve...
New
Hi,
I am new to elixir and here is part of the code I dont like
slider = case Map.has_key?(attrs, :slider_id) do
true -> get_slid...
New
Having written a lot more Phoenix templates as of late, I’m doing a lot more attribute checks than I would like. In Ruby 2.3 we could use...
New
Hey everyone, this has been on my mind for some time and I’d love your input on it!
TLDR: I feel like maps are superioer for storing and...
New
Hello everybody,
As it’s possible to partially pattern match with maps like so:
iex> %{b: 2} = %{a: 1, b: 2, c: 3}
%{a: 1, b: 2, c: ...
New
I’ve done a lot of GitHub searching but I can’t find an erlang/elixir data structure similar to Java’s SortedMap.
I’ve been using ETS :s...
New
Hi,
I am relatively new to Elixir and need a support from more advanced users.
I try to do a simple thing → Flatten Map
But Elixir and...
New
Hello everyone,
I wrote a small library today called MapDiff.
It returns a map listing the (smallest amount of) changes to get from map...
New
Hi,
so when I Map.put even if I use the string quotation marks on the key Elixir will render the map with atoms. This is further proble...
New
I am new to elixir devlopement , my map is looks like follow
map = %{"name" => "test"}
But when i trying to access map.name I am ...
New
Im trying to get one element and the rest of the map with pattern matching but I’m only get compile errors.
I came up with this:
%{“One...
New
I have a key as a variable, I want to create a Map with a key :key1 or "key2" using one of the variables, but I'm unable to:
iex(24)&g...
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
- #advent-of-code
- #distillery
- #api
- #processes
- #forms
- #metaprogramming
- #security
- #performance
- #hex
- #json







