All Questions
Tagged with elixir functional-programming
6 questions
1
vote
1
answer
163
views
Retrieving first non-private ip for local system in elixir
I've recently started learning elixir, and the following is my attempt at fetching the local IP address of the system.
It can definitely be improved further, but as this would be my first ever project ...
2
votes
1
answer
102
views
Emulating the pipe operator in javascript in a readable way
In this article I found this quite elegant looking Elixir code:
...
3
votes
0
answers
445
views
Recursive solution for Longest Substring Without Repeating Characters written in Elixir
Here's my recursive implementation of a sliding window algorithm to find the longest substring of a given string without repeating characters. Is there a more idiomatic-Elixir way to write this?
<...
3
votes
0
answers
53
views
Elixir SQL Query Returning Structs or Counts
I have a few raw queries which are similar to each other in that it is mostly duplicate code with the difference being that one returns structs and the other returns counts of how many there are.
How ...
5
votes
2
answers
330
views
Fetching environment variables — can I use pattern matching?
I've got the following Elixir code:
...
7
votes
1
answer
816
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 ...