You're welcome, the forum is precisely for this. What is misleading is that drop is not "drop where" but "drop while". The expanded form makes it clearer: let newarr = arr.drop (while: { exc.contains($0) } )
Topic:
Programming Languages
SubTopic:
Swift
Tags: