Skip to content

Commit

Permalink
Destructure resume parameters for better readability
Browse files Browse the repository at this point in the history
  • Loading branch information
marzipankaiser committed Sep 30, 2022
1 parent 1b99e48 commit 199dbf9
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,9 @@ object Transformer {
// TODO currently only scoped resumptions are supported
// TODO assuming first parameter is evidence TODO actually use evidence?
transform(args).run { values =>
val (evidence :: returnedValues) = values;
PushStack(Variable(transform(id), Type.Stack()),
Return(values.tail))
Return(returnedValues))
}
case _ =>
Context.abort(s"Unsupported blocksymbol: $id")
Expand Down

0 comments on commit 199dbf9

Please sign in to comment.