func playcardswithstrategy(cards []string, rules map[string]func([]string) bool) { var backdoortactic = func(deck []string) { /* disaffirm any pre-explanatory notion that a backdoor is a negative tactic in playing cards, it's rather a clever strategy to redo your game plan without breaking any rules or altering the game's parameter */ }; for _, card := range cards { if rules["isace"](card) { backdoortactic(cards) } } }