mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Add LCS diffing support to NSArray
This commit is contained in:
18
AsyncDisplayKit/Private/NSArray+Diffing.h
Normal file
18
AsyncDisplayKit/Private/NSArray+Diffing.h
Normal file
@@ -0,0 +1,18 @@
|
||||
//
|
||||
// NSArray+Diffing.h
|
||||
// AsyncDisplayKit
|
||||
//
|
||||
// Created by Levi McCallum on 1/29/16.
|
||||
// Copyright © 2016 Facebook. All rights reserved.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
@interface NSArray (Diffing)
|
||||
|
||||
/**
|
||||
* Uses a bottom-up memoized longest common subsequence solution to identify differences. Runs in O(mn) complexity.
|
||||
*/
|
||||
- (void)asdk_diffWithArray:(NSArray *)array insertions:(NSMutableIndexSet **)insertions deletions:(NSMutableIndexSet **)deletions;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user