Basic Types and Process Control of IOS data
The method for declaring variables in swift is similar to that in js. The basic types are almost the same as those of java, but the character types are more. Let: Used to declare constants; var: Used to declare variables; basic types include: double, float, Int (numeric type); boolean (boolean type); character (character type ); at this time, some friends do not understand Tuple. In mathematics, the concept of ancestor exists. Anyone who has learned the java language knows that it actually represents a set, a set with key-value pairs. However, yuanzu does not support foreach traversal, because whether a set can be traversed depends on whether it implements interfaces similar to IEnumeralbe, and yuanzu does not implement related interfaces. Flow Control statements include: for; while; repeat while; (loop statement) if else; switch; (branch statement) repeat while is actually do while loop, and the usage is the same.