Post

Replies

Boosts

Views

Activity

Comment on Does Swift has a string builder class?
Sure, it does not equate. But each language has its own optimisations relative to Strings handling (and there are many). Are you sure that those other languages do not create an interim String when using appendFormat ? In anycase, form developer point of view, creating an intermediate String is not an issue (unless I missed something).
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) } )
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) } )
Aug ’23