And this would be it in more idiomatic Nim:
    
    
    proc buildApp: App =
      let todo = TodoApp()
      result = proc(events: seq[InEvent]): seq[OutEvent] =
          todo.process(events)
    
    
    
    Run

Reply via email to