Size: 1745
Comment:
|
← Revision 20 as of 2016-08-19 10:39:35 ⇥
Size: 1344
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
#acl AutoAdminGroup:read,write,admin,delete,revert All:read |
|
Line 6: | Line 8: |
<<TableOfContents>> Describe the problem to be solved here. |
Note that this page exists in order to test the automated tests of both, examples and test cases on all phrase pages. For that reason this page contains buggy examples and buggy test cases |
Line 11: | Line 11: |
Put the phrase here | +/ |
Line 16: | Line 16: |
/* Add proper examples here, and don't forget to fix a sample function changing "!PhraseName" accordingly */ | |
Line 18: | Line 17: |
⎕FX⊃'r←[?] PhraseName ?' 'r←....' Display PhraseName array |
⎕FX⊃'r←Sum na' 'r←+/na' Display Sum 1 2 3 6 Display Sum 2 3 4⍴⍳24 6 |
Line 21: | Line 23: |
== Specialities == .... /* Add special remarks for specific dialects here, for example the mentioning of a system function solving the problem goes here */ == Compatibility == Checked with: /* APL2, APLX, APL+Win, Dyalog, NARS2000 - Add as many as you can/like */ |
|
Line 40: | Line 34: |
⎕FX'r←[larg] PhraseName rarg' 'r←phrase' | ⎕FX'r←Sum na' 'r←+/na' |
Line 42: | Line 36: |
/* expectedResult ≡ statement */ | 1 ≡ Sum 1 2 3 1 ≡ Sum 1 0 ≡ Sum ⍳0 |
Line 44: | Line 40: |
Line 48: | Line 43: |
See also: ... /* Add proper Wiki names. The pages do not necessarily must exist. If they don't they will show up on WantedPages and that's just fine */ | [[http://aplwiki.com:49991/phrasebook?action=CheckCode&page=TestPage | Test my code]] |
Line 50: | Line 45: |
Mentor: AplWiki:JohnDoe /* Replace by your name */ | Mentor: AplWiki:KaiJaeger |
Line 53: | Line 48: |
CategoryPhrasesAll /* Don't forget to add more categories. If they do not exist so far that's fine - someone will take care */ | CategoryListAll |
TestPage
Note that this page exists in order to test the automated tests of both, examples and test cases on all phrase pages. For that reason this page contains buggy examples and buggy test cases
+/
Examples
⎕FX⊃'r←Sum na' 'r←+/na' Display Sum 1 2 3 6 Display Sum 2 3 4⍴⍳24 6
Test Cases
Show test cases
Mentor: KaiJaeger