Andreas Rossberg (2014-01-29T00:33:12.000Z)
On 29 January 2014 00:48, Brendan Eich <brendan at mozilla.com> wrote:
> Andreas Rossberg wrote:
>>
>> On 29 January 2014 00:30, Brendan Eich<brendan at mozilla.com>  wrote:
>>>
>>> >  Andreas Rossberg wrote:
>>>>>
>>>>> >>>
>>>>> >>>  `flatMap`
>>>>> >>>  ...
>>>>
>>>> >>
>>>> >>
>>>> >>  The V8 implementation provides it under the name `chain', with the
>>>> >>  obvious semantics.
>>>
>>> >
>>> >  +1 on chain as name, not flatMap, but Haskell'ers should weigh in.
>>> > Wait, no.
>>> >  :-P
>>
>>
>> Well, Haskell does not have flatMap. Scala has.
>
> What's all this then?
>
> https://www.google.com/search?q=haskell+flatmap

When the first page of results consists of StackOverflow questions and
blog posts it can't be real. :)

Seriously, Haskell calls it >>=. (It also has concatMap, which is just
the same function restricted to lists.)

/Andreas
forbes at lindesay.co.uk (2014-01-29T00:43:24.361Z)
> What's all this then?
>
> https://www.google.com/search?q=haskell+flatmap

When the first page of results consists of StackOverflow questions and
blog posts it can't be real. :)

Seriously, Haskell calls it >>=. (It also has concatMap, which is just

the same function restricted to lists.)