In your example, a_echo can be a regular proc definition. What you are doing is assigning an immutable variable a_echo to an anonymous procedure, which is of type Action.
You could also use `fill` from `std/algorithm` for initializing the actions array instead of doing a plain for loop <https://play.nim-lang.org/#ix=4KE5>