If I have a recursive function like this: How can I make a lambda version of it and never give it a name? ... like if i want to inline it somewhere ...
If I have a recursive function like this: How can I make a lambda version of it and never give it a name? ... like if i want to inline it somewhere ...
I have this code knowing that parameters are passed using call by need: I feel like I am missing something, but in the call by need calling foo wit ...
Note: this is a bonus for homework, but I have spent way too long on trying things to no avail. Help is much appreciated, but not necessary I suppose. ...
I'm doing an academic exercise (for personal growth). I want to find programming languages that allow you to define functions that are capable of acce ...
In The Little Schemer book, in Chapter 9, while building a length function for arbitrary long input, the following is suggested (on pages 170-171), th ...
I am trying to create a big Vandermonde array of Func's. I can create a 4x3 system like this: But it's infeasible to write big (say 100x50) systems ...
I'm reading The Little Schemer and feel confused about the following code: The code is to determine the empty list, otherwise it never stops. Why ...
I've been looking into how languages that forbid use-before-def and don't have mutable cells (no set! or setq) can nonetheless provide recursion. I of ...
I am using a recursion function to convert my menus in a tree. The array I got from the database is: I am calling a recursive function by passing t ...
Below are are functions and tests of anonymous recursion. The first one is true Y-combinator, looks fine and simple, but is quite slow. It takes 1000m ...
I was trying to solve the maximal subsequence sum problem and came up with a neato solution You call the wrapper function msss, which then calls f, ...
Note: This is kind of homework, kind of not -- the end goal is to have a function that produces a powerset of a set of numbers supplied to the functio ...
I'm in a Scheme class and I was curious about writing a recursive function without using define. The main problem, of course, is that you cannot call ...
Consider the factorial function defined within a method body as a lambda expression and assigned to a variable: This fails, since factfail isn't bo ...
I surfed into this site a few days ago on "Anonymous Recursion in C#". The thrust of the article is that the following code will not work in C#: Th ...