From 031e4e19120af3e40fcc937bebb4cc45b59f5b87 Mon Sep 17 00:00:00 2001
From: Sverker Eriksson Match an argument list of three where the first and third arguments
are equal: has to be a proper list.
Match all objects in an ets table where the first element is - the atom 'strider' and the tuple arity is 3 and return the whole - object.
-
- Match all objects in an ets table with arity > 1 and the first - element is 'gandalf', return element 2.
-=',{size, '$1'},2}],
- [{element,2,'$1'}]}]
- ]]>
- In the above example, if the first element had been the key,
- it's much more efficient to match that key in the
Match tuples of 3 elements where the second element is either - 'merry' or 'pippin', return the whole objects.
-
- The function
Only generate trace message if trace control word is set to 1:
Match all objects in an ets table where the first element is + the atom 'strider' and the tuple arity is 3 and return the whole + object.
+
+ Match all objects in an ets table with arity > 1 and the first + element is 'gandalf', return element 2.
+=',{size, '$1'},2}],
+ [{element,2,'$1'}]}]
+ ]]>
+ In the above example, if the first element had been the key,
+ it's much more efficient to match that key in the
Match tuples of 3 elements where the second element is either + 'merry' or 'pippin', return the whole objects.
+
+ The function