annotate tests/fib.ur @ 2298:6e580e319077

Fix condition for installing new cache entries
author Adam Chlipala <adam@chlipala.net>
date Thu, 19 Nov 2015 16:02:04 -0500
parents
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>