StackSet.hs: (differentiate): 'Texture' doesn't mean anything to me; replace with a more descriptive comment.

This commit is contained in:
Brent Yorgey
2007-10-22 19:13:33 +00:00
parent 33e14e7ba7
commit 92d58ae0a8

View File

@@ -325,8 +325,9 @@ integrate' :: Maybe (Stack a) -> [a]
integrate' = maybe [] integrate integrate' = maybe [] integrate
-- | -- |
-- /O(n)/. Texture a list. -- /O(n)/. Turn a list into a possibly empty stack (i.e., a zipper):
-- -- the first element of the list is current, and the rest of the list
-- is down.
differentiate :: [a] -> Maybe (Stack a) differentiate :: [a] -> Maybe (Stack a)
differentiate [] = Nothing differentiate [] = Nothing
differentiate (x:xs) = Just $ Stack x [] xs differentiate (x:xs) = Just $ Stack x [] xs