[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: re-make-list
From: |
Emanuel Berg |
Subject: |
Re: re-make-list |
Date: |
Tue, 11 Feb 2020 00:28:47 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Stefan Monnier wrote:
>> Okay... but what should I do if its still
>> clear then?
>
> Usually converting to CPS is a good first
> step to solve these kinds of problems.
CPS seems to be some version of recursion but
where instead of removing an item from a list
or decreasing a digit one provides f1(a f2) and
it is the function that changes fn..f2(f1(a))
until it and thus the whole thing terminates.
So f2 is the "explicit continuation function"
[1] to f1, the one that gets called after f1
has done its operations on the value
original argument.
Maybe?
[1] https://en.wikipedia.org/wiki/Continuation-passing_style
--
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal
- re-make-list, Emanuel Berg, 2020/02/10
- Re: re-make-list, tomas, 2020/02/10
- Re: re-make-list, Emanuel Berg, 2020/02/10
- Re: re-make-list, tomas, 2020/02/10
- Re: re-make-list, Emanuel Berg, 2020/02/10
- Re: re-make-list, tomas, 2020/02/10
- Re: re-make-list, Stefan Monnier, 2020/02/10
- Re: re-make-list, tomas, 2020/02/10
- Re: re-make-list, Emanuel Berg, 2020/02/10
- Re: re-make-list,
Emanuel Berg <=
- Re: re-make-list, Emanuel Berg, 2020/02/10
- Re: re-make-list, Stefan Monnier, 2020/02/11
- Re: re-make-list, Emanuel Berg, 2020/02/11