Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
teaching:cc4101:tareas:2016-2:tarea2 [2016/11/02 00:48] – [Recursión] fmosso | teaching:cc4101:tareas:2016-2:tarea2 [2016/11/02 00:49] – [Recursión] fmosso | ||
---|---|---|---|
Line 122: | Line 122: | ||
Funciones definidas con '' | Funciones definidas con '' | ||
+ | <code scheme> | ||
+ | (run ' | ||
+ | {O : nat} | ||
+ | {S : {nat -> nat}}} | ||
+ | {def byZero {n : nat} : nat | ||
+ | | ||
+ | | ||
+ | {case {S {O}} => {byZero {O}}} | ||
+ | {case {S {S {O}}} => {byZero {S {O}}}}}}} | ||
+ | | ||
+ | >" | ||
+ | </ | ||
<code scheme> | <code scheme> |