herestring.ion 211 B

123456789101112131415
  1. echo $(tr '[a-z]' '[A-Z]' <<< foo)
  2. let output = [foo bar baz bing]
  3. fn find elem array
  4. if grep -q $elem <<< $array
  5. echo "true"
  6. else
  7. echo "false"
  8. end
  9. end
  10. find "bar" "@output"
  11. find "zar" "@output"