[feature] [queue] add for-each and compare functions

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>