@timothee, use `procvar` annotation if you have the proc defined
    
    
    proc echoa() {.procvar.} =
      echo "proca"
    
    proc echob() {.procvar.} =
      echo "procb"
    
    let echos = @[echoa, echob]
    
    for f in echos:
      f()
    

You can use together with enum as matching case or any other method, like using 
index of array or string key table etc

Reply via email to