Eh, not exactly. Scala uses a more general version that works with any monadic type (`flatMap` is technically a monadic bind, and `flatten` a monadic join), while this is roughly equivalent to `[].concat(...array.map(func))` or `_.flatten(_.map(array, func))`.
On Tue, Jun 6, 2017, 07:02 Igor Baklan <[email protected]> wrote: > +1 > > Good step toward (`JS` <= [`Scala`]( > https://www.scala-lang.org/documentation/) ) unification. ( [flatMap]( > https://www.scala-lang.org/api/current/scala/collection/TraversableLike.html#flatMap[B](f:A=>scala.collection.GenTraversableOnce[B]):Traversable[B]) > , [flatten]( > https://www.scala-lang.org/api/current/scala/collection/generic/GenericTraversableTemplate.html#flatten[B]:Traversable[B]) > ) > _______________________________________________ > es-discuss mailing list > [email protected] > https://mail.mozilla.org/listinfo/es-discuss >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

