Coder Social home page Coder Social logo

funcl's Introduction

funcl

Persistent data structures for Common Lisp.

Documentation

Defunclass

Macro that creates an imutable class.

defunclass (name parents slots &body)

Example: (defunclass test () ((a 0) (b nil)) (:documentation "test"))

Creates a new class with constructor <test> (&key (:a 0) (:b nil)), with readers @a, @b.

Generic interface

Collections implemented in funcl use common interface.

head (collection) -> element

Selects the 'first' element in the collection and returns it.

tail (collection) -> collection

Returns the collection without the 'first' element.

concat (element collection) -> collection

Concatenates the element with the collections, returns a new collection.

nil? (collection) -> boolean

Checks whether the collection is empty.

look-for (key collection) -> (element boolean)

Looks for the item given by the key in the collection.

take-out (key collection) -> collection

Removes the item given by the key from the collection.

Queue

lazy-queue (&rest) -> lazy-queue

Returns a queue collection consisting of function arguments as elements.

Red-black tree

rb-tree (&rest) -> rb-tree

Returns a red-black tree collection consisting of function arguments as elements.

Trie

trie (&rest) -> trie

Returns a trie collection consisting of function arguments as elements.

funcl's People

Contributors

posledniamir avatar

Stargazers

Vernon Grant avatar Joel Boehland avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.