Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Help refactor monster function (D?niel Arat?)
----------------------------------------------------------------------
Message: 1
Date: Tue, 19 Apr 2016 10:14:22 +0200
From: D?niel Arat? <[email protected]>
To: [email protected]
Subject: [Haskell-beginners] Help refactor monster function
Message-ID:
<CAHvKd2JJuDZrurJV8t-MSac=zktqxx0fz+s513so3+btfzy...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
Hi guys,
Here is my solution to Problem 50 from Ninety-Nine Haskell Problems:
https://github.com/nilthehuman/H-99/blob/master/Logic.hs#L75
(`consume' is defined here:
https://github.com/nilthehuman/H-99/blob/master/Lists.hs#L107 )
I'm not satisfied with the code quality. I feel like especially `go',
`group' and `min2' should be more succint and readable.
How to refactor? Maybe there are some combinators that could help?
Thanks,
Daniel
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 94, Issue 16
*****************************************