For example
data Foo = Foo
with
a : Int
b : Int
deriving (Eq, Show)
template Bar
with
p : Party
f : Foo
where
signatory p
choice DoSomething : ()
controller p
do
let (a,b) = (f.a, f.b)
let c = a + b
pure ()
In the choice body, is there an idiomatic way to import a
and b
instead of let (a,b) = (f.a, f.b)
?