MAC vendor lookup: Difference between revisions

(→‎{{header|Perl}}: Add request throttling.)
(→‎{{header|APL}}: formatting.)
Line 80:
⍝ parameter which we call macList, and the value of the local variable
⍝ vendors will become the function's return value
∇ vendors ← vendorLookup macList
⍝ look up the first vendor and put it into an array in our return var
 
vendors ← ⊆vendorLookup1 macList[1]
⍝ look up the first vendor and put it into an array in our return var
vendors ← ⊆vendorLookup1 macList[1]
⍝ Loop over the rest of the array (1↓ removes the first item)
 
:For burger :In 1↓macList
⍝ Loop over the rest of the array (1↓ removes the first item)
⎕DL 2 ⍝ wait 2 seconds
:For burger :In 1↓macList
vendors ⍪← ⊆vendorLookup1 burger ⍝ then look up the next vendor and append
⎕DL 2 ⍝ wait 2 seconds
:EndFor
vendors ⍪← ⊆vendorLookup1 burger ⍝ then look up the next vendor and append
:EndFor
⍝ end function definition
 
1,480

edits