This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

arcanemachine
Just wondering since the knowledge cutoff for LLMs is about a year or so behind the current date. It would be nice if the models were ab...
New

Last Three Year's Trending Top

ollran
How can I pattern match against an arbitrary sized tuple? This works: {status, _, _} = {:ok, 1, 2} But what if I don’t know the structu...
New
bmitc
The question in the subject line is pretty self-explanatory, and I’m trying to understand perhaps a hidden misunderstanding. My understan...
New
grantwest
If I have nested structures, and I want to fetch a field from the a nested structure, but handle a nil case, is there a succinct way to d...
New
aceupmysleeves
Hi! I’m working in a liveview and want to fill attributes such as id, for label and title with a value from a for-loop. <ul> ...
New
JsonKody
This is highly subjective but in my mind Haskell and Ruby/Rust has one of the most beautiful lambda syntax \a b → a + b and |a, b| a +...
New
ghalestrilo
Hi :person_raising_hand: so, the Regex module supports named captures. Here’s an example from the docs for named_captures/3, which extrac...
New
monte_claro
In the latest versions. For the definitions of the functions as well as for calls. What’s recommended?
New
lud
Hello, I am wondering why it is not needed to unquote with defmodule when using variables that are defined outside of the call to defmod...
New

Trending Over Three Years Top

dylan-chong
def fun(options) do [parameter1: parameter1, parameter2: parameter2] = Enum.into(options, parameter1: 1, parameter2: 2) Is there an ...
New
ion
I’ve seen -> and <- used in Elixir books and articles, but I have not found a clear explanation to what they are called, and when t...
New
minhajuddin
I have seen the pattern %_{} being used to match against structs (notice the _ after the %). Is this documented somewhere? It seems to m...
New
Secretmapper
Hello! Elixir's syntax is pretty and expressive, but at the same time this comes on the cost of knowing just what the best way to write s...
New
leifericf
Hello, friends! Context: As you might know from this thread, I’m working on a presentation. Following a tour of Erlang history, I have...
New
pillaiindu
For example the following, iex(16)> cond do ...(16)> 2 + 2 == 5 -> ...(16)> "Not true" ...(16)> 2 * 2 == 3 -> ...(...
New
ollran
I think that this is called a function reference but I’m not sure. Anyway, this works: def start_link(_arg) do Task.start_link(&c...
New
TrailingDots
In the source code I find this pattern repeated over and over. As an example, in the elixir-1.5.3/lib/elixir/lib/enum.ex I find: @sp...
New
MeerKatDev
I was wondering what Elixir developers think about this: how to treat piping into an ok_tuple? I have no idea if there was a similar ques...
New
sodapopcan
I’m wondering exactly what a do block is. Is it a closure? Is it a procedure? Is it an anonymous function? Is it a lambda? Is it som...
New
TomHale
In Elixir Succinctly I read: Since everything in Elixir is an expression, and if is no exception, the if…else construct returns a value...
New
BrightEyesDavid
Hi all. I was searching for ways to determine whether or not an Ecto query results in (a) result(s) without requiring the database to sel...
New
dogweather
Here’s a screenshot of part of the Range API: What does the Types section communicate? To whom is it useful? What is this syntax … I...
New
Most
I don't understand how the capture syntax in the following expression is aware of how to use arguments without specifying &1 and &amp...
New
dogweather
Following the Adding Pages tutorial, I addded a new route, without creating the controller: get("/hello", HelloController, :index) An...
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