Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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 ...
hjpotter92's user avatar
  • 8,901
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: ...
oligofren's user avatar
  • 121
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? <...
Eli's user avatar
  • 31
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 ...
DogEatDog's user avatar
  • 183
5 votes
2 answers
330 views

Fetching environment variables — can I use pattern matching?

I've got the following Elixir code: ...
Onorio Catenacci's user avatar
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 ...
Frames Catherine White's user avatar