Latest #case Threads Top

przemyxe0p
Hi, I am wondering why my solution wil not work 1. source: Perfect Numbers in Elixir on Exercism 2. solution attempt: @spec classify(...
New
hokie81
(pretty new to Elixir here…) sometimes I see: case [...] do {:ok, [...]} -> [...] # using _ as default {_, other} -> {:erro...
New
halostatue
Some years ago, I switched my case statement handling to something like this: case some_operation() do {:ok, _} = ok -> ok {:erro...
New
docjazither
Hi OGs, I have a function as follow: defp comparing_statuses(duplicates) do statuses = count_duplicates_statuses(duplicates) c...
New
laiboonh
case Date.compare(date1, date2) do :lt-> doA() :gt -> doB() :eq -> doA(); doB() end Thinking is there a w...
New
bmitc
Hello! I am having issues with the Elixir formatter and a long case expression. What’s happening is that this: defmodule Test do def e...
New
borybar
Hi, I am trying to apply different calculations depending on gender using ‘case do’ however I get variable "user_bmr" is unused. What am...
New
stiegi
I would like to have your opinions about a very simple example, because I worked with imperative languages so far only, and I would like ...
New
mate
Hello, I’d like to kindly ask about using case vs. other statements/conditions. I different languages (all OOP) I used if/else most of ...
New
Oliver
Hi. I’m always looking for ways to make code more manageable, readable, and nice to look at. To this end, matching and the case-do state...
New

This Week's Trending Top

This Month's Trending Top

This Year's Trending Top

Last Three Year's Trending Top

przemyxe0p
Hi, I am wondering why my solution wil not work 1. source: Perfect Numbers in Elixir on Exercism 2. solution attempt: @spec classify(...
New

Trending Over Three Years Top

otuv
Hi, Simple thing but I cannot seem to find it anywhere. How do I do a case with greater than? As in: case Kernel.length my_list do 0 ...
New
sagnik2911
Here nums is a list of [list of {tuples}]. nums = [[{5,2}], [{10,2},{4,5}], [{6,5},{3,10},{2,15}]] I want to print output like this: 1...
New
docjazither
Hi OGs, I have a function as follow: defp comparing_statuses(duplicates) do statuses = count_duplicates_statuses(duplicates) c...
New
hokie81
(pretty new to Elixir here…) sometimes I see: case [...] do {:ok, [...]} -> [...] # using _ as default {_, other} -> {:erro...
New
Qqwy
Hi everyone! I recently had an idea. This is by no means a revolutionary concep, and other people probably have thought about it before ...
New
mate
Hello, I’d like to kindly ask about using case vs. other statements/conditions. I different languages (all OOP) I used if/else most of ...
New
bmitc
Hello! I am having issues with the Elixir formatter and a long case expression. What’s happening is that this: defmodule Test do def e...
New
Oliver
Hi. I’m always looking for ways to make code more manageable, readable, and nice to look at. To this end, matching and the case-do state...
New
laiboonh
case Date.compare(date1, date2) do :lt-> doA() :gt -> doB() :eq -> doA(); doB() end Thinking is there a w...
New
halostatue
Some years ago, I switched my case statement handling to something like this: case some_operation() do {:ok, _} = ok -> ok {:erro...
New
stiegi
I would like to have your opinions about a very simple example, because I worked with imperative languages so far only, and I would like ...
New
borybar
Hi, I am trying to apply different calculations depending on gender using ‘case do’ however I get variable "user_bmr" is unused. What am...
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