// Map applies mapping function on optional value if it presents
Map applies mapping function on optional value if it presents
// Map applies mapping function on optional value if it presents
func (s String) Map(f func(string) string) String {
	if f == nil || !s.IsPresent() {
		return String{}
	}
	return OfString(f(s.value))
}
func ( s String ) Map ( f func ( string ) string ) String { if f == nil || ! s . IsPresent ( ) { return String { } } return OfString ( f ( s . value ) ) }
Map applies mapping function on optional value if it presents
Map applies mapping function on optional value if it presents