// MapToInt applies mapping function on optional value if it presents
MapToInt applies mapping function on optional value if it presents
// MapToInt applies mapping function on optional value if it presents
func (b Bool) MapToInt(f func(bool) int) Int {
	if f == nil || !b.IsPresent() {
		return Int{}
	}
	return OfInt(f(b.value))
}
func ( b Bool ) MapToInt ( f func ( bool ) int ) Int { if f == nil || ! b . IsPresent ( ) { return Int { } } return OfInt ( f ( b . value ) ) }
MapToInt applies mapping function on optional value if it presents
MapToInt applies mapping function on optional value if it presents