2017 © Pedro PelĂĄez
 

library salist

Self-adjusting lists

image

nulpunkt/salist

Self-adjusting lists

  • Saturday, April 27, 2013
  • by nulpunkt
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

php-self-organizing-list

A package of Self-Organizing lists., (*1)

Install

Use Composer:, (*2)

"nulpunkt/salist": "dev-master"

Usage

require_once("vendor/autoload.php");

$l = new Nulpunkt\SAList\CountList();
$l->add(1);
$l->add(2);
$l->add(3);
echo $l->find(function ($e) { return $e == 2; }); // 2

Currently there is 3 list types: MoveToFrontList, CountList, TransposeList. You can consult Wikepedia for more info., (*3)

The Versions

27/04 2013

dev-master

9999999-dev http://github.com/nulpunkt/php-self-organizing-list

Self-adjusting lists

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

list self adjusting