Sha256: 1f460da8f26d166d69bb39923e9a51491e5baa735b51c64988715956e96d3cba
Contents?: true
Size: 258 Bytes
Versions: 396
Compression:
Stored size: 258 Bytes
Contents
object Accumulate { fun <T, R> accumulate(collection: List<T>, function: (T) -> R): List<R> { val retVal = mutableListOf<R>() for(item in collection) { retVal.add(function.invoke(item)) } return retVal } }
Version data entries
396 entries across 396 versions & 1 rubygems