RosettaCodeData/Task/Text-processing-Max-licenses-in-use/APL/text-processing-max-licenses-in-use-1.apl
2023-07-01 13:44:08 -04:00

6 lines
341 B
APL
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

⍝ Copy/paste file's contents into TXT (easiest), or TXT ← ⎕NREAD
I TXT[;8+⎕IO]
D TXT[;⎕IO+14+19]
lu +\ ¯1 * 'OI' I
mx (⎕IO+lu)/lu= max / lu
'Maximum simultaneous license use is ' , ' at the following times:' , max D[mx;]