[Haskell-cafe] Fixed points

Felipe Almeida Lessa felipe.lessa at gmail.com
Fri Jun 10 03:04:28 CEST 2011


Something like this?

  equivalenceClosure = fix $ \f e ->
    let e' = reflexivity . symmetry . transitivity $ e
    in if e' == e then e else f e'

Cheers,

-- 
Felipe.



More information about the Haskell-Cafe mailing list