exercise 2019/01

2020-04-11 Thread Otto Diesenbacher-Reinmüller
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

Re: exercise 2019/01

2020-04-11 Thread Rowan Cannaday
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

Re: exercise 2019/01

2020-04-11 Thread Rowan Cannaday
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┃┃ > ┃┗━┛ ┗━┛ ┗━┛┃ > ┗∊━━

Re: Loading .apl files differes from .xml workspaces

2020-04-11 Thread Blake McBride
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:

Re: exercise 2019/01

2020-04-11 Thread Kacper Gutowski
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