mirror of
https://github.com/github/semantic.git
synced 2024-12-21 22:01:46 +03:00
6 lines
105 B
Swift
6 lines
105 B
Swift
|
extension Array {
|
||
|
static func cons(head: Element, _ tail: Array) -> Array {
|
||
|
return [head] + tail
|
||
|
}
|
||
|
}
|