All Projects → ole → Sortedarray

ole / Sortedarray

Licence: mit
An array that keeps its elements sorted according to a given sort predicate.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Sortedarray

Webhub
📦前端资源/学习/问题整理中心,请看issue
Stars: ✭ 112 (-27.74%)
Mutual labels:  collection
Arsegmentpager
segment tab controller with parallax Header
Stars: ✭ 1,691 (+990.97%)
Mutual labels:  collection
Awesome Ruby
💎 A collection of awesome Ruby libraries, tools, frameworks and software
Stars: ✭ 11,838 (+7537.42%)
Mutual labels:  collection
Mwdb Core
Malware repository component for samples & static configuration with REST API interface.
Stars: ✭ 125 (-19.35%)
Mutual labels:  collection
Awesome Vim Colorschemes
Collection of awesome color schemes for Neo/vim, merged for quick use.
Stars: ✭ 1,951 (+1158.71%)
Mutual labels:  collection
Awesome Testflight Link
Collection of Testflight public app link
Stars: ✭ 139 (-10.32%)
Mutual labels:  collection
Every Programmer Should Know
A collection of (mostly) technical things every software developer should know about
Stars: ✭ 49,085 (+31567.74%)
Mutual labels:  collection
Awesome Cae
A curated list of awesome CAE frameworks, libraries and software.
Stars: ✭ 148 (-4.52%)
Mutual labels:  collection
Search Engine Optimization
🔍 A helpful checklist/collection of Search Engine Optimization (SEO) tips and techniques.
Stars: ✭ 1,798 (+1060%)
Mutual labels:  collection
Opensourcegames
Infos and build tips for open source games.
Stars: ✭ 144 (-7.1%)
Mutual labels:  collection
Containers
This library provides various containers. Each container has utility functions to manipulate the data it holds. This is an abstraction as to not have to manually manage and reallocate memory.
Stars: ✭ 125 (-19.35%)
Mutual labels:  collection
Redmond Themes
Home of the B00merang Redmond Collection themes for Linux
Stars: ✭ 126 (-18.71%)
Mutual labels:  collection
Awesome Bioinformatics Benchmarks
A curated list of bioinformatics bench-marking papers and resources.
Stars: ✭ 142 (-8.39%)
Mutual labels:  collection
Awesome Maps
There is more than google: A collection of great online maps 🌍🗺🌎
Stars: ✭ 124 (-20%)
Mutual labels:  collection
Best Of
🏆 Discover best-of lists with awesome open-source projects on all kinds of topics.
Stars: ✭ 146 (-5.81%)
Mutual labels:  collection
Datx
DatX is an opinionated JS/TS data store. It features support for simple property definition, references to other models and first-class TypeScript support.
Stars: ✭ 111 (-28.39%)
Mutual labels:  collection
Tgmeetup
A collection set of technical groups' information (meetup).
Stars: ✭ 139 (-10.32%)
Mutual labels:  collection
Easysequence
EasySequence is a powerful fundamental library to process sequcence type, such as array, set, dictionary. All type object which conforms to NSFastEnumeration protocol can be initialzed to an EZSequence instance, then you can operation with them. Finally, you can transfer them back to the original type.
Stars: ✭ 150 (-3.23%)
Mutual labels:  collection
Awesome Doctrine
A collection of useful Doctrine snippets.
Stars: ✭ 147 (-5.16%)
Mutual labels:  collection
Twcommunities
整理與蒐集台灣社群活動投影片
Stars: ✭ 145 (-6.45%)
Mutual labels:  collection

SortedArray

A sorted array type for Swift 4.0+.

Provides the SortedArray type, an array that keeps its elements sorted according to a given sort predicate.

Written by Ole Begemann, February 2017.

For more info, see the GitHub repo and my accompanying blog article.

Status

Build Status

Supported Platforms

The current release supports Swift 4.0 and up.

If you need support for older Swift version, here's a list of the latest releases that support specific Swift versions:

Swift version Latest SortedArray release
4.x master
3.x 0.6.0
3.0 0.4

Since the code has no dependencies other than the Swift standard library (it doesn't even use Foundation), it should work on all platforms where Swift is available.

I tested it on macOS, iOS, tvOS, and Linux.

Usage

Swift Package Manager

Add this to your Package.swift file:

// Package.swift
import PackageDescription

let package = Package(
    name: "<Your package name>",
    dependencies: [
        .Package(url: "https://github.com/ole/SortedArray.git", majorVersion: 0)
    ]
)

Carthage

Add this to your Cartfile:

github "ole/SortedArray" ~> 0.7

Integration via Carthage should work for macOS, iOS, tvOS, and watchOS targets.

Manually

Clone the repository and add or copy SortedArray.swift to your project. It has no dependencies.

Dependencies

None.

License

MIT license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].