Hi Brandon,
Thanks for your response. My example was just a bad turnout which I conjured up using tutorials and playing with it.
I was going to follow up my question with the possible practical use of why and where someone would use such a construct to wrap a function inside a new data-type.
For all that matters I could have used 'length' function directly to get the same output.
I appreciate that you already have given the practical example but anything more basic for beginners to highlight the usage would be helpful.
Thanks,