On Dec 5, 2007 12:16 AM, Aaron Denney [EMAIL PROTECTED] wrote:
we (the FPSIG group) defined:
data BTree a = Leaf a
| Branch (BTree a) a (BTree a)
Totally avoiding your question, but I'm curious as to why you
deliberately exclude empty trees.
Come to think of it, how can you
Hi Paolo,
On Dec 5, 2007 2:09 PM, Paulo J. Matos [EMAIL PROTECTED] wrote:
I'm glad that my initial post generated such an interesting discussion
but I'm still not understanding why the first version of findAllPath
seems to be computing the whole list even when I just request the
head, while
I'm glad that my initial post generated such an interesting discussion
but I'm still not understanding why the first version of findAllPath
seems to be computing the whole list even when I just request the
head, while the second one doesn't. I thought that this was
denominated by findAllPath is
Wow, thanks. I had a similar function (long if/then/else chain,
fromJust) that I haven't been happy with, but couldn't see how to
improve it. Now I have a much better idea for how to fix that
function.
Thanks again,
John Lato
the general pattern is : replace isNothing with a case match on
On Dec 5, 2007 5:40 PM, Paulo J. Matos [EMAIL PROTECTED] wrote:
Oh, but lfpaths is not nothing so that means that isNothing rtpaths
shouldn't be evaluated, right?
You're right, and I was stupid not to think about that case. Since
Luke already gave an in-depth analysis I'll be quiet now :-)
-
On Dec 5, 2007 1:43 PM, Benja Fallenstein [EMAIL PROTECTED] wrote:
Hi Paolo,
On Dec 5, 2007 2:09 PM, Paulo J. Matos [EMAIL PROTECTED] wrote:
I'm glad that my initial post generated such an interesting discussion
but I'm still not understanding why the first version of findAllPath
seems to
On Dec 5, 2007 12:16 AM, Aaron Denney [EMAIL PROTECTED] wrote:
On 2007-12-04, Paulo J. Matos [EMAIL PROTECTED] wrote:
Hello all,
As you might have possibly read in some previous blog posts:
http://users.ecs.soton.ac.uk/pocm06r/fpsig/?p=10
http://users.ecs.soton.ac.uk/pocm06r/fpsig/?p=11
On 2007-12-04, Paulo J. Matos [EMAIL PROTECTED] wrote:
Hello all,
As you might have possibly read in some previous blog posts:
http://users.ecs.soton.ac.uk/pocm06r/fpsig/?p=10
http://users.ecs.soton.ac.uk/pocm06r/fpsig/?p=11
we (the FPSIG group) defined:
data BTree a = Leaf a