β Remove Foreach
Any idea how i could eliminate this foreach contraption here? I expect to have a lot of (a bit more complicated) expressions there and i want to keep in somewhot compact.
6 Replies
also next time, post $code instead of a screenshot :)
To post C# code type the following:
```cs
// code here
```
Get an example by typing
$codegif
in chat
If your code is too long, post it to: https://paste.mod.gg/Tvde1#0587
REPL Result: Success
Console Output
Compile: 695.601ms | Execution: 93.942ms | React with β to remove this embed.
what is
e
for there?
just bad example i guess?
ah, Chunk
returns a char[][]
...
yeah just use new string(x)
or string.Concat(x)
, not string.Join("", x)
thank you for the solution. i totally missed that i got the collections in Select... stupid me
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.