Got deprecated warning with Enum.partition/2,
Enum.split_with/2 instead.
Works great!
Thanks
My mistake :lists.partition/2 still works
updated to this
defmodule Quick do
import Enum, only: [split_with: 2]
def sort([]), do: []
def sort([head|tail]) do
{pivot, greater_than_head} = split_with(tail, &(&1 <= head))
sort(pivot) ++ [head] ++ (greater_than_head)
end
end
big thanks @hauleth


















