Created
March 20, 2020 01:22
-
-
Save kyleparisi/cfdefe5fc1be5f82d96c8eb53914704b to your computer and use it in GitHub Desktop.
Get ip that starts with, using elixir
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enum.filter(interfaces, fn i -> List.starts_with?(Tuple.to_list(elem(i, 0)), [10, 242]) end) |> hd |> elem(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment