Avatar
extension Sequence { var first: Element? { var iterator = makeIterator() return iterator.next() } }
9:59 AM
↑で O(1)