Guest User

Untitled

a guest
Oct 9th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. defmodule Xdd do
  2. def reverse_without_duplicates(list) do
  3. list
  4. |> Enum.reverse()
  5. |> Enum.uniq()
  6. end
  7. end
  8.  
  9. example_list = [2, 3, 3, 1, 10]
  10.  
  11. IO.puts Xdd.reverse_without_duplicates(example_list)
Add Comment
Please, Sign In to add comment