2 added 108 characters in body
source | link

R, 6969 64 bytes

function(x){,a=function(y)t(apply(y,21,rev));x+ax+a(x)+a(a(x))+a(a(a(x)))}

Try it online!Try it online!


Attempt number three at Codegolfcodegolf. From 69 to 64 bytes thanks to Giuseppe!

R, 69 bytes

function(x){a=function(y)t(apply(y,2,rev));x+a(x)+a(a(x))+a(a(a(x)))}

Try it online!


Attempt number three at Codegolf!

R, 69 64 bytes

function(x,a=function(y)apply(y,1,rev))x+a(x)+a(a(x))+a(a(a(x)))

Try it online!


Attempt number three at codegolf. From 69 to 64 bytes thanks to Giuseppe!

1
source | link

R, 69 bytes

function(x){a=function(y)t(apply(y,2,rev));x+a(x)+a(a(x))+a(a(a(x)))}

Try it online!


Attempt number three at Codegolf!