Latest #lists Threads Top

Trolleger
I heard that editing a tuple is a much more expensive operation then editing a list i just don’t get the why, when a list is mutated a n...
New
christhekeele
Hey all! I’m releasing TaggedTupleShorthand today as an experiment with Elixir syntax. Field Punning The aim of the library is to suppo...
New
cevado
I’ve just publish something I’ve been experimenting with: Since the discussion about local accumulators I’ve joined some discussions on...
New
joshua.aug
I have a function that takes a list as input. If I call the function with a range e.g. 0..3 it doesn’t work. I assume I need to make ano...
New
spencer.christensen
Greetings friends! I am reading through SCIP and using Elixir to help me work through the material (to better understand both the materi...
New
spencer.christensen
I did not formally study Computer Science, so please bear with me if I am missing something obvious. I am studying the inner workings of ...
New
chmod777
I have the following list: [ :juridical_person_document, [re_developments: [[properties: [[re_development: [:re_developer]]]]]], ...
New
RooSoft
I am keeping connections to a list of servers represented by URLs. Each of them has a pid if connected. Ideally, I’d like to have a simp...
New
scandingo
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
shahryarjb
Hi friends, I have a nested list that is unstructured, and I really know how much it has nested list or map in itself. I just need to se...
New

This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

Trolleger
I heard that editing a tuple is a much more expensive operation then editing a list i just don’t get the why, when a list is mutated a n...
New

Last Three Year's Trending Top

Andres
Hello. I’m trying to check if a list has duplicates. I didn’t have problems doing it with length and size: def duplicate(list) do ...
New
odohMei7
How can I efficiently append one entry to a list? Is this the best solution: history = [{1,100}, {2,300}, {3,200}] current = {4,150} ch...
New
DaAnalyst
As per the headline, I hereby use the opportunity to thank the LiveView team for finally introducing (as of v0.18.12) the long awaited me...
New
dimitarvp
Heya. I am inviting you to copy-paste the module below and add your own functions and measure them, or simply give other ideas about how...
New
spencer.christensen
I did not formally study Computer Science, so please bear with me if I am missing something obvious. I am studying the inner workings of ...
New
chmod777
I have the following list: [ :juridical_person_document, [re_developments: [[properties: [[re_development: [:re_developer]]]]]], ...
New
RooSoft
I am keeping connections to a list of servers represented by URLs. Each of them has a pid if connected. Ideally, I’d like to have a simp...
New
christhekeele
Hey all! I’m releasing TaggedTupleShorthand today as an experiment with Elixir syntax. Field Punning The aim of the library is to suppo...
New
spencer.christensen
Greetings friends! I am reading through SCIP and using Elixir to help me work through the material (to better understand both the materi...
New
cevado
I’ve just publish something I’ve been experimenting with: Since the discussion about local accumulators I’ve joined some discussions on...
New
joshua.aug
I have a function that takes a list as input. If I call the function with a range e.g. 0..3 it doesn’t work. I assume I need to make ano...
New

Trending Over Three Years Top

svilen
Often I want to create a list in Elixir that contains certain elements, but only if specific conditions are met for each element or group...
New
mazzie
I have a list. I am trying to choose specific combinations from that list and making a list of list of those combinations. My code runs s...
New
Sanjibukai
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
Ivanori
On a page there’re 3 columns. And I have a list of objects. Every object should go one of the 3 columns in the subsequent order. 1 ->...
New
script
I have a list of tuple like this tuple = [{"id", "provider_id"}, {"cost", "price"}] . And i have list of maps: list_of_maps...
New
Qqwy
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
acrolink
And how to convert the above list to [1, 2] (i.e. to list of integers). Thank you.
New
melmoth
Hi community, Being a newbie, this question may seems obvious for you, functional veterans (i'm discovering new skies with elixir and e...
New
voughtdq
I need to turn an integer into a list of digits. For example, given 1234 as input, the output should be [1, 2, 3, 4]. I am doing this r...
New
jhefreyzz
Hi, Is there an easier way to convert a list of structs to map. Extracting fields from the struct and in the nested struct and make it a...
New
7stud
What is the Elixir equivalent to Ruby’s Hash.new where you can specify a block that returns an empty list when you access a non-existent ...
New
chokchit
Hey guys, just want a little help. (1) How can I compare two list of maps and always supersedes list_2 over list_1 if they have the same...
New
shahryarjb
Hi, I have a list which includes some string or integer item that I need to convert it to string with a character like “/”, then I used E...
New
Sanjibukai
Hi everybody, Edit for TL;DR: How I can use SQL array_agg aggregate function with an Ecto fragment. Particularly how I can nest the se...
New
Euphorichuman
I’m managing my Postgres database with Ecto and I have come across a situation: In some of the fields for some of my records, I save empt...
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