Hash from two arrays: Difference between revisions

m
→‎{{header|REXX}}: simplified the program.
(Added Wren)
m (→‎{{header|REXX}}: simplified the program.)
Line 1,726:
hash.='───(not defined)───' /* [↑] blanks added to humorous keys */
/* just because it looks prettier.*/
do k=1 while key.k\==''
call hash vals,key.k /*hash the keys to the values. */
end /*k*/
 
parse arg query . /*obtain what was specified on the C.L.*/
if query\=='' then exitsay 'key:' left(query,40) "value:" /*Nothing? Then leave Dodge Cityhash. */query
say 'key:' left(query,40) "value:" hash.query /*display some stuff to the terminal. */
exit /*stick a fork in it, we're all done. */
/*──────────────────────────────────────────────────────────────────────────────────────*/