All Questions
7,476
questions
-1
votes
3
answers
72
views
Todo list using array and loop
I want to create a todo list using array and loop and display the list in div container. I am able to display the list but it is muliplying the same list stored and is displayed.
<body>
<...
0
votes
1
answer
30
views
How to vectorize a custom function to use with mutate() and case_when() in R?
I'm trying to run a custom function, QA2Char, to iterate down all the rows of a specific column in my dataframe and then append the output as a new column.
QA2Char takes a decimal/integer and outputs ...
-1
votes
1
answer
30
views
Why I receive an unknown variable error in my function?
I'm using AlgoBuild and inside the "input_vet()" function there's a while loop and in its condition I recall the variable N, which I assign a value in the main, and shows a unknown variable ...
-3
votes
0
answers
95
views
Returning a string vs returning an array in java [duplicate]
Consider below two code snippets showing java functions
Snip 1:
public String greet() {
return "hello";
}
Snip 2:
public String[] greetings() {
return new String[]{"hello", ...
-1
votes
0
answers
45
views
Functions involving other classes? [duplicate]
Currently I have two classes, the student and roster class. The roster class has an array of pointers that point towards the memory addresses of student class objects. Each student class has multiple ...
0
votes
1
answer
30
views
Implement Edit and Delete functions using buttons
I have this HTML file of a website that includes a form to enter recipes and display them below. Every recipe has a title, an ingredients section and an instructions section and every recipe must have ...
0
votes
1
answer
23
views
Build list of widgets from asynchronous call [duplicate]
I need to make a dynamic list of Widgets
Then I created a function that returns a list of widgets
@override
Widget build(BuildContext context) {
return Container(
child: SingleChildScrollView(
...
0
votes
0
answers
19
views
Audio player won't play to previous song from an array of music
For the past week I've been coding this music website project, and my main goal is to make my own audio controller without using the HTML <audio> tag.
Instead, in JS, I made an object function ...
0
votes
0
answers
60
views
Why do we use a single pointer rather than a double pointer to pass an array to a function? [duplicate]
Why not double pointer to take an array?
I'm having a bit of problem understanding why an array isn't passed as a double pointer (a pointer to a pointer) since the array name itself is a pointer (...
1
vote
5
answers
90
views
javascript function looping array
Why can't I get the output I want, I tried various ways but it doesn't work, where is it wrong?
Give me a clue so I can learn.
let laptop = ["asus", "lenovo", "acer", &...
-1
votes
2
answers
49
views
What could make it so that one part of my function called by a Web Worker is calculated while the rest is not without any errors?
My Question/ Expectation is to find a possible point or statment that could cause such problems. If you have experienced something similar in JS, where it does go through the whole Function but only ...
0
votes
1
answer
51
views
In array of objects with similar division, check the new record and previous record and aggregate the response in dataweave
Input:
[
{
"employeeId": 100,
"firstName": "John",
"lastName": "Chen",
"division": "2024-DOA09-1111",
"...
0
votes
0
answers
28
views
VBA Error when passing array argument to array function
I wrote a short VBA script in Excel to test randomized pairings of values between two arrays of equal length. In this case, the array Car() and Color() each have four values. I send each array to a ...
0
votes
1
answer
46
views
Pass function name and multiple params as string [duplicate]
I have an object of functions id, names and parameters.
I want to call the object with an id, that will execute the corresponding function by its string name and passes the associated array parameters....
0
votes
0
answers
8
views
ARRAYFORMULA doesn't work with entire column reference
I am trying to build a sheet that will return a date base on when a stock price passed a specific price level for the first time (called and order triggered in stock trading).
Column A for date - Data ...