Gentle reminder :)
On Fri, May 3, 2019 at 6:24 PM C K Kashyap wrote:
> Hi all,
> I've made an attempt at JSON parsing. I did this since json.l at
> https://github.com/aw/picolisp-json does not handle floating numbers and
> that is something I need. I also took it as an opportunity to implement
Hi,
The sort is destructive of the input.
https://software-lab.de/doc/refS.html#sort
There are other functions that behave like this that you need to be aware
of when writing code.
You have to assign the result of the sort to another variable. Back to
itself is fine.
: (setq L '((3) (2) (1)))
->
Hi Kashyap,
> I noticed an odd behavior of sort -
> (setq L '((2) (1) ))
> (sort L)
Note that 'sort' is a destructive function, it modifies the order of cells
in-place. Thus you must use the return value of 'sort', it may return another
cell than was passed to it.
In the above, the return
Hi all,
I noticed an odd behavior of sort -
(setq L '((2) (1) ))
(println (length L)) # 2 as expected
(sort L)
(println (length L)) # why 1?
(println L) # ((2))
(bye)
I would expect sort not to change the length. Am I missing something here
or is sort broken?
Regards,
Kashyap
On Sun, Apr 28, 2019, 22:02 Joh-Tob Schäg Hello Nehal,
> I've been doing some catching up on these videos.
> Mr. Alabhya Singh took quiet some time to explain this mathematical problem
> with the different approaches. I recall that in Germany when i was
> confronted with the same problem (apply +
Thanks! I absolutely agree with you. What a depiction!
For us, Lisp is just a way of dealing data in a different way (syntax)
(with kids).
We'll also be holding lectures in tribal schools, it's going to a fun
activity for sure.
Also the kids are experiencing a different life, things in an