[vector] #93: scanl1 etc. fail on empty vector
vector
vector at projects.haskell.org
Tue Apr 30 01:58:46 BST 2013
#93: scanl1 etc. fail on empty vector
-------------------+--------------------------------------------------------
Reporter: akio | Owner:
Type: defect | Status: new
Priority: minor | Milestone:
Version: | Keywords:
-------------------+--------------------------------------------------------
The following program throws an exception:
{{{
import Data.Vector as V
main = print $ V.scanl1 (&&) V.empty
}}}
But I think it should print "fromList []". scanl1 from Data.List behaves
this way, for example.
{{{
Prelude Data.List> scanl1 (&&) []
[]
}}}
--
Ticket URL: <http://trac.haskell.org/vector/ticket/93>
vector <http://trac.haskell.org/vector>
Package vector
More information about the vector
mailing list