5 (* true for a row specification *)
6 type atom = T.css * bool * int option * int option
11 let map y x (c, b, x1, x2) = match b, x1, x2 with
13 | false, None, Some c2 -> if x <= c2 then c else []
14 | false, Some c1, None -> if x >= c1 then c else []
15 | false, Some c1, Some c2 -> if x >= c1 && x <= c2 then c else []
16 | true , None, Some r2 -> if y <= r2 then c else []
17 | true , Some r1, None -> if y >= r1 then c else []
18 | true , Some r1, Some r2 -> if y >= r1 && y <= r2 then c else []
20 L.concat (L.map (map y x) a)