Skip to content

Instantly share code, notes, and snippets.

View dfrvs's full-sized avatar
💭
What's happened?

Vorobyov dfrvs

💭
What's happened?
View GitHub Profile
//
// XCActivityLogTokenyizer.swift
// XCActivityLogParser
//
// Created by Vorobyov Semyon on 15.07.2023.
//
import Foundation
// Let's take a simple tokenizer for converting the SLF0 format into tokens.
@dfrvs
dfrvs / Wagner-Fischer.swift
Last active July 21, 2021 09:56
Wagner Fischer's Algorithm. Can be used, for example, to point to update a UITableView or UICollectionView.
enum WagnerFischer {
enum Operation<T: Equatable> {
case insert(index: Int, value: T)
case remove(index: Int, value: T)
case replace(index: Int, startValue: T, finishValue: T)
}
}
extension WagnerFischer {