Swiftpack.co -  Package - comcxx11/Duolabs
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
comcxx11/Duolabs
New 100% Swift Source Code
.package(url: "https://github.com/comcxx11/Duolabs.git", from: "1.1.0")

Duolabs

Extension+Array
/// Insert an element at the beginning of array.
///
///     [2, 3, 4, 5].prepend(1) ⏎
///     [1, 2, 3, 4, 5]
///
mutating func prepend(_ newElement: Element) {
    insert(newElement, at: 0)
}

GitHub

link
Stars: 1
Last commit: Yesterday

Dependencies

Release Notes

Version 1.1.0
1 week ago

Stabilized source.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco