haskell - Indexing Data.Vector with an array of indices -
is possible in haskell index vector data.vector
using vector of integers b, i.e. a[b] = [ a[b[0]], a[b[1]], ... ]
? seems planned further versions vector tutorial, section 2.11 suggests.
of course, 1 can write function this, involve lot of copying.
it advisable use backpermute
map (xs!)
more efficient.
Comments
Post a Comment