Skip to content

ClimFlows/CookBooks.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CookBooks

Stable Dev Build Status Coverage

CookBooks implements the type CookBook which gathers a set of named recipes to compute named results from base ingredients or other results. Then session = open(cookbook ; ...) opens a cooking session with fresh ingredients. Anything described in the cookbook can the be fetched as session.[symbol]. Intermediate steps leading from base ingrediants to the requested outcome are identified and executed, and intermediate results are stored so that they need not be computed twice.

The goal is to have a large catalog of ways to compute things that you may need.

Installation

CookBooks is registered in the ClimFlows registry. Follow instructions there, then:

] add CookBooks

Example

using CookBooks: CookBook

cake(dough, topping) = dough+topping
dough(flour, sugar, eggs) = flour*sugar*eggs

book = CookBook(; cake, dough)
session = open(book; flour=1, sugar=2, eggs=3, topping=4)

@info session.cake # computes dough then cake
@info session.dough # does not re-compute dough

About

Catalogs of recipes that remembers for you how in which order to compute those things that you may need.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages