""" On 5 March 2001 DanC wrote """ > > The other idiom is somewhat more traditional, making use of the list > syntax-sugar in n3, where (a b) denotes the same thing > as [ daml:first a; daml:rest [ daml:first b; daml:rest daml:nil ]]. > Using that, we can write "the pair 3,4 has sum 7: as > (3 4) :sum 7. That notation is indeed very useful. What about <> log:forAll :x. [ daml:first :a; daml:rest :x]. ? If we would write (:a :x) we get <> log:forAll :x. [ daml:first :a; daml:rest [ daml:first :x; daml:rest daml:nil ]]. We happen to use that quite often (for difference lists etc.) The Prolog notation for that would be [a|x] (and your example would be [a,b]) -- Jos De Roo, AGFA http://www.agfa.com/w3c/jdroo/Received on Tuesday, 6 March 2001 18:49:24 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:52:38 GMT