From fc554ef8ffaab2f0a3daed89ae1a18d9c0e117af Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Thu, 26 May 2022 14:22:42 +0200 Subject: [PATCH] apl: operator data as array reference Avoid list rows for json storage. --- apl.inc.pl | 4 ++-- apl.plp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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; -- 2.30.0