9 ms·
i found the Racket library to be inconsistent, especially anything related to Vector.
by topkekz 10y ago
i found the Racket library to be inconsistent, especially anything related to Vector.
- samth 10y agoCan you say more here? What things are we missing?
- topkekz 10y agovector-immutable is unusable, all operations on vectors return a mutable vector forcing you to rely on vector->immutable-vector every time. Vector lacks many operations that List has, it should be easier to interchange each others. Vector even lacks combinations despite this one being implemented by converting the list to a vector first. https://github.com/racket/racket/blob/master/racket/collects/racket/list.rkt#L614 https://github.com/racket/racket/blob/master/racket/collects... I have encountered many inconsistencies like this.
- samth 10y agoYes, immutable vectors are not a convenient data structure -- I recommend using one of the other random access functional data structures available as libraries, such as RRB trees.