Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

RandomAccessCollection

mattt edited this page Apr 26, 2021 · 1 revision

Extensions on RandomAccessCollection

Methods

parallelMap(_:)

func parallelMap<T>(_ transform: (Element) throws -> T) throws -> [T] 

parallelCompactMap(transform:)

func parallelCompactMap<T>(transform: (Element) throws -> T?) throws -> [T] 

parallelFlatMap(transform:)

func parallelFlatMap<T>(transform: (Element) throws -> [T]) throws -> [T] 

parallelForEach(_:)

func parallelForEach(_ body: (Element) throws -> Void) throws