// contains utility for list of messages
contains utility for list of messages
// contains utility for list of messages
func contains(messages []*Message, message *Message) bool {
	contains := false
	for _, m := range messages {
		if message.Equal(m) {
			contains = true
			break
		}
	}
	return contains
}
func contains ( messages [ ] * Message , message * Message ) bool { contains := false for _ , m := range messages { if message . Equal ( m ) { contains = true break } } return contains }
contains utility for list of messages
contains utility for list of messages