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.
With the re-written descipriton it mentions rounding to the nearest pound - in the test cases it doesn't seem to like the results rounded.
Ignore me - I didn't realise that the functions are applied from right to left (in terms of the arguments passed into the compose function)
I think I must be missing something obvious - the first two test cases listed seem to be incorrect
Test.assertEquals(compose(multTwo, addOne)(5), 12, 'compose two functions')
5*2 = 10
10+1 = 11
Though the test case states 12
Test.assertEquals(compose(addOne, multTwo, addOne, addOne)(2), 9, 'compose four functions')
2+1 = 3
3*2 = 6
6+1 = 7
7+1 = 8
Though the test case states 9