# Second Bloop file # Here, since we've shown that the functions s, plus, mult, and exp # are all Bloop computable we write them more simply and efficiently # using Ruby's built in functions +, *, and ** (exponent) # hyperexp is defined by repeatedly applying 2 ** x def hyperexp(a) ans = 1 a.times do ans = 2 ** ans end return(ans) end a = ARGV[0].to_i print "hyperexp( #{a} ) = #{hyperexp(a)} \n "