withValue
  1. func

Returns a new pattern, with the function applied to the value of each hap. It has the alias fmap.

"0 1 2".withValue(v => v + 10).log()

aliases: fmap()

parametertype
func
  • function
to to apply to the value