MAC vendor lookup: Difference between revisions
→{{header|APL}}: move demo code into program instead of output section
m (→{{header|APL}}) |
(→{{header|APL}}: move demo code into program instead of output section) |
||
Line 90:
vendors ⍪← ⊆vendorLookup1 burger ⍝ then look up the next vendor and append
:EndFor
⍝ end function definition
∇
⍝ demo data
{{Out}}▼
⍝ look up the vendors (takes a while with the 2-second delay between lookups)
(⍴ vendorList)[1] 1⍴ vendorList▼
Intel Corporate ▼
⍝ the result is an array (a 1-row by N-column matrix). to print out one vendor
⍝ per line, we reshape it to be N rows by 1 column instead.
▲{{Out}}
Apple, Inc.
Cisco Systems, Inc
|