Nested array comprehensions in CoffeeScript

后端 未结 2 537
情深已故
情深已故 2021-02-12 11:02

In Python

def cross(A, B):
   \"Cross product of elements in A and elements in B.\"
   return [a+b for a in A for b in B]

returns an one-dimen

2条回答
提交回复
热议问题