++ method

++ method

Literal strings are delimited by quotes, as usual:

var String name; name = "Isaac Newton";

The ++ method transforms two objects into strings and concatenates them. It is defined in a class that is the supertype of every other class, Any. Let’s see an example:

object Program public func run { var String name = “Isacc”; var String second = “Newton”; var String together; together = name ++ " " ++ second; // results in Isaac Newton } end