ddionrails / testsuite

DDI on Rails - testsuite
0 stars 0 forks source link

Delete object from array #23

Closed mhebing closed 7 years ago

mhebing commented 7 years ago
d = [dict(a=1), dict(a=2), dict(a=3)]
d = [ x for x in d if x["a"] != 1 ]