I also like APL characters, as well as its programming power in an array. Other array languages may be more powerful, such as J, but they lack the beauty of APL characters and explicit syntax.
I just tried the example you refer to in the GNU APL, and everything works correctly:
↑0 1↓↑+.×/5/⊂2 2⍴1 1 1 0
5
↑0 1↓↑+.×/6/⊂2 2⍴1 1 1 0
8
↑0 1↓↑+.×/7/⊂2 2⍴1 1 1 0
13
If you cannot get it to work, make sure that:
- enter (or copy and paste) the exact characters shown in the example: in particular
×- U + 00D7 MULTIPLICATION SIGN, not X; ⍴- U + 2374 APL FUNCTIONAL SYMBOL RHO, not any other Greek Rho, and definitely not P; ⊂- U + 2282 SUBSET OF; etc. - check some numbers other than 1 or 5, because they are the only numbers that are equal to their Fibonacci number;
- N, , N,
N←7 .
, , :
2 2⍴1 1 1 0
1 1
1 0
⊂2 2⍴1 1 1 0
1 1
1 0
7/⊂2 2⍴1 1 1 0
1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 0 1 0 1 0 1 0 1 0 1 0 1 0
+.×/7/⊂2 2⍴1 1 1 0
21 13
13 8
↑+.×/7/⊂2 2⍴1 1 1 0
21 13
13 8
0 1↓↑+.×/7/⊂2 2⍴1 1 1 0
13
8
↑0 1↓↑+.×/7/⊂2 2⍴1 1 1 0
13
, , (bravo @mappo!)
, , , , :
2⌷∊+.×/7/⊂∘.∨⍨1 0
13
, 24 17 . , : -)
GNU APL , , Dyalog APL Programmer Guide Language Reference, .