Getting started with new paradigms requires us to change thinking and make mistakes along the way. Functional programming from the eyes of the beginner, along with practical steps to gradually change how we write our code.
return "Hello my name is \(name)" } } let me = Person(name: "Miguel", surname: "Quinones") let john = Person(name: "John", surname: "Doe") let greeter = Person.greeting let a = greeter(me)() // Hello my name is Miguel let b = greeter(john)() // Hello my name is John