11-Recursion in Scheme

Publicado el: 21 febrero 2021
en el canal de: Dr. Andy Wicks
1,993
25

Recursion is an odd concept. It is where a function calls itself. Obviously, this creates a loop (the only kind of loop there is in functional programming). For this to work, there has to be a way out - the base case. We therefore create a function (which here is called rec-step) which contains the command to be repeated. After testing that that works we create another function which calls itself, rec-step and has at least one basecase (a way out). Once that has been tested and shown to work we can replace the call to rec-step with a lambda function so that all the code is in one place.

The code used in this video can be found via https://lyw4.life/Resources/scheme.php.


En esta página del sitio puede ver el video en línea 11-Recursion in Scheme de Duración hora minuto segunda en buena calidad , que subió el usuario Dr. Andy Wicks 21 febrero 2021, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 1,993 veces y le gustó 25 a los espectadores. Disfruta viendo!