hiratara/p5-Data-Monad — pull request #2 by nmbooker (2013-10-14 19:59:13+00:00)
Title: Make nothing->value return undef instead of dying with 'Not an ARRAY ref...

Make nothing->value return undef instead of dying with 'Not an ARRAY reference'

Calling nothing->value (or $any_nothing_value->nothing) was causing 'Not an ARRAY reference' to be raised.

This patch makes it return undef instead. I've checked it doesn't make the tests fail, and added my own test.