bug-apl
[Top][All Lists]
Advanced

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

[Bug-apl] scalar/array


From: enztec
Subject: [Bug-apl] scalar/array
Date: Fri, 3 Mar 2017 10:29:03 -0700

i just watched a great video on apl   and this was discussed    i still don't 
know what the harm/problem would be if instead of returning 'nothing' 

      ⍴'a'                 why doesn't it return 1   - there is something there 
   please don't mention scalar i know all about it - but to me this has always 
been an inconsistency in apl that made no sense to me

      ⍴'aa'               the ,   isn't required in   ⍴,'aa'    to be 
consistent ??
2
      ⍴,'a'
1


      'a'[1]
RANK ERROR
      'a'[1]
      ^  ^
      'ab'[1]
a
      (,'a')[1]
a



under what condition would   'a'[1]    returning 'a'  be a problem?



reply via email to

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