lil_shi@programming.dev to Programming@programming.dev · 1 month agoWhat are some cool and obscure data structure you know of?message-squaremessage-square58linkfedilinkarrow-up1143arrow-down10
arrow-up1143arrow-down1message-squareWhat are some cool and obscure data structure you know of?lil_shi@programming.dev to Programming@programming.dev · 1 month agomessage-square58linkfedilink
minus-squarecoherent_domainlinkfedilinkEnglisharrow-up4·1 month 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.