Hi José,
> I've been thinking on the problem a bit and found another way to tackle
> it, using this incredibly *UGLY* function (all of them formatted as
> the output of 'pp, I have no idea how to make it more aesthetically
> pleasing):
Me neither ;-)
> (de lazy Prg
>(let L (box (cons))
>
I've been thinking on the problem a bit and found another way to tackle
it, using this incredibly *UGLY* function (all of them formatted as
the output of 'pp, I have no idea how to make it more aesthetically
pleasing):
(de lazy Prg
(let L (box (cons))
(con
(val L)
(list
On Thu, Feb 23, 2012 at 09:48:14PM -0300, José Romero wrote:
> Your problem is using the quote function instead of making a copy of
> the list on return, this rewritten version should work:
>
> (de lazy Prg
>(list NIL
> (list 'job (list 'quote (cons 'Value "delayed"))
> (list 'i
On Fri, 24 Feb 2012 00:03:34 +
Imran Rafique wrote:
> Picolisp'ers,
>
> As the subject asks, is it possible to return multiple distinct
> closures from a single function? I was trying out a simple lazy lists
> implementation. The lazy function takes in something and returns that
> something
Picolisp'ers,
As the subject asks, is it possible to return multiple distinct closures from a
single function? I was trying out a simple lazy lists implementation. The lazy
function takes in something and returns that something wrapped in another
function. If you want to 'force' the lazy value, yo