1
1
mirror of https://github.com/github/semantic.git synced 2024-12-22 14:21:31 +03:00
semantic/prototype/Doubt/Array.swift

6 lines
105 B
Swift
Raw Normal View History

2015-07-18 22:43:49 +03:00
extension Array {
static func cons(head: Element, _ tail: Array) -> Array {
return [head] + tail
}
}