[Haskell-beginners] splicing

Michael Orlitzky michael at orlitzky.com
Mon Jun 15 02:55:11 UTC 2015


On 06/13/2015 09:36 AM, derek riemer wrote:
> Hi guys,
> As a newby to haskell, I was curious, what is the best way to splice an 
> array or do things in the middle?

If you REALLY want to slice and aren't worried about index-safety, you
should try using vectors instead of plain lists:

  https://hackage.haskell.org/package/vector/docs/Data-Vector.html

On the right side of that page there's an index; you want the section
called "Extracting subvectors (slicing)." You will need to install the
"vector" package to get that stuff.



More information about the Beginners mailing list