2021.10.3 - LINQ Variante für Python #34

Closed
opened 2021-07-25 12:15:15 +02:00 by edraft · 0 comments
Owner

Das ziel ist es einige Funktionen aus LINQ von .NET ein beispiel:

list = [Test(a=1, b=2), Test(a=3, b=4) Test(a=5, b=6)]
var res = None
for t in list:
	if t.a == 5:
    	res = t
var list = new List<Test>() { Test(a=1, b=2), Test(a=3, b=4) Test(a=5, b=6) };
var res = list.Where(t => t.a == 5).Single();
Das ziel ist es einige Funktionen aus LINQ von .NET ein beispiel: ```python list = [Test(a=1, b=2), Test(a=3, b=4) Test(a=5, b=6)] var res = None for t in list: if t.a == 5: res = t ``` ```c# var list = new List<Test>() { Test(a=1, b=2), Test(a=3, b=4) Test(a=5, b=6) }; var res = list.Where(t => t.a == 5).Single(); ```
edraft added this to the 2021.10 milestone 2021-07-25 12:15:15 +02:00
edraft added the
improvement
story
labels 2021-07-25 12:15:15 +02:00
edraft self-assigned this 2021-07-25 12:15:15 +02:00
edraft added this to the Sprint 2021.10 project 2021-07-25 12:15:15 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sh-edraft.de/sh_cpl#34
No description provided.