Skip to content
This repository has been archived by the owner on Dec 5, 2022. It is now read-only.

"append" method ? #3

Closed
JaleelNazir opened this issue Jan 11, 2018 · 1 comment
Closed

"append" method ? #3

JaleelNazir opened this issue Jan 11, 2018 · 1 comment

Comments

@JaleelNazir
Copy link

Can also please add "append" method, it will be very useful for pagination.
I want to do pagination in tableView by appending data to the existing array.

Can you please guide me ?

@onmyway133
Copy link
Owner

I think we can just append items to existing array, and DeepDiff can just do the work. Or do you worry about performance?

let items = ["a", "b", "c"]
diff(old: [], new: items)

var newItems = items
newItems.append("d")
diff(old: items, new: newItems)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants