from_fn

Function from_fn 

Source
pub fn from_fn<T, F>(length: usize, f: F) -> Signal<T>
where T: SignalType, F: Fn(usize) -> T,
Expand description

Create a signal from a function