Advertisement
caubert

arrayDupes

Feb 18th, 2020
630
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.23 KB | None | 0 0
  1. {{ $arrayN := .CmdArgs }}
  2. {{ $map := sdict }} {{ $answer := cslice }}
  3. {{ range $k, $v := $arrayN }} {{ $map.Set (str $v) $k }} {{ end }}
  4. {{ range $k, $v := $map }} {{ $answer = $answer.Append (toInt $k) }} {{ end }}
  5. {{ $answer }}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement