Post Reply 
New Version: 2018.02.12 1.4.1.13441
03-08-2018, 04:01 PM
Post: #59
RE: New Version: 2018.02.12 1.4.1.13441
(03-08-2018 02:44 PM)Wes Loewer Wrote:  
(03-06-2018 02:06 PM)vaca Wrote:  {{1,1,1},{2,1,1}}+{1,0,1}
return bad argument count。

Hope return {{2,1,2},{3,1,2}}

The error makes sense. You are trying to add a list of 2 elements plus a list of 3 elements. It would be ambiguous otherwise.

{{1,1,1},{2,2,2},{3,3,3}}+{1,2,3} could be interpreted as:

{{2,3,4},{3,4,5},{4,5,6}} adding {1,2,3} to each list
or
{{2,2,2},{4,4,4},{6,6,6}} adding 1 to the 1st list, 2 to the 2nd, 3 to the 3rd.


Would this meet your needs?

{{1,1,1},{2,1,1}}+{{1,0,1},{1,0,1}} -> {{2,1,2},{3,1,2}}

yes,you are right
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: New Version: 2018.02.12 1.4.1.13441 - vaca - 03-08-2018 04:01 PM



User(s) browsing this thread: 1 Guest(s)