Pure Programmer
Blue Matrix


Cluster Map

Project: Character Types

We can group characters in the Unicode character set by attributes that the characters have. Is it a letter? Is it a whitespace character? Is it a control character? Write a program that defines a string of interesting characters. Then iterate on that string, character by character, printing out the character and its attributes using the character typing functions.

Output
$ swiftc CharacterTypes.swift -I . -L . -lUtils error: link command failed with exit code 1 (use -v to see invocation) ld: library not found for -lUtils clang: error: linker command failed with exit code 1 (use -v to see invocation)

Solution