Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // a bit "impure", but it
- // uses local mutation only
- // and is a lot faster.
- // this is what I would do in
- // a real world scenario
- let makeList dr =
- let mutable r = []
- let makeItem () =
- // code for reading data from dr...
- while dr.Read() do
- r <- (makeItem() :: r)
- rac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement