cookbook-3.0.1.1: Tiered general-purpose libraries with domain-specific applications.

Copyright(c) 2014 by Nate Pisarski
LicenseBSD3
Maintainernathanpisarski@gmail.com
StabilityStable
PortabilityPortable (Cookbook)
Safe HaskellSafe
LanguageHaskell98

Cookbook.Recipes.Algorithm

Description

Library for interacting with high-evel data structures found in Cookbook.Recipes.DataStructures (Ds). It also implements some data types that would have just been type synonyms if implemented in Ds.

Synopsis

Documentation

climb :: Tree a -> [a] Source #

Get every node of a tree, put it into a list.

treeMap :: Tree a -> (a -> a) -> Tree a Source #

Apply a function to every node in a tree.

treeFilter :: Tree a -> (a -> Bool) -> Tree a Source #

Collectively nullify nodes on a tree.

genMatrix :: (Int, Int) -> a -> [((Int, Int), a)] Source #

Generates a list of points, with the specified null data in the snd of the tupples.