Files
swift-mirror/test/stdlib/Reduce.swift
David Rönnqvist b5d47fc37b [stdlib] Add unit tests for the two reduce variants
This checks:
 - The examples from the documentation of `reduce(_:_:)` and `reduce(into:_:)`.
 - Different levels of inference in the closure arguments being passed.
 - That the value passed as the `initialResult` remains unmodified.
2017-07-16 17:08:15 +02:00

2.2 KiB