diff options
Diffstat (limited to 'txr.1')
-rw-r--r-- | txr.1 | 22 |
1 files changed, 21 insertions, 1 deletions
@@ -41549,10 +41549,11 @@ dohash early using or .codn (return) . -.coNP Functions @, hash-uni @ hash-diff and @ hash-isec +.coNP Functions @, hash-uni @, hash-diff @ hash-symdiff and @ hash-isec .synb .mets (hash-uni < hash1 < hash2 <> [ join-func ]) .mets (hash-diff < hash1 << hash2 ) +.mets (hash-symdiff < hash1 << hash2 ) .mets (hash-isec < hash1 < hash2 <> [ join-func ]) .syne .desc @@ -41616,6 +41617,25 @@ in are deleted. The +.code hash-symdiff +function performs a symmetric difference. A new hash is returned which +contains all of the keys from +.meta hash1 +that are not in +.meta hash2 +and +.IR "vice versa" : +all of the keys from +.meta hash2 +that are not in +.metn hash1 . +The keys carry their corresponding values from +.meta hash1 +and +.metn hash2 , +respectively. + +The .code hash-isec function performs a set intersection. The resulting hash contains only those keys which occur both in |