Skip to content

Instantly share code, notes, and snippets.

View havilog's full-sized avatar

havi havilog

View GitHub Profile
@havilog
havilog / swift-identified-collections_README_KR.md
Last active January 18, 2023 05:30
swift-identified-collections README in korean

Swift Identified Collections

CI

인체 공학적이고, 성능이 뛰어난 방식으로 indentifiable한 element의 모음으로 작업하기 위한 데이터 구조 라이브러리 입니다.

Motivation (동기)

import Foundation
// T는 비교 가능해야 하기 때문에 Comparable을 준수해야함
struct Heap<T: Comparable> {
// 실제 힙을 저장하는 장소
var nodes: [T] = []
private let sort: (T, T) -> Bool
init(sort: @escaping (T, T) -> Bool) {
self.sort = sort
🌞 Morning 40 commits ███▏░░░░░░░░░░░░░░░░░ 14.9%
🌆 Daytime 81 commits ██████▎░░░░░░░░░░░░░░ 30.2%
🌃 Evening 137 commits ██████████▋░░░░░░░░░░ 51.1%
🌙 Night 10 commits ▊░░░░░░░░░░░░░░░░░░░░ 3.7%