Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alexandrepiveteau/elm-gap-buffer

An array-based gap buffer implementation, based on the Array data structure from elm/core.
https://github.com/alexandrepiveteau/elm-gap-buffer

elm gap-buffer

Last synced: 2 days ago
JSON representation

An array-based gap buffer implementation, based on the Array data structure from elm/core.

Awesome Lists containing this project

README

        

# elm-gap-buffer

![elm-package](https://img.shields.io/elm-package/v/alexandrepiveteau/elm-gap-buffer)
![elm-test](https://github.com/alexandrepiveteau/elm-gap-buffer/workflows/elm-test/badge.svg?branch=master)

An array-based [gap buffer](https://en.wikipedia.org/wiki/Gap_buffer) implementation, based on
the `Array` data structure from `elm/core`.

This library tries to implement gap buffer operations in amortized
[constant time in practice](https://elm-lang.org/news/0.12.1). The backing `Array` of the gap buffer
doesn't shrink when items are deleted.