PararellelMerge<T, S, M> extension

Merges two paired lists into a single list of M where M is the return of the provided Merger.

eg.

List<UserProfile> _userProfiles = Pair(List<Users>[...], List<RandomAvatar>[...])
.parallelMerge((User user,RandomAvatar avatar){
     return UserProfile(
     name:user.name,
     avatarUrl:avatar.url,
     ...
   );
})

on

Methods

parallelMerge(M merger(T first, S second)) List<M>

Available on Pair<List<T>, List<S>>, provided by the PararellelMerge extension