Skip to content

Commit

Permalink
Better readme
Browse files Browse the repository at this point in the history
  • Loading branch information
florianpircher committed Oct 12, 2024
1 parent 477ff85 commit 53276c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ The source and target are described as the two sides of a delta.
Both sides are accessible via optional `source` and `target` properties.
Convenient methods like `resolve(favoring:)` and `merge(coalesce:)` also provide access to the elements.

Transform a `Delta` value to different `Delta` value using `map(:)` or `asyncMap(:)`.
Transform a `Delta` value to a different `Delta` value using `map(:)` or `asyncMap(:)`.

`Delta` works well when working with optionals, providing initializers to create a `Delta` from optionals as well as alternative methods like `compactMap(:)` and `compactMerge(coalesce:)` to produce optionals.

The `Delta` type also conforms to all standard protocols when it’s `Element` type does as well:
The `Delta` type also conforms to all standard protocols (depending on the conformances of it’s `Element` type):

- `Equatable`
- `Hashable`
Expand Down

0 comments on commit 53276c1

Please sign in to comment.