Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
70 views

How to use a "Loop limit" symbol in a flowchart representing a simple R "for loop"

I know that a simple R "for" loop like the following: n <- 20 for (i in 1:n) { print(i) } can be represented by a flowchart like: However, in any set of flowchart symbols there is the ...
JulioSergio's user avatar
0 votes
0 answers
31 views

React - Passing event handlers that need arguments as props to child components [duplicate]

I'm new to React, so when I finished the Tic-Tac-Toe Tutorial from the documentation, I started doing the challenges to improve the game and practice. I got stuck at the second challenge: "2. ...
Luís Henrique's user avatar
-5 votes
3 answers
119 views

How does control flow work in nested loops in C? (Understanding execution order) [closed]

While practising nested loops in C, I wanted to understand how control flows between an outer loop and an inner loop. I understood that the inner loop runs for each iteration of the outer loop, but ...
xapet's user avatar
  • 39
-3 votes
1 answer
60 views

Pause loop to make a certain action then continue where you left off inside of it

import pyautogui import time def RunD(Down, Up): #Up is the parameter that creates the delay pyautogui.keyDown('d') pyautogui.mouseDown(button='left') time.sleep(Down) pyautogui.keyUp('...
Fares Dhouib's user avatar
0 votes
0 answers
37 views

Does `memory_order_relax` loads prevents cross `JMP` reorderings at the backedge of loops during prediction window OoO scheduling?

I was wondering about what the consequences of a relaxed load in a while loop would be, and if it would be sufficient fencing. My question arises from the fact that the Java community has agreed that &...
Delark's user avatar
  • 1,385
0 votes
1 answer
57 views

Bash Syntax error with multiple two paramter mkdir [closed]

mkdir ./output for year in {1990..2025} do mkdir ./$year \n for week in {1..52} mkdir ./"$year"/"$week" \n done done gives syntax error on second call of mkdir ...
Jan Hackenberg's user avatar
-5 votes
1 answer
124 views

calling a class object in an iterative way on python

I made the next class obj = MyClass() fds=['a','b','c'] for i in fds: attribute_name = f"{i}" setattr(obj, attribute_name, [f"{i}"]) print(obj.i) I know that obj.i is ...
Javier Olivares's user avatar
2 votes
3 answers
101 views

VBA how to average data and then identify if data is averaged or not? [closed]

Please see input and output data in the image. The input table is multiple rows of data from the same subject but different timepoints. There are sometimes multiple data entries for the same subject ...
Rae Van Sandt's user avatar
1 vote
1 answer
78 views

call/cc and multiple values

I'm playing around with implementing looping using call/cc and wrote a map function like this: (define (map1 f l) ((lambda (state) (let ((cc (car state)) (l (cadr state)) (...
NateT's user avatar
  • 312
3 votes
1 answer
98 views

VBA set a dynamic range based on “unique” IDs in a column

Subject ID Group Info Scan date Timepoint 1 group 1 20250225 1 1 group 1 20250305 2 1 group 1 20250320 3 1 group 1 20250404 4 1 group 1 20250404 4 1 group 1 20250404 4 1 group 1 20250404 4 3 group 2 ...
Rae Van Sandt's user avatar
-2 votes
1 answer
61 views

Calling the Lerp method doesn't work as intended

I am making a game in Unity and I wanted to animate a "game over" screen showing up, by making it appear from nothing and expanding to fill the screen. I did this by creating a Game Over ...
Phil's user avatar
  • 1
-5 votes
1 answer
136 views

Credit card validator program in python , loop [closed]

I’m working on a credit card validator program in Python using the Luhn’s Algorithm, but I’m stuck on the for loop part. Here’s the full code I have so far: # Credit card validator by Ahum Maitra ...
Ahum Maitra's user avatar
1 vote
1 answer
119 views

Is there a Rust way to `continue` a loop inside a `map` closure?

I found this question here but that one doesn't really answer my question due to it having an answer centered around unwrap_or_else. Here is the code I am trying to use, simplified: let x = loop { ...
theKMan747's user avatar
-5 votes
3 answers
94 views

Are There Hidden Dangers in Using for...in in JavaScript? [closed]

I wrote the algorithm below and asked an AI to evaluate my solution. //TESTS: console.log(firstNonRepeatingCharacter('abacabaz')) //c console.log(firstNonRepeatingCharacter('aabbccdeefgghijj')) //d ...
claudiopb's user avatar
  • 1,092
0 votes
2 answers
95 views

What am I missing to create a loop that works?

I have multiple simple DFs with survey results (I've made up test data below that yields the same result). I'm trying to write a loop to select two of the seven columns so I don't have to write the ...
regulationboomerang's user avatar

15 30 50 per page
1
2 3 4 5
6445