mahasamoot

Untitled

Jun 17th, 2016
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nim 0.22 KB | None | 0 0
  1. type
  2.     Transition = tuple[trans: string, count: int]
  3.  
  4. var transCounts = newSeq[Transition]()
  5.  
  6. for t in transitions:
  7.   for c in transCounts:
  8.     if t == c[0]:
  9.       c[1] += 1
  10.       break
  11.     transCounts.add([t,1])
Advertisement
Add Comment
Please, Sign In to add comment