++ method

++ method

The ++ method represents a form of concatenating two strings. It is defined in a class that is supertype of every other class, Any. Let’s see an example:

object Program public func run { var String name = “Giuliano”; var String second = “Crespe”; var String together; together = name ++ second; // results in GiulianoCrespe } end