Last active
September 22, 2022 11:57
-
-
Save uxjp/a204a055c3c4545db399d67e70fafb14 to your computer and use it in GitHub Desktop.
Elixir filter positions in a list
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
defmodule Solution do | |
IO.read(:all) | |
|> String.split | |
|> Enum.drop_every(2) | |
|> Enum.each(&IO.puts/1) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.hackerrank.com/challenges/fp-filter-positions-in-a-list/problem?isFullScreen=true&h_r=next-challenge&h_v=zen