Przeglądaj źródła

note some simple properties.

should we specify properties for take, drop, etc as well? because those
are defined on seq it doesn't seem "sensible", but could probably help
as well.
Lucas Stadler 11 lat temu
rodzic
commit
889ef9c95e
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      hs/DataStructures.hs

+ 6 - 0
hs/DataStructures.hs

@ -156,3 +156,9 @@ instance Seq BankersQueue where
156 156
-- examples
157 157
sl = fromList [1..10] :: List Integer
158 158
bq = fromList [1..10] :: BankersQueue Integer
159
160
-- properties
161
162
-- rest nil == nil
163
-- (reverse . reverse) s == s
164
-- first [s] == last [s]