Table of Contents

UtilData::selectRow Function

list selectRow(list data, dict cond={})

Description

A simple list(of dict) filter, return a new list filtered by cond

Paramters

Return

Detail Information


selectRow([{’name’:’zhangzhi’, ‘id’:123}, {’name’:’cheungzee’, ‘id’:456}], {‘id’:123}), 
returns:
[’name’:’cheungzee’, ‘id’:456]

Changelog

newly built, 2012-01-21