Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 193 Bytes

swift_postfix_operator.md

File metadata and controls

13 lines (11 loc) · 193 Bytes

操作符重载

  1. 自定义操作符
   
  postfix operator ** { }
  postfix func ** (value: CGFloat) -> CGFloat {
   return value * value
  }