[clean-list] Need help with trivial question: uswap :: A.a: Int Int *{*{a}} -> *{*{a}}

vag vagoff at mail.ru
Thu Aug 16 00:52:57 MEST 2007


Hello, friends! H

In the course of several days I trying to write a function to swap two 
array elements:

uswap :: A.a: Int Int *{*{a}} -> *{*{a}}
usap i j a =
    ?

None of the variants even compiled. *sob*

Can you point me towards the solution?

Maybe there are hidden tricky corresponding toolbox function lurks in 
library?

Sincerely yours,
Vag.


P.S. Thanks in advance, John.


More information about the clean-list mailing list