If you only use trivial examples, types seem silly. But in real examples they become more useful. In this case looking at the function signature give you immediate information about the implementation that is missing from the untyped version.
EDIT: please excuse formatting, I'm on mobile and cannot get it to add spaces before the last code block
EDIT: please excuse formatting, I'm on mobile and cannot get it to add spaces before the last code block