Sha256: 75b3d948cf088d2baa37868e0619660ec9f97563281e26ef90636864f996b219
Contents?: true
Size: 406 Bytes
Versions: 24
Compression:
Stored size: 406 Bytes
Contents
add(a, b) div(a, b) a / b a + div(b, 2) body padding add(1,5) // => 3.5 add(a, b) half() b / 2 a + half() body padding add(1,5) // => 3.5 getFunction(name) if name == 'add' add(a, b) a + b else sub(a, b) a - b body fn = getFunction('add') padding fn(5, 5) // => 10 fn = getFunction('sub') fn2 = fn fn3 = fn2 padding fn3(5, 5) // => 0
Version data entries
24 entries across 24 versions & 1 rubygems