📅  最后修改于: 2022-03-11 15:00:59.028000             🧑  作者: Mango
func transformUsingMap() -> Observable {
return Observable.of(1, 2, 3)
.map { String("\($0)") }
}
func arrayToNewObject(items: [Item]) -> [Data] {
return items.map({ item in
return Data(item)
})
}