original.name="Template_Valid_33" ====== >>> main.whiley type handler is function(T)->(T) type State is { bool flag } function map(handler h, T v) -> (T r): return h(v) function id(int x) -> (int y): return x function invert(State s) -> (State r): return {flag: !s.flag} public export method test(): State s1 = {flag: true} State s2 = {flag: false} // assume map(&id,0) == 0 // assume map(&invert,s1) == s2 ---