Add inline doc for Apply

This commit is contained in:
bep 2015-01-20 13:31:02 +01:00
parent eabe8e1a98
commit 3f0f186b91

View file

@ -544,6 +544,7 @@ func Where(seq, key interface{}, args ...interface{}) (r interface{}, err error)
}
}
// Apply, given a map, array, or slice, returns a new slice with the function fname applied over it.
func Apply(seq interface{}, fname string, args ...interface{}) (interface{}, error) {
if seq == nil {
return make([]interface{}, 0), nil