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
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
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
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 ...
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 → 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 impr...
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 er...
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
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
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
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
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
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
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

Options

Thread Display Mode




Thread Preview

Skip Thread Previews