Skip to content

How to model a composite trace? #1533

Answered by bugarela
mt40 asked this question in Q&A
Oct 18, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi! I don't think I understand what you mean by "composite trace". You can specify a state variable with type "list of write requests" by writing:

var writeRequests: List[{ key: str, value: str, time: int }]

Moreover, you can also create a type alias for the write request and use it in the type:

type WriteRequest = { key: str, value: str, time: int }

var writeRequests: List[WriteRequest]

Does this help with what you are trying to achieve?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mt40
Comment options

Answer selected by mt40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants