3 ms·
I didn’t realize that the function was available in its own scope. This information is going to help me do horrible things with pandas.
by data-ottawa 3y ago
I didn’t realize that the function was available in its own scope. This information is going to help me do horrible things with pandas.
- kevincox 3y agoThis is very important for self-recursion.
- capableweb 3y agoIs there something that isn't "self-recursion"?
- Jtsummers 3y agoMutual recursion. Horrible example, don’t use this: even 0 = true even n = not (odd n-1) odd 0 = false odd n = not (even n-1)
- bewaretheirs 3y agoThat should be even 0 = true even n = odd n-1 odd 0 = false odd n = even n-1 I fed a C version of this (with unsigned n to keep the nasal daemons at bay) to clang and observed that it somehow manages to see through the mutual recursion, generating code that doesn't recurse or loop.
- Jtsummers 3y agoYou are correct, I don't know why I put the nots in there. Either way, demonstrates mutual recursion.
- asah 3y agoThis is very important for self-recursion.
- pjot 3y agoThis is very important for self-recursion.
- fuzztester 3y agohttps://www.google.com/search?q=recursion https://www.google.com/search?q=recursion
- ctoth 3y agoRecursionError: maximum recursion depth exceeded
- dijksterhuis 3y agoThis is very important for self-recursion.
- deleted 3y ago[deleted]