Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii authored Nov 30, 2023
1 parent dd061dc commit 14ac4b4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# &>
# value`&>`.do { ... }

A tiny library that enables us to describe operations in method-chain.

Expand All @@ -17,10 +17,10 @@ let view: UIView = UIView()&>.do {

## Motivation

Actually, I'm not addict to that getting a custom operator.
However **a global function** or **operator** are only way to add a new feature without customizing our own types.
Actually, I'm not addicted to getting a custom operator.
However **a global function** or **operator** are the only way to add a new feature without customizing our own types.

Other way is using something protocol and extending it like this.
Another way is using something protocol and extending it like this.
It can not be used in struct without adding that protocol.

In fact, this structure looks very natural, because the all of method chaining in Swift standard libary come from an kind of monad.
Expand Down

0 comments on commit 14ac4b4

Please sign in to comment.