Homework task 3

57 views
Skip to first unread message

icrnoma...@gmail.com

unread,
Jan 14, 2018, 4:36:49 AM1/14/18
to Haskell-FER
In function treeFilter alpha doesn't have Ord constraint so I guess it isn't ordered tree. But what when node doesn't satisfies condition and his kids do, how tree should look then.

Luka Hadžiegrić

unread,
Jan 14, 2018, 11:01:10 AM1/14/18
to Haskell-FER
Hm... good question. Only logical solution that would give consistent results would be dropping the whole branch of that tree, so I'd say go with that :D

Luka Hadžiegrić

unread,
Jan 14, 2018, 11:01:53 AM1/14/18
to Haskell-FER
That is also visible in the third example.
Reply all
Reply to author
Forward
0 new messages