Arc Forumnew | comments | leaders | submit | globalrev's commentslogin

  (def power (nbr power)
      (if (is power 0)
          1
          (if (> power 0)
	      (let acc nbr
    		  (for x 1 (- power 1)
        	  	(= acc (* acc nbr))) acc)
	      (let acc 1
    		  (for x 0 power -1
			(= acc (/ acc nbr))) acc))))

-----

1 point by globalrev 6242 days ago | link | parent | on: Arc on Windows, trouble installing

ty awesome!

-----