Skip to content

Instantly share code, notes, and snippets.

@kyleparisi
Created March 20, 2020 01:22
Embed
What would you like to do?
Get ip that starts with, using elixir
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