Ad
Code
Diff
  • // why not ?
    power = ( a, b ) => a ** b;
    
    
    • // why not ?
    • add = x = ( a, b ) => b ? x(a ^ b, (a & b) << 1) : a
    • mul = y = ( a, b, c = 0 ) => !b ? c : y(a << 1, b >>> 1, b & 1 ? add(c, a) : c)
    • power = f = ( a, b ) => b ? f( mul(a, 2), --b ) : a>>1
    • power = ( a, b ) => a ** b;