Sha256: bed29b868678e9c01528970bc9afe399a90a5562e3bf770b5609918b8a0a52ee
Contents?: true
Size: 213 Bytes
Versions: 396
Compression:
Stored size: 213 Bytes
Contents
extension Array { func accumulate<S>(_ yield: (Element) -> S) -> [S] { var result: [S] = [S]() for item in self { result.append(yield(item)) } return result } }
Version data entries
396 entries across 396 versions & 1 rubygems