lil_shi@programming.dev to Programming@programming.dev · 9 天前What are some cool and obscure data structure you know of?message-squaremessage-square59fedilinkarrow-up1150arrow-down10
arrow-up1150arrow-down1message-squareWhat are some cool and obscure data structure you know of?lil_shi@programming.dev to Programming@programming.dev · 9 天前message-square59fedilink
minus-squarecoherent_domain@infosec.publinkfedilinkEnglisharrow-up4·edit-28 天前 I don’t know if Haskell etc affords you such control You can have immutable arrary with vectors, but to mutate them you will need to wrap your action in a Monad. It even supports unboxed values. https://hackage.haskell.org/package/vector But I agree boxed default actually causes a lot of performance overhead in many high-level languages.
You can have immutable arrary with vectors, but to mutate them you will need to wrap your action in a Monad. It even supports unboxed values.
https://hackage.haskell.org/package/vector
But I agree boxed default actually causes a lot of performance overhead in many high-level languages.