1 回答
4
Try this:
⊂[2] a,[1.5]b
The first part: a,[1.5]b
merges the two arrays and creates a two-dimensional array with each column being the content of the variables a and b.
Then, ⊂[2]
encapsulates each row into pairs, resulting in your desired output.
Note that if you are using Dyalog, you might have to use ↑ instead of ⊂. I think this depends on the value of the ⎕ML variable, but I don't use Dyalog so I can't test this.
于 2014-07-29T12:21:35.590 回答