Data.Set.findMin is a partial function
Taral
taralx at gmail.com
Mon Dec 11 10:12:05 EST 2006
On 12/11/06, Henning Thielemann <lemming at henning-thielemann.de> wrote:
> Opinions?
Well, you can do this in your code, no? It seems kind of silly to wrap
it up in a Maybe when the resulting code will case on it. Calling code
frequently has:
if Set.null set then
...
else
... (Set.findMin set) ...
--
Taral <taralx at gmail.com>
"You can't prove anything."
-- Gödel's Incompetence Theorem
More information about the Libraries
mailing list