Hi APLers!
as I had a look into the archives, it seems ok, to post non bugs and
other topics not closely related to gnu-apl, but APL in general (for
sure, utilizing gnu-apl)? If my following post is offtopic please
excuse, and please let me know, where would be right place to discuss.
So - i am q
quick attempt:
3 {(⍵⍴⍨≢⍵)⊂⍨(≢⍵)↑⍺/⍵} 1 2 3 4 5 6 7
┏→━━┓
┃┏→┓ ┏→┓ ┏→┓┃
┃┃1 2 3┃ ┃4 5 6┃ ┃7┃┃
┃┗━┛ ┗━┛ ┗━┛┃
┗∊━━┛
On Sat, Apr 11, 2020 at 9:02 PM Otto Diesenbacher-Reinmüller <
ok...@diesenbacher.net> wrote:
> Hi APLers!
>
> as I had a look i
addendum, forget an extra ⍳≢
{(⍵⍴⍨≢⍵)⊂⍨(≢⍵)↑⍺/⍳≢⍵}
Cheers.
On Sat, Apr 11, 2020 at 9:19 PM Rowan Cannaday wrote:
> quick attempt:
>
> 3 {(⍵⍴⍨≢⍵)⊂⍨(≢⍵)↑⍺/⍵} 1 2 3 4 5 6 7
> ┏→━━┓
> ┃┏→┓ ┏→┓ ┏→┓┃
> ┃┃1 2 3┃ ┃4 5 6┃ ┃7┃┃
> ┃┗━┛ ┗━┛ ┗━┛┃
> ┗∊━━
This is what I am getting on a clean build:
$ apl --version
BUILDTAG:
-
Project:GNU APL
Version / SVN: 1.8 / 1259
Build Date: 2020-04-11 22:41:54 UTC
Build OS: Linux 5.3.0-46-generic x86_64
config.status: default ./configure options
Archive SVN:
On Sat, Apr 11, 2020 at 11:02:39PM +0200, Otto Diesenbacher-Reinmüller wrote:
1 chunk monkey
I would write it as {(+\(⍴,⍵)⍴⍺↑1)⊂,⍵}.
(In low-⎕ML Dyalog it would be {((≢⍵)⍴⍺↑1)⊂,⍵} without needing that +\
on left argument.)
You can write ≢⍵ or ⍴,⍵ here, using ≢ is probably more idiomatic in
Dy