Skip to content

Commit ebfe285

Browse files
committed
feat(storage): convenience init of LCArray from LCArray
1 parent 89b816a commit ebfe285

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Sources/Foundation/Array.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ public class LCArray: NSObject, LCValue, Collection, ExpressibleByArrayLiteral {
2828
self.init()
2929
self.value = value.map { $0.lcValue }
3030
}
31+
32+
public convenience init(_ array: LCArray) {
33+
self.init()
34+
self.value = array.value
35+
}
3136

3237
public convenience required init(arrayLiteral elements: LCValueConvertible...) {
3338
self.init(elements)

0 commit comments

Comments
 (0)