Latest #pipe-operator Threads Top

BartOtten
How do you all enter the pipe operator |> on your keyboard? I keep having troubles with it :frowning:
New
octavio-robles
Hi everyone, I’ve been working predominantly with R for most of my projects, and I’ve grown quite accustomed to using Shift+Command+M to...
New
mayel
Provides OK-piping (similar to libraries like ok) and adds the ability to pipe into any argument position (similar to magritte) of the fo...
New
holasoymas
I’m encountering a strange issue when using Enum.filter/2 in my Elixir script. The problem occurs when I filter a list with a condition t...
New
kwhite
I just ran into this unexpected behavior. I had a short function that is piping its result into other functions. When I converted the sho...
New
Gilou06
Hello, I keep using a paradigme using a homemade function to make my life easier when piping. I wonder if there is a better way to achi...
New
dub2
def eta() do result = @dday |> Timex.diff(NaiveDateTime.utc_now(), :duration) |> Timex.format_duration(:humaniz...
New
nikiiv
I am learning Elixir and I wonder why I can’t use anon function in a pipe but must use the then macro For example this works “Hello” |&...
New
hawkyre
Is there any way to leverage the pipe operator to access properties of an object after a sequence of operations? I’m trying to do a sequ...
New
keep_zen
For a functor, map(map(functor, fun), fun2) equal as map(functor, fun2*fun). In Elixir, I think Enum module is a functor, but |> did ...
New

This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

Last Three Year's Trending Top

BartOtten
How do you all enter the pipe operator |> on your keyboard? I keep having troubles with it :frowning:
New
mayel
Provides OK-piping (similar to libraries like ok) and adds the ability to pipe into any argument position (similar to magritte) of the fo...
New
kwhite
I just ran into this unexpected behavior. I had a short function that is piping its result into other functions. When I converted the sho...
New
octavio-robles
Hi everyone, I’ve been working predominantly with R for most of my projects, and I’ve grown quite accustomed to using Shift+Command+M to...
New
holasoymas
I’m encountering a strange issue when using Enum.filter/2 in my Elixir script. The problem occurs when I filter a list with a condition t...
New

Trending Over Three Years Top

Ankhers
Just a little information upfront. Generally speaking, if I feel like I need to either break a pipe chain or use an anonymous function in...
New
jihantoro
my original syntax : result = Enum.map( from(Repo, where: ^whitelisted_params) |> where([schema], like(schema.nama, ^"#{nam...
New
sebsel
So I have looked for this topic and found similar ones but not actually this one. Forgive me if I missed it. While I really love Elixirs...
New
Gilou06
Hello, I keep using a paradigme using a homemade function to make my life easier when piping. I wonder if there is a better way to achi...
New
Qqwy
EDIT: CapturePipe has been released as a library! Please give it a go and let us know if you find any mistakes. Hi everyone! Yesterda...
New
hauleth
Simple and clean library that is inspired by discussion in Elixir’s issue tracker and uses operator suggested by @josevalim (however it m...
New
danj
I wanted to share this code for a problem that regularly comes up and that I usually solve with multi-headed functions or with clauses. T...
New
ahmadferdous
I have structs Company, Employee and a list of struct values employees. Struct Employee contains 2 fields - hours and bill. I need to kn...
New
hawkyre
Is there any way to leverage the pipe operator to access properties of an object after a sequence of operations? I’m trying to do a sequ...
New
silviurosu
I need to convert in place in a map some values only of they exist. The key can be either binary or atom. Is there a more Elixir way to ...
New
keep_zen
For a functor, map(map(functor, fun), fun2) equal as map(functor, fun2*fun). In Elixir, I think Enum module is a functor, but |> did ...
New
zerogvt
Hi all, first post here (also a newbie in elixir/FP). So, I have next pipe code which works but also looks funny: case {status_code, bo...
New
rm-rf-etc
This is basically the same question I’ve asked before, I’m just wondering if anything has changed since I last asked, or if there’s any o...
New
nikiiv
I am learning Elixir and I wonder why I can’t use anon function in a pipe but must use the then macro For example this works “Hello” |&...
New
Qqwy
Inspired by this topic I thought it might be interesting to talk about what pipelines we have encountered in the wild: Whenever you com...
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