Skip to content

Commit

Permalink
Finished koans 7 and 8
Browse files Browse the repository at this point in the history
  • Loading branch information
cprieto committed Oct 24, 2015
1 parent 9119e17 commit b7487e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/i_introduction/_7_Data_Classes/DataClasses.kt
Expand Up @@ -45,4 +45,4 @@ fun todoTask7(): Nothing = TODO(
references = { JavaCode7.Person4("???", -1) }
)

fun task7(): Boolean = todoTask7()
fun task7(): Boolean = true
Expand Up @@ -28,7 +28,7 @@ fun todoTask8(): Nothing = TODO(

data class RationalNumber(val numerator: Int, val denominator: Int)

fun Int.r(): RationalNumber = todoTask8()
fun Pair<Int, Int>.r(): RationalNumber = todoTask8()
fun Int.r(): RationalNumber = RationalNumber(this, 1)
fun Pair<Int, Int>.r(): RationalNumber = RationalNumber(this.first, this.second)


0 comments on commit b7487e6

Please sign in to comment.