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.
Operations functions have to return a functions
that recieves a number, provides math operation and returns math result
So our num function should recive the operation func or none (undefined)
if f is undefined we have to return a number, or pass the number into function f and get result
ANd we automaticaly declare all nums functions by using
this[math] = *function*
mth - it's element of array and the name of function ('one', 'two', 'three' etc.)
num - it's a index of array and the numeric value (0, 1, 2, 3 etc.)
Operations functions have to return a functions
that recieves a number, provides math operation and returns math result
So our num function should recive the operation func or none (undefined)
if f is undefined we have to return a number, or pass the number into function f and get result
ANd we automaticaly declare all nums functions by using
this[math] = *function*
mth - it's element of array and the name of function ('one', 'two', 'three' etc.)
num - it's a index of array and the numeric value (0, 1, 2, 3 etc.)