/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
//! Functors.
/// Container over which we can map a function.
/// ```rust
/// # #[cfg(feature = "std")] {
/// use rsmonad::prelude::*;
/// let li = list![1, 2, 3, 4, 5];
/// assert_eq!(li % u8::is_power_of_two, list![true, true, false, true, false]);
/// # }
/// ```
/// Map a function over a container.