Ruthraiah Thulasi

Results 2 comments of Ruthraiah Thulasi

there is a reduce option in for loop , which can be treated as 3rd option acc = [] for x [ x | acc ] end

Updating the above example using 3 approach using loop reduce all_numbers = [4, 2, 5, 9, 6, 1, 0] even_numbers = [] for num if Integer.mod(num, 2) == 0 do...