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: 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


Attachment: blake1.apl.gz
Description: GNU Zip compressed data


reply via email to

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