[swift-evolution] Pattern matching with Arrays

Anton Zhilin antonyzhilin at gmail.com
Mon Dec 19 15:21:13 CST 2016

2016-12-19 3:09 GMT+03:00 Lucas Neiva via swift-evolution <
swift-evolution at swift.org>:

> case let [first, next...]:
> > case let [first, last]:
> The binding should be more like "[let first, let last]" though, to be more
> like the tuple matching. For the above also: "case [let head, let tail...]".
Actually, with tuples, case let (first, last) is equivalent to case (let
first, let last), so the “compact” form should be ok with Array pattern
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20161220/4c70d8ab/attachment.html>

More information about the swift-evolution mailing list