Update 01-functions.md

Use actual union type syntax and remove comment about old $Either syntax.