Possible Duplicate:
Zipper like data structure with more then one cursor
Let T a big tree (or another big data structure). Suppose you have some interest points in it (P = {p1, p2, ...} where pN in T). You can use zippers for each pN but, what if I must update (CRUD) T on certain pN?.
Ignoring shared memory issue (solved with locks), using a imperative language I can use pointers. Updating pN I'm updating T really.
What's correct way on ("pure") Haskell?
Thanks!
NOTE: P is a real list, all time we have P with interest points and we can update one point, some or all at a time. P exists to avoid search each pN at each time (T is big). Thanks again!
UPDATE: I'm sorry, I find a correct response to my problem (Zipper like data structure with more than one cursor), how I can update (or remove) my question?