Function extra::bitv::from_fn

pub fn from_fn(len: uint, f: &fn(index: uint) -> bool) -> Bitv

Create a bitv of the specified length where the value at each index is f(index).