LoadSudoku←{{⊂9 9 ⍴¯1+'0123456789' ⍳ ⍵}⎕FIO[49] ⍵}
LoadSudoku2←{{⊂9 9 ⍴ ⍵}⍤1 ⊃ ⊢⎕FIO[49] ⍵}
LoadSudoku3←{{⊂9 9 ⍴ ⍵} ⎕FIO[49] ⍵}
LoadSudoku4←{{⊂9 9 ⍴ ⍵}¨ ⊢ ⎕FIO[49] ⍵}
time 'a←LoadSudoku3 "Sudoku_dump.txt"'
12.5218593
time 'a←LoadSudoku3 "Sudoku_dump.txt"'
12.05148675
time 'a←LoadSudoku4 "Sudoku_dump.txt"'
11.81709633
time 'a←LoadSudoku4 "Sudoku_dump.txt"'
12.02904081
⍴a
246304
Well, using the "for each" operator is quite the same speed as using the
optional left function F.
My opinion would be to remove this behavior, but Juergen will decide..
Xtian.
On 2017-01-19 20:28, Christian Robert wrote:
⊣⎕FIO[4]fd
DOMAIN ERROR
⊣⎕FIO[4]fd
^ ^
fd
6
⊣ ⊢⎕FIO[4]fd
DOMAIN ERROR
⊣⊢⎕FIO[4]fd
^ ^
⎕FIO[4]fd
0
how do I silence the result of ⎕FIO[4] ?
Xtian.