bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-apl] Strange behaviour of ,/


From: Elias Mårtenson
Subject: [Bug-apl] Strange behaviour of ,/
Date: Sat, 1 Feb 2014 01:37:23 +0800

As far as I understand, OP/ is supposed to splice OP in between every element in the array and return the result.

Based on this, I would expect that ,/1 2 3 4 and 1,2,3,4 to be equivalent. However, they are not, as can be seen in the below paste:

      8⎕CR ,/1 2 3 4
┌─────────┐
│┌→──────┐│
││1 2 3 4││
│└───────┘│
└∊────────┘
      8⎕CR 1,2,3,4
┌→──────┐
│1 2 3 4│
└───────┘

Am I misunderstanding or is GNU APL doing something wrong?

Regards,
Elias

reply via email to

[Prev in Thread] Current Thread [Next in Thread]