bug-apl
[Top][All Lists]
Advanced

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

[Bug-apl] ≡/⍎¨ '5' "5" ⍝returns 1


From: alexweiner
Subject: [Bug-apl] ≡/⍎¨ '5' "5" ⍝returns 1
Date: Sun, 20 Sep 2015 12:57:06 -0700
User-agent: Workspace Webmail 5.15.9

Hi Bug-APL,

Should the execute primitive include the structure data? I thought that the phrase in the subject line would return zero. I thought the first element would return a scalar 5, and the second would return a single element five. Both evaluate to a scalar five.

These lines, that include coercion to vector, correctly do what I wanted to do. I'm just wondering if there a reason that both inputs end up as scalars regardless of quotes or double quotes:
      ≡/⍎¨ '5' ",5"
┏━┓
┃0┃
┗━┛
      ≡/⍎¨ '5' ',5'
┏━┓
┃0┃
┗━┛

-Alex

reply via email to

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