Skip to main content
shortened
Source Link
marinus
  • 31.2k
  • 7
  • 71
  • 112

APL (1515 13)

{⎕←⊃⍵,⎕DL ⍵⎕←⍵⊣⎕DL⍵}&¨⎕

What it does:

¨⎕       : for each element of the input
&        : do on a separate thread
⎕DL⎕DL⍵    : wait approx. ⍵ seconds
⎕←⊃⍵⎕←⍵     : output ⍵

APL (15)

{⎕←⊃⍵,⎕DL ⍵}&¨⎕

What it does:

¨⎕       : for each element of the input
&        : do on a separate thread
⎕DL    : wait approx. ⍵ seconds
⎕←⊃⍵    : output ⍵

APL (15 13)

{⎕←⍵⊣⎕DL⍵}&¨⎕

What it does:

¨⎕       : for each element of the input
&        : do on a separate thread
⎕DL⍵    : wait approx. ⍵ seconds
⎕←⍵     : output ⍵
Source Link
marinus
  • 31.2k
  • 7
  • 71
  • 112

APL (15)

{⎕←⊃⍵,⎕DL ⍵}&¨⎕

What it does:

¨⎕       : for each element of the input
&        : do on a separate thread
⎕DL ⍵   : wait approx. ⍵ seconds
⎕←⊃⍵    : output ⍵