News for hackers. Stuff that matters.
Re:Idiomatic Monads in Rust by ivanbakel on Thursday April 04, 2019 @10:05AM (#19572407)
Don't make the mistake of thinking that translating a type signature into written English gives a canonical description of the function. The first definition says "(a -> b) -> f a -> f b" - that is it.

You can translate one into the other easily

    map' :: (a -> b) -> f a -> f b
    map' i j = map'' j i

    map'' :: f a -> (a -> b) -> f b
    map'' m n = map' n m
Re:Idiomatic Monads in Rust by majewsky on Thursday April 04, 2019 @12:17PM (#19574065)
Or, more succinctly,

  map' = flip map''
  map'' = flip map'