Ethiopian multiplication: Difference between revisions
Content added Content deleted
Line 3,467: | Line 3,467: | ||
</pre> |
</pre> |
||
=== Literally follow the |
=== Literally follow the algorithm using generateSequence() === |
||
<syntaxhighlight lang="kotlin"> |
<syntaxhighlight lang="kotlin"> |
||
fun Int.halve() = this shr 1 |
fun Int.halve() = this shr 1 |