재생목록 만들기 페이지 추가

This commit is contained in:
Yu Sung
2024-12-09 18:11:28 +09:00
parent abc4a4f39d
commit 0fdb9edd23
20 changed files with 757 additions and 45 deletions

View File

@@ -0,0 +1,14 @@
//
// CollectionExtension.swift
// SodaLive
//
// Created by klaus on 12/8/24.
//
extension Collection {
func mapIndexed<T>(_ transform: (Index, Element) -> T) -> [T] {
return self.enumerated().map { index, element in
transform(self.index(startIndex, offsetBy: index), element)
}
}
}