Skip to content

Instantly share code, notes, and snippets.

@littlefully
littlefully / ArrayDiff.swift
Created April 1, 2016 20:29 — forked from praeclarum/ArrayDiff.swift
A generic diffing operation that can calculate the minimal steps needed to convert one array to another. It can be used to generate standard diffs, or it can be used more creatively to calculate minimal UI updates.
//
// ArrayDiff.swift
//
// Created by Frank A. Krueger on 6/30/15.
// Copyright © 2015 Krueger Systems, Inc. All rights reserved.
// License: MIT http://opensource.org/licenses/MIT
//
import Foundation