mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-31 19:03:47 -07:00
Use the new integrate function
This commit is contained in:
@@ -257,7 +257,7 @@ integrate (Node x l r) = reverse l ++ x : r
|
||||
-- integration of a one-hole list cursor, back to a list.
|
||||
--
|
||||
index :: Eq a => StackSet i a s -> [a]
|
||||
index = with [] $ \(Node t l r) -> reverse l ++ t : r
|
||||
index = with [] integrate
|
||||
|
||||
-- let is = t : r ++ reverse l in take (length is) (dropWhile (/= m) (cycle is))
|
||||
|
||||
|
Reference in New Issue
Block a user