forked from enviPath/enviPy
Current Dev State
This commit is contained in:
28
static/js/ketcher2/node_modules/yapool/README.md
generated
vendored
Normal file
28
static/js/ketcher2/node_modules/yapool/README.md
generated
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
# yapool
|
||||
|
||||
Yet Another object pool in JavaScript
|
||||
|
||||
Because [yallist](http://npm.im/yallist) is sometimes too featureful,
|
||||
this is a very dead-simple linked-list pool thingie in JavaScript that
|
||||
lets you add and remove objects in a set.
|
||||
|
||||
Not suitable for very long lists, because all searches are `O(n)`, but
|
||||
for small `n`, it has very low complexity.
|
||||
|
||||
## API
|
||||
|
||||
`p = new Pool()`
|
||||
|
||||
Constructor takes no arguments
|
||||
|
||||
`p.add(someObject)`
|
||||
|
||||
put an object in the pool
|
||||
|
||||
`p.length`
|
||||
|
||||
return the number of things in the pool.
|
||||
|
||||
`p.remove(someObject)`
|
||||
|
||||
remove that object from the pool.
|
||||
Reference in New Issue
Block a user