Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Hi @bridgecoder.
In my code
great
is of type(String,String) -> String
, which basically says this is a closure that expects twoString
values as parameter and returns anotherString
value. And a closure is basically the same thing as a function.In a closure you can access the input parameters using $-Syntax, e.g.
$0
is the first parameter,$1
the second, etc.Hope that helps.