Post

Replies

Boosts

Views

Activity

Comment on Array drop
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:
Aug ’23
Comment on Array drop
You're welcome, the forum is precisely for this. What is misleading is that drop is not "drop where" but "drop while". The expended form makes it clearer: let newarr = arr.drop (while: { exc.contains($0) } )
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’23
Comment on Array drop
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:
Replies
Boosts
Views
Activity
Aug ’23
Comment on Array drop
You're welcome, the forum is precisely for this. What is misleading is that drop is not "drop where" but "drop while". The expended form makes it clearer: let newarr = arr.drop (while: { exc.contains($0) } )
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Aug ’23