mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 00:04:25 +00:00
Add function for finding Article matching an ArticleSpecifier.
This commit is contained in:
1 parent
df44903a59
commit
9d045360d2
1 file changed
+4
@@ -20,6 +20,10 @@ typealias ArticleArray = [Article]
|
||||
return self[row]
|
||||
}
|
||||
|
||||
func article(matching articleSpecifier: ArticleSpecifier) -> Article? {
|
||||
first { articleSpecifier.matchesArticle($0) }
|
||||
}
|
||||
|
||||
func orderedRowIndexes(fromIndex startIndex: Int, wrappingToTop wrapping: Bool) -> [Int] {
|
||||
if startIndex >= self.count {
|
||||
// Wrap around to the top if specified
|
||||
|
||||
Reference in new issue
Block a user