I have this function:
defp get_list(map, l, i) do
list = l ++ map
where map is the new list who comes every repetition, so l is merged with it and attributed to list
it works great for a small number of pages, the problem is when lots of pages are being merged, some time after the lists are beind added to list the following error accurs:
(ArgumentError) argument error :erlang.++([0.33966522437570745,...]) (api_sort 0.1.0) lib/api_sort.ex:18: ApiSort.get_list/3