At 3:18 PM +0200 4/26/00, Lars Lundgren wrote:
[...]
>
>Is it something like this you want?
>
[...]
>
>test :: IO()
>test = do tree <- buildTree
> list <- buildList
> dowhateverYouwant_interactive_or_not tree list
>
>
>dowhateverYouwant_interactive_or_not :: Tree -> List -> IO()
Sorry, I didn't make my problem clear enough.
The reason your suggestion doesn't solve it is that `tree` and `list` are
local to `test`, so they can't be used in several separate **command-line**
evaluations without being reconstructed each time. My students don't yet
know about interactive I/O; even if they did, I know of no way to get
separate reduction counts for, say, tree searches and list searches within
dowhateverYouwant_interactive_or_not.
But thanks anyway for taking the time to answer my ill-posed question.
Cheers,
--Ham
------------------------------------------------------------------
Hamilton Richards Jr. Department of Computer Sciences
Senior Lecturer Mail Code C0500
512-471-9525 The University of Texas at Austin
SHC 434 Austin, Texas 78712-1188
[EMAIL PROTECTED]
------------------------------------------------------------------