view sequences/unfold.m @ 38:9d24b616bb06

Added function algebra.
author samer
date Tue, 29 Jan 2013 15:59:01 +0000
parents 28c9ff839f38
children
line wrap: on
line source
% unfold - sequence obtained by iterating fn over state
%
% unfold :: 
%    (S->A,S)	~'unfolding function',
%    S         ~ initial state,
% -> unfold(S,A) < seq(A).

function y=unfold(f,s0), y=seq.unfold(f,s0);