How to use Relay Control Flow?

relay has support for recursion, pattern matching, conditional. with them you can define lstm.