reset password
Author Message
AverageStudentX
Posts: 11
Posted 19:47 Nov 25, 2019 |

Before I throw in the towel for the day, and struggle tomorrow on the file reading parts, this is something I (and the guy who helped me on campus earlier) ran into.

When I make a tree by passing a student object into the make node function. It stays. But subsequent insertion of students individually,

the following nodes seem to disappear. Only the root stays. Using the fold function with a list though seems to make the tree keep all the nodes.

I am curious to know what's going on there. That guy told me that supposedly working on the function to get the age is pointless, though he still helped me on it.

Also I wonder if we need the "(Ord ...)" part for the insertion and comparison. The guy helped me do them without the "(Ord ...)" part in the declaration.

Maybe that is causing the problem, but I don't know.