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