Hi,
Why does Enum.take_while supports <
sign but not >
sign. I have a list named sort
Sort list
sort = [2, 3, 5, 22, 23, 23, 34, 34, 56, 62, 68, 68, 347, 757]
when I try to run
Enum.take_while(sort, fn x -> x < 40 end)
Runs perfectly and gives an output
[2, 3, 5, 22, 23, 23, 34, 34]
When I try to execute
Enum.take_while(sort, fn x -> x > 40 end)
It shows an empty list like []
. Is there something am doing wrong. Need assistance.
Thanks