The class String is a standard class in Kotlin with a lot of useful functions to work with strings. For example, the contains method allows checking if the current string contains a specific character or a sequence of characters. The reversed method returns the string in reverse order.
Match different kinds of function references with appropriate examples.
All examples in this task are based on the class String and an instance of the class named str.