2

How would a priority queue be coded efficiently in a functional programming language? I'm new to functional programming, but I'm having difficulty understanding how a data structure that seems to require mutability would be coded in a functional programming language, or how to take advantage of lazy evaluation to pull this off.

Are there any working examples of priority queues being coded in a functional programming language?

Alecto
  • 564
  • 4
  • 13

0 Answers0