Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type
- Transition = tuple[trans: string, count: int]
- var transCounts = newSeq[Transition]()
- for t in transitions:
- for c in transCounts:
- if t == c[0]:
- c[1] += 1
- break
- transCounts.add([t,1])
Advertisement
Add Comment
Please, Sign In to add comment