# e8ad8010c0441e753c048b2960d814a65d4f12334bb3abd64900146e9a3e7cff Elan 1.8.2 guest default_profile valid

main
  variable names set to ["Tom", "Dick", "Harriet"]
  print names[0]
  each n in names
    print n
  end each
  print reverse("Harriet")
end main

function reverse(s as String) returns String
  variable sReturn set to empty String
  each ch in s
    set sReturn to ch + sReturn
  end each
  return sReturn
end function
