Deviopath › Swift

String Word Count

Medium · Extensions

Extensions add methods to existing types. Write wordCount on String that splits on whitespace. runWords is already written.

Next: Reference Copy