Open emil14 opened 1 month ago
See #724
flow GetString(a, b, c) (s string) { Select<string> --- :a -> select:if[0] :b -> select:if[1] :c -> select:if[2] 'a' -> select:then[0] 'b' -> select:then[1] 'c' -> select:then[2] 'd' -> select:else select -> :s }
def GetString(a, b, c) (s string) { select { :a: 'a' :b: 'b' :c: 'c' else: 'd' } -> :s }
select
Go's select answers not just "where from" but also "what" (you can ignore value from chan but it's there)
See #724
Before (desugared)
After (sugar)