I running into a somewhat unexpected behavior for a list of lists. Here is what happens in the listener:
eqs:((list 4, 2, 1, 3), (list 16, 4, 1, 12), (list 8, 1, 0, 0)) # listener prints back the list ((4, 2, 1, 3), (16, 4, 1, 12), (8, 1, 0, 0)). So far so good e:eqs # listener nicely print the list again ((4, 2, 1, 3), (16, 4, 1, 12), (8, 1, 0, 0)) e # listener prints the actual value of e: 2.718282. Why??? # I have also tried, with the same amount of success :( e:each eq in eqs end
How can I copy a list of lists? And why do I get this decimal value assigned to e even though the listener prints back the list that I'm trying to copy into e?
Edit:
I found the issue, e is a constant so even though Lil doesn't complain about me assigning a value to it the assignment doesn't actually happen and fails silently.