Name: Anonymous 2009-04-16 12:00
any haker here can tell me about loeb lol?
loeb is a polyvariadic fixed point operator. That's all.
loeb = fix (fmap . flip id =<<)Prelude> let loeb = fix (fmap . flip id =<<)import Control.Monad.Fix
+. It can be implemented by taking a list of values as input, e.g. (lambda l ...compute sum of list l...). (+ 1 2 3) is the same1 as (apply + (list 1 2 3)), which in turn is the same as sum [1,2,3] in Haskell.+ and sum are either both polyvariadic or both monadic.+ is obviously polyvariadic, so sum is polyvariadic too. The same holds true for loeb2.loeb look like in scheme?
f +++ g = \x -> f x ++ g xshow `mappend` (show.negate) $ 20Maybe not.⊕. I never really liked UnicodeSyntax though. <+> would probably do, but it's already taken by Alternative.