Latest #guards Threads Top

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
mruoss
Hey there Regarding performance, is there a difference between guards and generated functions using pattern matching? Or does the compil...
New
Fl4m3Ph03n1x
Background I am a fan of dialyzer and friends (looking at Gradient) and I try to have sepcs in my code as much as I can. To this end, I a...
New
miguelszerman
Inside the Elixir official documentation, the guards sections states: Not all expressions are allowed in guard clauses, but only a hand...
New
hst337
Why map update syntax does not work in guards? 1> case [1, 2, 3] of 1> X when #{x => 1}#{x => 2} =:= #{x => 2} -> X ...
New
artem
Hi all I am still in my early days with Elixir and relatively new to functional languages (did one hobby project in Elm), so most intere...
New
quda
Is it possible to create a function to accept only a valid json as parameter/argument ? Not map! Precisely, I need something that would ...
New
Sebb
I have this helper function where I exploit the Errors in Guards feature. def non_empty(val, _msg) when length(val) > 0, do: {:ok, va...
New
mario-mazo
Hello Im still trying to adapt to the dynamically typed nature of elixir and I have a doubt about testing a function that has a guard I...
New
altuntasfatih
Hey guys, I have a question about custom guard expression.I am trying to write multiple guard expressions with pattern matching however ...
New

This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

Last Three Year's Trending Top

mruoss
Hey there Regarding performance, is there a difference between guards and generated functions using pattern matching? Or does the compil...
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

Scoty
Hey, I am currently reading Programming Elixir and I am doing one of the exercises where you should write a solution to the “I’m thinkin...
New
Fl4m3Ph03n1x
Background I have a filter to where I am passing an anonymous function. In this function I want to check that the key of the tuple I am e...
New
mmport80
To those who consider themselves heavy users of guards, could you share your rules of thumb? When do you or don’t you use guards? How a...
New
altuntasfatih
Hey guys, I have a question about custom guard expression.I am trying to write multiple guard expressions with pattern matching however ...
New
quda
Is it possible to create a function to accept only a valid json as parameter/argument ? Not map! Precisely, I need something that would ...
New
Fl4m3Ph03n1x
Background I am a fan of dialyzer and friends (looking at Gradient) and I try to have sepcs in my code as much as I can. To this end, I a...
New
Sebb
I have this helper function where I exploit the Errors in Guards feature. def non_empty(val, _msg) when length(val) > 0, do: {:ok, va...
New
mario-mazo
Hello Im still trying to adapt to the dynamically typed nature of elixir and I have a doubt about testing a function that has a guard I...
New
hst337
Why map update syntax does not work in guards? 1> case [1, 2, 3] of 1> X when #{x => 1}#{x => 2} =:= #{x => 2} -> X ...
New
bmitch
I’m new to Elixir and just recently completed “Elixir for Programmers” by pragdave. I thought creating tic tac toe in Elixir would be a ...
New
artem
Hi all I am still in my early days with Elixir and relatively new to functional languages (did one hobby project in Elm), so most intere...
New
miguelszerman
Inside the Elixir official documentation, the guards sections states: Not all expressions are allowed in guard clauses, but only a hand...
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