ソースを参照

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 年 前
コミット
889ef9c95e
共有1 個のファイルを変更した6 個の追加0 個の削除を含む
  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]