Re: new function

2021-09-19 Thread Taylan Kammer
On 19.09.2021 09:54, Damien Mattei wrote: > hello, > i'm developing an extension to Scheme > and i need a procedure or macro that define a variable only if it is not bind > and if it is just set! it. > > I can not do it in Guile or any Scheme,and i'm desperately searching a way to > do that. I f

Python

2021-09-19 Thread Stefan Israelsson Tampe
in python on guile you can do, def g(yield_fkn,x): yield_fkn(x+1) yield_fkn(x+2) and def f(l): for x in l: g(yield,x) and this extension works like this in python on guile list(f([1,2]) --> [1,2,2,3] Nifty right. This is thanks to the superb infrastructure in scheme (selimit

Re: new function

2021-09-19 Thread Matt Wette
On 9/19/21 7:41 AM, Matt Wette wrote: On 9/19/21 12:54 AM, Damien Mattei wrote: hello, i'm developing an extension to Scheme and i need a procedure or macro that define a variable only if it is not bind and if it is just set! it. I can not do it in Guile or any Scheme,and i'm desperately s

Re: new function

2021-09-19 Thread Matt Wette
On 9/19/21 12:54 AM, Damien Mattei wrote: hello, i'm developing an extension to Scheme and i need a procedure or macro that define a variable only if it is not bind and if it is just set! it. I can not do it in Guile or any Scheme,and i'm desperately searching a way to do that. I finally conc

new function

2021-09-19 Thread Damien Mattei
hello, i'm developing an extension to Scheme and i need a procedure or macro that define a variable only if it is not bind and if it is just set! it. I can not do it in Guile or any Scheme,and i'm desperately searching a way to do that. I finally conclude that it can be done only by adding it in t