python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
One line for loops that don't require list
I'm trying to figure out how the one line for statement works when the output is not meant to be a list. For example, if I want to print these tuples of matching x to x+10, I have the code:
[print((i2...
Τιμόθεος
Votes: 0
Answers: 1
Return an array which is iniated in a one liner
I want to return an array of my custom structure object timeInDay with as few lines as possible, in order to return a day in my time schedule.
struct timeInDay[] getRingTimesForWeekDay(int day) {
sw...
obe
Votes: 0
Answers: 2