Error in process <0.336.0> with exit value: {if_clause,[{map,print,3},{erl_eval, do_apply,5},{shell,exprs,6},{shell,eval_loop,3}]} ** exited: {if_clause,[{map,print,3}, {erl_eval,do_apply,5}, {shell,exprs,6}, {shell,eval_loop,3}]} ** if Counter == 0 -> io:format("", []) end, if Counter == Num_Sublists -> io:format("", []); true -> io:format("~p, ", [lists:last(dict:fetch(Counter, Dict))]), print(Num_Sublists, Dict, Counter + 1) end.