« Back to blog
12 | "Rod Serling": { "Episodes": 156 }, |
13 | "Martin Landau": { "Episodes": 2 }, |
14 | "William Shatner": { "Episodes": 2 } |
19 | function printDirectors() { |
20 | echo " The ``people.Directors.length()`` Directors are:" |
22 | for director in ``people.Directors.items()``; do |
23 | printf " - %s\n" ${!director} |
27 | `` people.Directors = [ "John Brahm", "Douglas Heyes" ] `` |
30 | newDirector="Lamont Johnson" |
31 | `` people.Directors.push($newDirector) `` |
34 | echo "Shifted: ``people.Directors.shift()``" |
37 | echo "Popped: ``people.Directors.pop()``" |
This is awesome!
|