I started to learn the apply function from this doc
apply
In the following example, the function invocation with apply and that without appl
appl