New issue:
When I have (apply (remove (last From))) in (to) in (add), the evaluation of the function in "count:" changes. I don't understand how that can be. The function, again, is this:
If I simply have (add (to (last To)) count:("MyFunction") stack:True), then selecting the center cell, then a cell 2 steps away will result in a stack of size 2 at the destination. This is what the function is supposed to do.
But if I have (add (to (last To) (apply (remove (last From)))) count:("MyFunction") stack:True), then the same selection results in a stack of size 4 at the destination. What is happening here?
I have attached a version where the (apply) ludeme is added.
When I have (apply (remove (last From))) in (to) in (add), the evaluation of the function in "count:" changes. I don't understand how that can be. The function, again, is this:
Code:
(-
(min
(count Sites
in:(sites Direction
from:(last From)
#1
)
)
(count Sites
in:(sites Direction
from:(last From)
#2
)
)
)
(min
(count Sites
in:(sites Direction
from:(last To)
#1
)
)
(count Sites
in:(sites Direction
from:(last To)
#2
)
)
)
)
But if I have (add (to (last To) (apply (remove (last From)))) count:("MyFunction") stack:True), then the same selection results in a stack of size 4 at the destination. What is happening here?
I have attached a version where the (apply) ludeme is added.