ios-oss icon indicating copy to clipboard operation
ios-oss copied to clipboard

What does "|>" mean?

Open dyundor opened this issue 7 years ago • 1 comments

_ = self.titleLabel
  |> UILabel.lens.font .~ .ksr_headline(size: 14)
  |> UILabel.lens.textColor .~ .ksr_soft_black
  |> UILabel.lens.text %~ { _ in Strings.Discover_more_projects() }

the same with '.~' and '%~'

dyundor avatar Jul 01 '19 07:07 dyundor

emm.. public func |> <A, B> (x: A, f: (A) -> B) -> B { return f(x) }

dyundor avatar Jul 01 '19 07:07 dyundor