bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] ⎕FIO[49] introduced a complete change of other ⎕FIO[] syn


From: Christian Robert
Subject: Re: [Bug-apl] ⎕FIO[49] introduced a complete change of other ⎕FIO[] syntax
Date: Thu, 19 Jan 2017 20:49:08 -0500
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0

      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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]