Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
teaching:cc4101:tareas:2016-2:tarea2 [2016/11/02 00:46] – [P2 - Sistema de Tipos (2.0pt)] fmosso | teaching:cc4101:tareas:2016-2:tarea2 [2016/11/02 00:49] – [Recursión] fmosso | ||
---|---|---|---|
Line 121: | Line 121: | ||
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> |