digits-trie

WebJar for digits-trie

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.bower
Идентификатор

Идентификатор

digits-trie
Последняя версия

Последняя версия

1.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

digits-trie
WebJar for digits-trie
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/blockchain/digits-trie

Скачать digits-trie

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.bower/digits-trie/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>digits-trie</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/digits-trie/
implementation 'org.webjars.bower:digits-trie:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.bower/digits-trie/
implementation ("org.webjars.bower:digits-trie:1.0.0")
'org.webjars.bower:digits-trie:jar:1.0.0'
<dependency org="org.webjars.bower" name="digits-trie" rev="1.0.0">
  <artifact name="digits-trie" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='digits-trie', version='1.0.0')
)
libraryDependencies += "org.webjars.bower" % "digits-trie" % "1.0.0"
[org.webjars.bower/digits-trie "1.0.0"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

digits-trie Build Status

Fast prefix operations for strings of digits

Installation

Bower

bower install --save digits-trie
var Trie = window.DigitsTrie;

NPM

npm install --save digits-trie
var Trie = require('digits-trie');

Usage

The main goal of digits-trie is to provide fast prefix operations for strings of digits. As of now it has a limited set of features. If you want a feature to be added, open an issue and explain your usecase.

Not that all keys have to be strings of digits, otherwise an exception will be thrown.

Usage example

var trie = new Trie();

trie.set('966', 'sa');

var node = trie.get('966');
node.value === 'sa';
node.key === '966';

trie.longestMatchingPrefix('966501245687') === node;

var emptyNode = trie.get('1234');
emptyNode.isNil === true;
emptyNode.value === '';
emptyNode.key === '';
org.webjars.bower

Blockchain.com / Blockchain.info

Версии библиотеки

Версия
1.0.0