Mercurial > urweb
view 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 |
line wrap: on
line source
fun fib n = if n = 0 then 0 else if n = 1 then 1 else fib (n - 1) + fib (n - 2) fun main n : transaction page = return <xml>{[fib n]}</xml>