5 ms·
> I don't know how to format this in HN 4 spaces at the beginning of the line make a code block. result = [obj.y for obj in my_list if obj.x >
by itishappy 2y ago
> I don't know how to format this in HN
4 spaces at the beginning of the line make a code block.
result = [obj.y
for obj in my_list
if obj.x > 3]
result = myList
.filter((obj) => obj.x > 3)
.map((obj) => obj.y))
IEnumerable<float> result =
from obj in myList
where obj.x > 3
select obj.x;