Ethiopian multiplication: Difference between revisions

→‎{{header|R}}: incorrect. Examples should have separate functions for doubling, halving, and checking if a number is even.
(Added Perl 6.)
(→‎{{header|R}}: incorrect. Examples should have separate functions for doubling, halving, and checking if a number is even.)
Line 1,219:
 
Another interesting implementation could be
{{incorrect|R|The task specifies that examples should have separate functions for doubling, halving, and checking if a number is even.}}
 
<lang R>ethiopicmult <- function(a, b) {
plier <- c(a)
Anonymous user