>>> 1 `shouldSatisfy` P.lt 5 P.|| P.gt 10
RB.get (r1 RB.|| r2) === (RB.get r1 || RB.get r2)
RDB.get (r1 RDB.|| r2) === (RDB.get r1 || RDB.get r2)
foo |= expr ==> var foo; foo = expr;
selectList ([ PersonAge >. 25 , PersonAge <. 30 ] ||. [ PersonIncome >. 15000 , PersonIncome <. 25000 ]) []will filter records where a person's age is between 25 and 30 or a person's income is between (15000 and 25000). If you are looking for an (&&.) operator to do (A AND B AND (C OR D)) you can use the (++) operator instead as there is no (&&.). For example:
selectList ([ PersonAge >. 25 , PersonAge <. 30 ] ++ ([PersonCategory ==. 1] ||. [PersonCategory ==. 5])) []will filter records where a person's age is between 25 and 30 and (person's category is either 1 or 5).
>>> ident 3 ||| konst 7 (3,4) (3><7) [ 1.0, 0.0, 0.0, 7.0, 7.0, 7.0, 7.0 , 0.0, 1.0, 0.0, 7.0, 7.0, 7.0, 7.0 , 0.0, 0.0, 1.0, 7.0, 7.0, 7.0, 7.0 ]