Giter Site home page Giter Site logo

adamantine's Introduction

adamantine

Tools for Immutable/Functional programming in Idiomatic Python

Adamantine contains some useful functional programming modules

tail_recursion implements a somewhat efficient tail recursion optimization To Use it, import the tail_recursion module and use the @tail_recursion annotation on the function to be optimized. When making the recursive call, instead of calling the function call recurse(*args, **kwargs) This optimization uses a continuation based methodology rather than using exception handling and is about 4-5 x slower than a simple for loop which calls a function Tail Calls do not necessarily have to be recursive, they can be mutually recursive by calling mutual(function, *args, **kwargs)

exec_models implements reduce with multiple input lists, as well as several variations of groupby which generate immutable data structures.

adamantine's People

Contributors

exfenestram avatar

Watchers

Lucian avatar  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.