// Apply is a convenient, nil-safe applicator that returns the result of d(c) iff d != nil; otherwise c
Apply is a convenient, nil-safe applicator that returns the result of d(c) iff d != nil; otherwise c
// Apply is a convenient nil - safe applicator that returns the result of d ( c ) iff d ! = nil ; otherwise c
func (d Decorator) Apply(c Caller) (result Caller) {
	if d != nil {
		result = d(c)
	} else {
		result = c
	}
	return
}
func ( d Decorator ) Apply ( c Caller ) ( result Caller ) { if d != nil { result = d ( c ) } else { result = c } return }
Apply is a convenient, nil-safe applicator that returns the result of d(c) iff d != nil; otherwise c
Apply is a convenient nil - safe applicator that returns the result of d ( c ) iff d ! = nil ; otherwise c