// IfPresent invokes provided callback if optional contains some value
// If optional is empty, callback will not be invoked
IfPresent invokes provided callback if optional contains some value
If optional is empty, callback will not be invoked
// IfPresent invokes provided callback if optional contains some value // If optional is empty callback will not be invoked
func (b Bool) IfPresent(f func(bool)) Bool {
	if f != nil && b.IsPresent() {
		f(b.value)
	}
	return b
}
func ( b Bool ) IfPresent ( f func ( bool ) ) Bool { if f != nil && b . IsPresent ( ) { f ( b . value ) } return b }
IfPresent invokes provided callback if optional contains some value
If optional is empty, callback will not be invoked
IfPresent invokes provided callback if optional contains some value If optional is empty callback will not be invoked