6 kyu

Tricky Kotlin #2: three fundamental functions

Description:

This is a series of Kotlin tricks.

In this Kata you should implement three fundamental functions:

  • unless (the opposite of if)
  • until (the opposite of while)
  • forceRun (whatever happens (exceptions? errors?), just make it continue)

The example tests are nearly the same as the final tests(just some more robust tests). This is why I provide such poor initial solution.

Fundamentals

Stats:

CreatedSep 9, 2017
PublishedSep 9, 2017
Warriors Trained605
Total Skips106
Total Code Submissions506
Total Times Completed265
Kotlin Completions265
Total Stars8
% of votes with a positive feedback rating92% of 56
Total "Very Satisfied" Votes48
Total "Somewhat Satisfied" Votes7
Total "Not Satisfied" Votes1
Total Rank Assessments8
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • ice1000 Avatar
  • Voile Avatar
Ad