(scores map[string]int, s string)
| 718 | } |
| 719 | |
| 720 | func dedup(scores map[string]int, s string) string { |
| 721 | cnt := scores[s] |
| 722 | scores[s] = cnt + 1 |
| 723 | if cnt != 0 { |
| 724 | s = fmt.Sprintf("%s_%d", s, cnt) |
| 725 | } |
| 726 | return s |
| 727 | } |
| 728 | |
| 729 | func valuesExpr(e sem.Expr, seq sem.Seq) sem.Seq { |
| 730 | return append(seq, sem.NewValues(e, e)) |