SwiftKotlin icon indicating copy to clipboard operation
SwiftKotlin copied to clipboard

reduce function

Open manuelgon47 opened this issue 7 years ago • 0 comments

Swift:

            .reduce(0, +)

Translated:

            .reduce(0, +)

Should be translated to:

                .fold(0.0) { total, next ->
                    total + next
                }

manuelgon47 avatar Feb 14 '18 11:02 manuelgon47