From 44cbc2691654adb20516490e079602843ab4c371 Mon Sep 17 00:00:00 2001
From: Patrik Nyblom
Matches the objects in the table
The function could be described as a
The function returns the number of objects matched.
+Matches the objects in the table
The function could be described as a
The function returns the number of objects matched.
+ +Works like
Works like
Note that this is not equivalent to
+ reversing the result list of a
Continues a match started with
+
For all other table types, the behaviour is exatly that of
Example:
+
+1> T = ets:new(x,[ordered_set]).
+2> [ ets:insert(T,{N}) || N <- lists:seq(1,10) ].
+...
+3> {R0,C0} = ets:select_reverse(T,[{'_',[],['$_']}],4).
+...
+4> R0.
+[{10},{9},{8},{7}]
+5> {R1,C1} = ets:select_reverse(C0).
+...
+6> R1.
+[{6},{5},{4},{3}]
+7> {R2,C2} = ets:select_reverse(C1).
+...
+8> R2.
+[{2},{1}]
+9> '$end_of_table' = ets:select_reverse(C2).
+...
+