(collection, mapper, context)
| 777 | } |
| 778 | |
| 779 | export function flatMapFactory(collection, mapper, context) { |
| 780 | const coerce = collectionClass(collection); |
| 781 | return collection |
| 782 | .toSeq() |
| 783 | .map((v, k) => coerce(mapper.call(context, v, k, collection))) |
| 784 | .flatten(true); |
| 785 | } |
| 786 | |
| 787 | export function interposeFactory(collection, separator) { |
| 788 | const interposedSequence = makeSequence(collection); |
no test coverage detected