Latest #guard Threads Top

heilong
Is there a guard for testing protocol implementation? is_proto/2 For example, how to guard test for implementing Enumerable? I underst...
New
roflbobl
I have a problem, where i have a macro the calls another function. I want to be able to add optional guards to my macro, and call the nes...
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
lud
Hi, If in a guard I use :erlang.map_get/2 on a map that does not have the key, and use a or to put another guard condition in second pos...
New
Exadra37
Sometimes I want to check if the input into a function is not a blank string. My first approach: defmodule Example do def do_stuff(s...
New
mmmries
I maintain a library where a user can publish a message and I want to accept any iodata (I end up writing it to a TCP connection), but I ...
New
dimitarvp
Hello, Is it possible to check if an argument to a guard is a particular structure? Context: I am trying to have a defguard definition ...
New
Fl4m3Ph03n1x
I have the following code where I test for the existence of an ETS table: case :ets.whereis(:metrics) do :undefined ...
New
shahryarjb
Hello, I wanted to create custom guard like this , but I have an error: cannot invoke remote function Regex.match?/2 inside guard guar...
New
shahryarjb
Hello , I have 3 fn which create and check list, but it does not work for me . for example : list creator : defp string_to_array(stri...
New

This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

Last Three Year's Trending Top

roflbobl
I have a problem, where i have a macro the calls another function. I want to be able to add optional guards to my macro, and call the nes...
New
heilong
Is there a guard for testing protocol implementation? is_proto/2 For example, how to guard test for implementing Enumerable? I underst...
New

Trending Over Three Years Top

Exadra37
Sometimes I want to check if the input into a function is not a blank string. My first approach: defmodule Example do def do_stuff(s...
New
shahryarjb
Hello, I wanted to create custom guard like this , but I have an error: cannot invoke remote function Regex.match?/2 inside guard guar...
New
lud
Hi, If in a guard I use :erlang.map_get/2 on a map that does not have the key, and use a or to put another guard condition in second pos...
New
dimitarvp
Hello, Is it possible to check if an argument to a guard is a particular structure? Context: I am trying to have a defguard definition ...
New
mmmries
I maintain a library where a user can publish a message and I want to accept any iodata (I end up writing it to a TCP connection), but I ...
New
shahryarjb
Hello , I have 3 fn which create and check list, but it does not work for me . for example : list creator : defp string_to_array(stri...
New
Fl4m3Ph03n1x
I have the following code where I test for the existence of an ETS table: case :ets.whereis(:metrics) do :undefined ...
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
  • Follow
  • Join
  • Shape
the conversation

Latest on Elixir Forum

Elixir Forum

Similar Portals

    None added yet

We're in Beta

About us Mission Statement