Hi rust gurus,

Today I ported the purely functional Pairing Heap found in Okasaki's Purely
Functional Data Structures to Rust. I was hoping that some of you might
take a look at it and give me feedback on where I could be using Rust's
idioms better.

https://github.com/stevej/rustled/blob/master/pairing_heap.rs

The code I wrote is a little longer than Okasaki's example, mostly due to
Standard ML's more concise pattern matching. (see page 54 for comparison)
Is there a way to do pattern matching in argument lists as in Haskell or
SML?

Thanks!
Steve
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to