Skip to main content

All Questions

Tagged with
-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> <...
Sam Sandy's user avatar
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 ...
Seyong Chang's user avatar
-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 ...
giuamato50's user avatar
-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", ...
Neha's user avatar
  • 1
-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 ...
droid's user avatar
  • 31
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 ...
user25460651's user avatar
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( ...
Mateus's user avatar
  • 1
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 ...
Lenonade's user avatar
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 (...
Hannibal.Br's user avatar
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", &...
arhrzk's user avatar
  • 13
-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 ...
Schtraded's user avatar
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", "...
Uday's user avatar
  • 19
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 ...
Kevin's user avatar
  • 9
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....
Jalagui's user avatar
  • 33
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 ...
Saar Zar's user avatar

15 30 50 per page
1
2 3 4 5
499