MCPcopy Create free account
hub / github.com/docopt/docopt.go / double

Method double

docopt.go:1198–1204  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1196}
1197
1198func (pl patternList) double() patternList {
1199 l := len(pl)
1200 result := make(patternList, l*2)
1201 copy(result, pl)
1202 copy(result[l:2*l], pl)
1203 return result
1204}
1205
1206func (pl *patternList) remove(p *pattern) {
1207 (*pl) = pl.diff(patternList{p})

Callers 1

transformMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected