I want to build a JS object that has two inlets
- each inlet gets a list of varying length's (numbers)
- I then want to compare list a to list b, - so I guess I need to sort the list (making the smallest number come in front, and etc.) but that could also be done before the js object (since I read somewhere that JS in Max doesn't have a sort method ?)
- I want to get TRUE if the shorter list matches the longer list's first numbers (so if list a is (1,2,3) and list b is (1,2,3,4,5) then that should return True (or bang)
I understand how to make a list() function - something like this :
for (i=0; i < arguments.length; i++)
post("item ", i+1, "is", arguments[i]+",");
But I don't know how to go about making a function that takes two lists from two inlets - how do I discern which list is being refered to when I use "arguments"