map with multiple inputs
It looks like the map command does not support multiple inputs to the specified function:
This is from http://www.cs.berkeley.edu/~bh/v1ch5/hof.html :
SHOW (MAP "sum [1 2 3] [40 50 60] [700 800 900])
but just produces a "number expected" error.
Live and learn, Andreas
Further reading in the http://www.cs.berkeley.edu/~bh/v1ch5/hof.html :
Map
takes two inputs. The first is a word, which must be the name of a one-input Logo operation. The second can be any datum. The output from map
is either a word or a list, whichever is the type of the second input. The members of the output are the results of applying the named operation to the members of the second input.
? show map "first [Rod Argent] [R A]
The Logo command SUM has two inputs, therefore it output as expecting another number because it does SUM 1 and it needs another number.
Hmm.. this is probably a bug in the original Logo interpreter http://www.calormen.com/jslogo/ by Joshua Bell. I will see if I can fix it, or I will post this issue to Joshua at https://github.com/inexorabletash/jslogo
PS: Thanks for testing :-) Are you having another project in mind that will use MAP command?
Thanks for following up !