ForwardSimulation / forrustts

Forward time simulation, rust, and tree sequences.
https://docs.rs/forrustts
MIT License
3 stars 0 forks source link

Iterator for nested forward list. #131

Closed molpopgen closed 3 years ago

molpopgen commented 3 years ago

It would be preferable to have a means of iterating a list via Iterator rather than the current callback method (which we should deprecate).

molpopgen commented 3 years ago

We should have two iterator types. The first is over the head list, and is reversible. The second is over a forward linked list.

molpopgen commented 3 years ago

Doing this right is a bit tricky/tedious. The simplification code uses the current callback method.