On 9 September 2016 at 23:39, Ala'a Mohammad wrote:
> the errors happened inside 'hist' function, and I presume mostly due
> to the jot dot find (if understand correctly, operating on a matrix of
> length equal to : unique-length * words-length)
Try (∪⍵)∘.≡⍵ instead of ∨/¨(∪⍵)∘.⍷⍵.
-k
Bug report,
while I tested that I got a "Killed" (out of memory) issue.
while running my tests, the last function had an error. "⍵" was very large at
that point. (100,000+)
I did at that point:
)copy Util type
and the process/virtual_machine was completely stuck for more 10 minutes and
Seems like a good motivation to support quad equal: ⌸
See the key operator in dyalog:
http://help.dyalog.com/15.0/Content/Language/Primitive%20Operators/Key.htm
On the other hand, pattern matching A[n]←x for
in-place operation seems a good way to go.
Not sure if it’s possible in GNU APL.
> On Sep
I got to may be 2% of the work with this:
alpha_only←{(⍵∊'abcdefghijklmnopqrstuvwxyz ')/⍵←tolower ⍵}
remove_blank_lines←{(∊0≠⍴¨⍵)/⍵}
tolower←{('abcdefghijklmnopqrstuvwxyz',⎕av)[('ABCDEFGHIJKLMNOPQRSTUVWXYZ',⎕av)⍳⍵]}
)sic
)erase readfile_fast
∇z←readfile_fast name;fd;lines;⎕i
Hi,
I'm trying to create simple spell corrector (Norvig at
http://norvig.com/spell-correct.html) in APL.
I tried but stumbled upon the frequency/count stage and could not move
further. The stopper was either WS Full, or apl process killed. I'm
assuming the main issue is 'lack of experience with AP