tool 0.2.1

A grab-bag of tools for functional programming.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Miscellaneous functions that don't really have a home.

/// The identity function.
///
/// Literally, just returns the passed-in value.
pub fn id<T>(value: T) -> T { value }

/// Return a default value.
pub fn default<T: Default>() -> T {
    Default::default()
}