bug-apl
[Top][All Lists]
Advanced

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

Re: [Bug-apl] box and unbox that work uniformly and without exceptions


From: Blake McBride
Subject: Re: [Bug-apl] box and unbox that work uniformly and without exceptions
Date: Sat, 17 May 2014 23:42:45 -0500

I tried the ravel everything method, but that lead to APL2 disclosing a vector into a matrix....  APL2 fought me touth and nail.  I gave up and wrote box/unbox.

--blake



On Sat, May 17, 2014 at 11:18 PM, Frederick H. Pitts <address@hidden> wrote:
Blake,

        Thanks for the detailed response.  I understand the issue more clearly
now.

        I think I would ask the user to reshape scalar arguments to vectors
(e.g. (1⍴'k')(1⍴'v')).  But then, that is as onerous as having to
remember to use box everywhere its required.

Regards,

Fred

On Sat, 2014-05-17 at 22:20 -0500, Blake McBride wrote:
> Lastly,
>
>
>       ⍴(box 'abc'),box 'def'
> ┌→┐
> │2│
> └─┘
>
>
> Blake
>
>
>
>
>
>
>




reply via email to

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