Hi Elias,
I believe so. For my taste there are to many [axes] which should
be*⎕IO+'*ed to be portable.
How about this instead:
* { ⊃1**↓**,((⊂⍺)≡¨ ,0 ¯1↓⍵)⌿⍵ }*
/// Jürgen
On 08/03/2014 05:55 PM, Elias Mårtenson wrote:
I wrote this function to print the value(s) of a given field:
{ (((⍺[;⎕IO]) ≡¨ ⊂⍵) /[1] ⍺)[;2] }
Could it be improved?
Regards,
Elias
On 3 August 2014 23:45, Juergen Sauermann
<juergen.sauerm...@t-online.de <mailto:juergen.sauerm...@t-online.de>>
wrote:
Hi Elias,
looks good!
/// Jürgen
On 08/03/2014 05:22 PM, Elias Mårtenson wrote:
OK, I changed the SQL.apl file. Looks OK?
https://github.com/lokedhs/apl-sqlite/blob/547c8191021629eb29b0bc141ff206766e1c21d3/SQL.apl#L134
Regards,
Elias
On 3 August 2014 21:29, Juergen Sauermann
<juergen.sauerm...@t-online.de
<mailto:juergen.sauerm...@t-online.de>> wrote:
Hi Elias,
yes, your's looks better, I will change that.
Lets call the function Z←package⍙metadata.
/// Jürgen
On 08/02/2014 05:50 PM, Elias Mårtenson wrote:
After implementing the metadata functions nnn⍙Provides,
nnn⍙Requires, etc, I feel that we should change this slightly.
I find the that multitude of functions to support this tend
to pollute the output of )FNS quite a bit. It's also
somewhat inflexible in that it requires you to add even more
functions as new features are added to the package system.
How about we change this so that only one function is used,
for example nnn⍙package_metadata or something like that? The
name matters less, but the point is that it's only a single
function.
I find this to be a lot cleaner.
As an example, for SQL, the content would be:
* 8⎕CR SQL⍙package_metadata*
┌→─────────────────────────────────────────────────┐
↓┌→─────┐ ┌→──────────────┐ │
││Author│ │Elias Mårtenson│ │
│└──────┘ └───────────────┘ │
│┌→───────┐ ┌→──────────────┐ │
││BugEmail│ │bug-apl@gnu.org <mailto:bug-apl@gnu.org>│
│
│└────────┘ └───────────────┘ │
│┌→───────┐ ┌→────────────────────────────────────┐│
││Download│ │https://github.com/lokedhs/apl-sqlite││
│└────────┘ └─────────────────────────────────────┘│
│┌→──────┐ ┌→───┐ │
││License│ │LGPL│ │
│└───────┘ └────┘ │
│┌→───────┐ ┌→──┐ │
││Provides│ │SQL│ │
│└────────┘ └───┘ │
│┌→──────┐ ┌→──┐ │
││Version│ │1.0│ │
│└───────┘ └───┘ │
└∊─────────────────────────────────────────────────┘
Regrads,
Elias