DataStructures.jl icon indicating copy to clipboard operation
DataStructures.jl copied to clipboard

[WIP] Tried to add temporary immutable struct

Open AliMalik9599 opened this issue 4 years ago • 1 comments

Hi, I'm relatively new to Julia and was interested in this problem. I attempted to add a temporary way to make queue immutable, but definitely a work in progress and needs changes. Any tips are appreciated, thanks.

AliMalik9599 avatar Aug 13 '20 19:08 AliMalik9599

making Queue a immutable struct should be just a matter of removing the mutable, and making sure all operations just mutate the backing Deque instead. That would be a good idea.

oxinabox avatar Aug 18 '20 09:08 oxinabox