- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for peano (0.18 sec)
-
platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/serialization/codecs/UserTypesCodecTest.kt
} } @Test fun `Peano sanity check`() { assertThat( Peano.fromInt(0), equalTo(Peano.Z) ) assertThat( Peano.fromInt(1024).toInt(), equalTo(1024) ) } sealed class Peano { companion object { fun fromInt(n: Int): Peano = (0 until n).fold(Z as Peano) { acc, _ -> S(acc) }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 3.4K bytes - Viewed (0)