node by node copy

Ron Wichers Schreur ronny@cs.kun.nl
Mon, 12 Jan 1998 22:46:46 +0100


Erik Zuurbier wrote (to the Clean discussion list):

I think I need a function with the following type.

> Copy :: *a -> (*a,*a)
>
> Can someone write the Copy function for me?

It's not possible to write a general copy function.
How would you copy a unique world? For example:

    Start :: *World -> (*World, *World)
    Start world
        = Copy world


You have to write a copy function for your own
data structures.


Cheers,

Ronny Wichers Schreur