Continued fraction/Arithmetic/Construct from rational number: Difference between revisions

m
Line 3,375:
I used arbitrary-precision numbers so I could plug in some big numbers.
 
''Important'': in Mercury, '''delay''' takes an explicit thunk (not aan valueexpression implicitly enclosedwrapped in a thunk) as its argument. If you use '''val''' instead of '''delay''', you will get eager evaluation.
 
<syntaxhighlight lang="mercury">
1,448

edits