Gavin Sinclair wrote:
> Hi all,
> 
> I'm preparing some methods for 'extensions' [1] and would like some
> people's opinions on method names.
> 
>   Array#only
>     [5].only      -> 5
>     [1,2,3].only  -> exception
> 
>   

What is 'only' supposed to do?


James