Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- listSimpleReplace :: Eq e => Vector e -> List n e -> List n e
Documentation
listSimpleReplace :: Eq e => Vector e -> List n e -> List n e Source #
Replace the contents of a list with a new set of elements but preserve the currently selected index.
This is a version of listReplace that doesn't try to be smart, but assumes that all the elements in one list are distinct.
listReplace itself is broken as of brick-0.2 due to a bogus implementation of
the merge
function.