[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: |
Frederick H. Pitts |
Subject: |
Re: [Bug-apl] box and unbox that work uniformly and without exceptions |
Date: |
Sun, 18 May 2014 22:07:57 -0500 |
Hello Blake,
After having asked you to present a use case where the behavior of
box/unbox differs from enclose/disclose and you graciously replied, I
felt obligated to spend a little time studying the issue. I did that
and have come to the conclusion that both boxed and nested arrays are
overkill for the use case. The key-value pair text (separated by a
blank) or key text can be supplied in a character vector which can
easily be parsed for the presence of one or two words. See the attached
blake1.apl.gz for a demonstration.
I would like to make the observation that nested arrays must not be too
bad. After all, the revised code to fix their shortcomings only took 5
lines written in terms of nested arrays.
Regards,
Fred
Retired Chemical Engineer
On Sat, 2014-05-17 at 22:20 -0500, Blake McBride wrote:
> Lastly,
>
>
> ⍴(box 'abc'),box 'def'
> ┌→┐
> │2│
> └─┘
>
>
> Blake
blake1.apl.gz
Description: GNU Zip compressed data
- Re: [Bug-apl] box and unbox that work uniformly and without exceptions, (continued)
Re: [Bug-apl] box and unbox that work uniformly and without exceptions, Frederick H. Pitts, 2014/05/16
- Re: [Bug-apl] box and unbox that work uniformly and without exceptions, Blake McBride, 2014/05/17
- Re: [Bug-apl] box and unbox that work uniformly and without exceptions, Blake McBride, 2014/05/17
- Re: [Bug-apl] box and unbox that work uniformly and without exceptions, Blake McBride, 2014/05/17
- Re: [Bug-apl] box and unbox that work uniformly and without exceptions, Frederick H. Pitts, 2014/05/18
- Re: [Bug-apl] box and unbox that work uniformly and without exceptions, Elias Mårtenson, 2014/05/18
- Re: [Bug-apl] box and unbox that work uniformly and without exceptions, Blake McBride, 2014/05/18
- Re: [Bug-apl] box and unbox that work uniformly and without exceptions,
Frederick H. Pitts <=
- Re: [Bug-apl] box and unbox that work uniformly and without exceptions, Blake McBride, 2014/05/19
- Re: [Bug-apl] box and unbox that work uniformly and without exceptions, Frederick H. Pitts, 2014/05/19
- Re: [Bug-apl] box and unbox that work uniformly and without exceptions, Blake McBride, 2014/05/20
- Re: [Bug-apl] box and unbox that work uniformly and without exceptions, Blake McBride, 2014/05/20
- Re: [Bug-apl] box and unbox that work uniformly and without exceptions, Frederick H. Pitts, 2014/05/20