devxoul / Then

✨ Super sweet syntactic sugar for Swift initializers
MIT License
4.16k stars 290 forks source link

can add then extension on 'Array' & 'Dictionary' #74

Closed ZhipingYang closed 4 years ago

ZhipingYang commented 4 years ago
let numbers = [1, 2, 3].with { $0.append(4) }
let keyValues = ["1":1, "2":2].with { $0.dropFirst() }
devxoul commented 4 years ago

Thanks for your work!