func (s Account) isValid() bool {
	for _, curr := range s {
		if !curr.IsPositive() {
			return false
		}
		if curr.Decimal != curr.Decimal%100 {
			return false
		}
	}

	return true
}
// a set of currencies are valid iff:
//   - value and decimal is positive
//   - decimal == decimal % 100
a set of currencies are valid iff:
- value and decimal is positive
- decimal == decimal % 100
// a set of currencies are valid iff : // - value and decimal is positive // - decimal == decimal % 100
func (s Account) isValid() bool {
	for _, curr := range s {
		if !curr.IsPositive() {
			return false
		}
		if curr.Decimal != curr.Decimal%100 {
			return false
		}
	}
	return true
}
func ( s Account ) isValid ( ) bool { for _ , curr := range s { if ! curr . IsPositive ( ) { return false } if curr . Decimal != curr . Decimal % 100 { return false } } return true }
a set of currencies are valid iff:
 value and decimal is positive
 decimal == decimal % 100
a set of currencies are valid iff : value and decimal is positive decimal == decimal % 100