For gmatch definition, how about if you make it generic? You define it like

`iterator gmatch[R: seq | array | tuple](src, pat: string): R`

Of course you need to match the result based on the type given, not sure how to 
proceed for that 

Reply via email to