Answer the question
In order to leave comments, you need to log in
How to search by characters in an array of structures?
I have an array of structures. Each structure has a description, displaySymbol. How to search by characters? It is necessary to display all elements of the array whose description and/or displaySymbol contain the given symbols.
Answer the question
In order to leave comments, you need to log in
Why are you not satisfied with the function-
func filter(_ isIncluded: (Self.Element) throws -> Bool) rethrows -> [Self.Element]
words.filter { word in return word.count >= 3 }
func contains(_ element: Character) -> Bool
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question