From: Mischa POSLAWSKY Date: Thu, 26 May 2022 12:22:42 +0000 (+0200) Subject: apl: operator data as array reference X-Git-Tag: v1.14~92 X-Git-Url: http://git.shiar.nl/sheet.git/commitdiff_plain/fc554ef8ffaab2f0a3daed89ae1a18d9c0e117af apl: operator data as array reference Avoid list rows for json storage. --- diff --git a/apl.inc.pl b/apl.inc.pl index 3559372..3683d54 100644 --- a/apl.inc.pl +++ b/apl.inc.pl @@ -1,5 +1,5 @@ use utf8; -( # dyadic, monadic +[ # dyadic, monadic # arithmetic ["+\n-", "add\nSum of A and B", "conjugate\nNo change to B"], @@ -122,4 +122,4 @@ undef, ["⍤\nJ", "rank\nApply function successively to the sub-arrays in B specified by k"], ["⍥\nO", "coax"], -); +]; diff --git a/apl.plp b/apl.plp index d01d3ed..efd1f35 100644 --- a/apl.plp +++ b/apl.plp @@ -27,7 +27,7 @@ EOT use Shiar_Sheet::FormatChar; my $glyphs = Shiar_Sheet::FormatChar->new; -my @ops = Data('apl'); +my $ops = Data('apl'); :>

APL Symbols

@@ -47,7 +47,7 @@ my @ops = Data('apl'); <: -for my $op (@ops) { +for my $op (@{$ops}) { $op or do { say ''; next;