39 people like it.
Like the snippet!
Create sequence of floating point values generated by random walk process. Functional solution using sequence expressions and yield! construct in a tail-call position.
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: |
|
Link: | http://fssnip.net/o |
Posted: | 14 years ago |
Author: | Tomas Petricek |
Tags: | random walk , recursion , sequence expressions , yield |