wanted to ask about <https://chat.stackexchange.com/transcript/message/59923809#59923809> again because either it was missed or I missed the reply, hope it's not frowned upon to do that
I see aplcart has some stuff for "days of month Is in year J"/"month I of years J". is there a more elegant one if I only need the days in a single month?
I did randInts ← 100000 ? 100000 and compared execution times of randInts ⍳ 1, 19326, and 46729. the return values of those are 94438, 1001, and 1 respectively. the execution times are 0.13ms, 0.47ms, and 0.12us respectively. can anyone explain what's happening?
so I was reading <https://xpqz.github.io/learnapl/iteration.html> a bit ago and was confused by the binary search example, so wanted to test. the numbers I'm seeing for linear search are both nothing like his and don't make a lot of sense.
For the FRC problem, I imagine this was not what I was meant to do - would like some advice on improving it. {(1=(⍸'R'=⍵)⍸(⍵⍳'K'))∧2|+/⍸'B'=⍵} (Problem: problems.tryapl.org/psets/…)
thanks. unrelated and let me know if I'm asking too much random stuff but. is this reasonably idiomatic or did I miss a better way? count ←{+/⍺∊⍵} and then basecount ← {⍵ count⍤1 0⊢'ACGT'}
is there any way to get ⎕NGET to use a relative path instead of absolute? (or, at least, if it does use a relative path, it doesn't start in the folder my .dws file is in...)
thanks! definitely says something about something that I'm spending more time trying to get I/O working than writing {'TGCA'['ACGT'⍳⊖⍵} or whatever. what it says about what, I'm not exactly sure yet ^^
thanks, that does make the input side of things better. don't suppose there's anything convenient like a way to copy the result of an expression directly to clipboard (without boxing/indents/extra whitespace between lines/etc)?
Trying the Rosalind problems to figure out the basics but I'm having some difficulty with inputs/outputs that are fairly long - was able to get one question working with ⊃⎕NGET but even then it choked on the terminating newline initially and then I had to manually remove blank lines and indents to submit the output...
Hi, thank you. Was reminded that I really should learn some APL after writing a depressing amount of (vector-set! v i (+ (vector-ref v i) 1))-style code for today's AoC problem and having it suggested that maybe I should use a language that's actually good at arrays for that sort of thing.