lil_shi@programming.dev to Programming@programming.dev · 2 days agoWhat are some cool and obscure data structure you know of?message-squaremessage-square50fedilinkarrow-up1142arrow-down10
arrow-up1142arrow-down1message-squareWhat are some cool and obscure data structure you know of?lil_shi@programming.dev to Programming@programming.dev · 2 days agomessage-square50fedilink
minus-squarecoherent_domain@infosec.publinkfedilinkEnglisharrow-up4·edit-22 days ago 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.