Passing list values to a function

If you want side effect only, then use Enum.each/2