Data.List.singleton

Henning Thielemann lemming at henning-thielemann.de
Thu Jul 27 07:14:03 UTC 2017


On Thu, 27 Jul 2017, Andreas Abel wrote:

> +1.  "singleton" is clearly more readable in code than the orangutan 
> face (:[]).

An alternative would be Applicative.pure or Monad.return. But yes, 
List.singleton is still more readable.


More information about the Libraries mailing list