Differences between revisions 18 and 19
Revision 18 as of 2016-08-19 10:26:37
Size: 2169
Editor: anonymous
Comment:
Revision 19 as of 2016-08-19 10:38:54
Size: 1349
Editor: anonymous
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>>

ksdckjn kjn kjn kj nkj

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 13: Line 11:
      Put the phrase here       +/
Line 15: Line 13:

[[http://aplwiki.com:49991/phrasebook?action=CreateTagPage | Create Tags]]
Line 20: Line 16:
/* Add proper examples here, and don't forget to fix a sample function changing "!PhraseName" accordingly */
Line 22: Line 17:
      ⎕FX⊃'r←[?] PhraseName ?' 'r←....'
      Display PhraseName array
      ⎕FX⊃'r←Sum na' 'r←+/na'
      Display Sum 1 2 3
6
      Di
splay Sum 2 3 4⍴⍳24
6
Line 25: 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 44: Line 34:
 ⎕FX'r←[larg] PhraseName rarg' 'r←phrase'  ⎕FX'r←Sum na' 'r←+/na'
Line 46: Line 36:
 /* expectedResult ≡ statement */  1
 1 ≡ Sum 1 2 3
 1 ≡ Sum 1
 0 ≡ Sum ⍳0
Line 48: Line 41:
Line 50: Line 42:
}}}}
Line 52: Line 45:
}}}}
Line 54: Line 46:
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 */

Mentor: AplWiki:JohnDoe /* Replace by your name */

/* Tags are used to create a list automatically - see ListAllTags */
[[ListAllTags|Tags]]: <<span(css_class=small)>>
<!AppropriateCamelCaseName> <Simpleword> /* Use "!" to avoid unwanted links for CamelCase names */
<<span>>
Mentor: AplWiki:KaiJaeger
Line 64: Line 49:
CategoryListAll /* 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

Test
 ⎕IO←0      ⍝ You may change this; however, zero IS the default in the Phrasebook Wiki
⍝⎕ML←3      ⍝ Enable this line in Dyalog APL if appropriate
 ⎕FX'r←Sum na' 'r←+/na'
⍝ ---- Start Test cases (do not delete this!)
 1 
 1 ≡ Sum 1 2 3
 1 ≡ Sum 1 
 0 ≡ Sum ⍳0

For details see the TestCasesGuidelines.

Test my code

Mentor: KaiJaeger


CategoryListAll

TestPage (last edited 2016-08-19 10:39:35 by KaiJaeger)