Pinning, so it will match the already bound value instead of rebinding. However in this case I think that it would be more readable to do:
Enum.find(list, fn elem -> elem.id == id end)
Pinning, so it will match the already bound value instead of rebinding. However in this case I think that it would be more readable to do:
Enum.find(list, fn elem -> elem.id == id end)