mirror of
https://github.com/mii443/AzooKeyKanaKanjiConverter.git
synced 2025-12-03 02:58:27 +00:00
fix: simplify iterator type
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
struct Lattice: Sequence {
|
||||
typealias Element = [LatticeNode]
|
||||
typealias Iterator = IndexingIterator<[[LatticeNode]]>
|
||||
|
||||
init(nodes: [[LatticeNode]] = []) {
|
||||
self.nodes = nodes
|
||||
@@ -38,7 +39,7 @@ struct Lattice: Sequence {
|
||||
}
|
||||
}
|
||||
|
||||
func makeIterator() -> some IteratorProtocol<Element> {
|
||||
func makeIterator() -> IndexingIterator<[[LatticeNode]]> {
|
||||
self.nodes.makeIterator()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user