Why result of reversed() does behave itself like being an Array?

后端 未结 0 743
[愿得一人]
[愿得一人] 2021-01-23 03:21
extension Array where Element == Int {
    func prefixSum() -> [Int] {
        var sum = 0
        return map { element in
            defer { sum += element }
               


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题