Elixir is a functional meta-programming aware language built on top of the Erlang VM. It is a dynamic language with flexible syntax with macros support that leverages Erlang's abilities to build concurrent, distributed, fault-tolerant applications with hot code upgrades.
3
votes
1answer
89 views
Simple/Naive Implementation of Identity and Maybe Monad in Elixir
This is my first crack at a identity monad and a maybe monad in Elixir. Please be gentle, guys.
...
2
votes
0answers
30 views
Phoenix Ecto schema for internal mailbox
I am building an application messaging system. I am planning on using channels for real-time notifications but I was wondering if this schema makes sense. I am looking for any constructive criticism ...
1
vote
0answers
35 views
Ascii85 in Elixir
I'm a complete newbie to Elixir, but I managed to bang together this working example of Ascii85 for a project I'm working on in my spare time.
I find some awkward repetition in here which I have ...
4
votes
1answer
92 views
Generating all valid dates
I've come up with the following code to generate a list of all dates between two given dates:
...
3
votes
0answers
73 views
War Game GenServer Implementation
One of the Etudes for Elixir exercises is to create a War game that uses the spawn, send, and ...
1
vote
0answers
75 views
6
votes
2answers
207 views
Berlin clock kata in Elixir
I'm starting with Elixir and as exercise I wrote the Berlin Clock kata:
The clock is made up of 5 rows.
On the very top of the clock is a lamp that blinks to show the seconds. It turns on for one ...
9
votes
1answer
139 views
Multi-process FizzBuzz in Elixir
So I was playing with writing FizzBuzz in Elixir; this is my first, naive implementation:
...
3
votes
2answers
266 views
How could this be written using continuation passing style?
Is there a way to use CPS in this code to make the two insert functions tail-call optimized?
...
4
votes
3answers
308 views
How does this naive stack implementation look?
Consider this naive stack implementation in Elixir:
...
4
votes
2answers
124 views
Fetching environment variables — can I use pattern matching?
I've got the following Elixir code:
...
6
votes
1answer
250 views
Elixir pipes and anonymous functions
I recently got started with Elixir. I'm used to F#'s pipes, and Seq.map and LINQ's .Select statements. Things are different in ...
7
votes
1answer
164 views
Roman numeral kata in Elixir
I'm new to Elixir, and in order to learn the syntax, I'm doing a roman numeral kata which converts a decimal number into roman numeral. I would appreciate any feedback you have.
...