unfoldr package:base-compat

The unfoldr function is analogous to Data.List's unfoldr operation.