blob: 3f70937ff55e862ed1fbf8dc206d830f56a97f59 [file] [log] [blame]
Dan Willemsenbc60c3c2021-12-15 01:09:00 -08001// Copyright 2021 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package a
6
7type Stringer interface {
8 String() string
9}
10
11func Stringify[T Stringer](s []T) (ret []string) {
12 for _, v := range s {
13 ret = append(ret, v.String())
14 }
15 return ret
16}