diff options
Diffstat (limited to 'challenge-262/asherbhs/apl/ch-1.apl')
| -rw-r--r-- | challenge-262/asherbhs/apl/ch-1.apl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/challenge-262/asherbhs/apl/ch-1.apl b/challenge-262/asherbhs/apl/ch-1.apl new file mode 100644 index 0000000000..63974de53f --- /dev/null +++ b/challenge-262/asherbhs/apl/ch-1.apl @@ -0,0 +1,5 @@ +MaxPositiveNegative←{⌈/+/1 ¯1∘.=×⍵} + +⎕←MaxPositiveNegative ¯3 1 2 ¯1 3 ¯2 4 +⎕←MaxPositiveNegative ¯1 ¯2 ¯3 1 +⎕←MaxPositiveNegative 1 2 |
