annotate tests/fib.ur @ 2301:8d772fbf59c1

Tweak cache consolidation and choose better default.
author Ziv Scully <ziv@mit.edu>
date Fri, 20 Nov 2015 03:26:21 -0500
parents 6e580e319077
children
rev   line source
adam@2298 1 fun fib n =
adam@2298 2 if n = 0 then
adam@2298 3 0
adam@2298 4 else if n = 1 then
adam@2298 5 1
adam@2298 6 else
adam@2298 7 fib (n - 1) + fib (n - 2)
adam@2298 8
adam@2298 9 fun main n : transaction page =
adam@2298 10 return <xml>{[fib n]}</xml>