Skip to content
  • About Us
  • Contact Us
  • Privacy Policy
  • Terms and Conditions

Programming Tutorial

Start Learning to Code

  • About Us
  • Contact Us
  • Privacy Policy
  • Terms and Conditions

Breaking News

Nextjs: running code after complete fetch

why does 400 status code result always entercatch block execution with axios?

Saving the state of the button onClick

TypeScript: Specify that value must be in Array using spread operator

Show separate number with comma in django tempalte

Why does my website keep showing old index.html, style.css, app.js…?

Using Python Flask to change the colour of an icon when it detects a words like scam, pending and verified

x clear icon appears only when the input has value – react

Login button redirects to two pages. For first time loginers, it redirects to agreement page, and for rest, it redirects straight to home?

WebComponent setter not triggered if defer is used

Tag: function

Arrays

list to array without using array module in OCaml

admin June 18, 2021

How can I convert list to an array without using array module? let rec mk_hlp s v = match s with |0 -> [] |_ -> v::mk_hlp (s-1) v;; let mk s v = [|mk_hlp s v|];; My attempt, but returns array …

arraysfunctionlistocaml
Arrays

C: Function with matrix as argument prints out wrong when the matrix dimensions are odd numbers

admin March 14, 2021

so I created a function that has a matrix as an argument. The matrix is made out of 0’s and 1’s. The objective of this function to read the matrix values, one by one and in case they are a 0 it prints …

arrayscfunctionmatrix
Arrays

C: Wrong matrix values when printing them in main()

admin March 13, 2021

I have a function that creates a new matrix based on dimmensions given by the user, it looks like this: void matrix(n, m){ int mtx[n][m]; for (int i = 0; i < n; i++) { for (int j =...

arrayscfunctionmatrix
Arrays

I want to make a function that get the names of it caller for an array of radio buttons c#

admin March 13, 2021

I’m very new to c# and programming overall. my problem is I have an array of radio buttons with the names of the users that the program already knows about and I want it so when a user clicks on them …

arrayscfunctionradio-buttonwindows
Arrays

Getting undefined, and can’t find the bug

admin March 7, 2021

I’m having trouble finding the bug in my program. The console.logs labelled “Debug 3” and “Debug 6” are both returning undefined. I’m sure it’s obvious, but any help pointing them …

arraysfunctionhigher-order-functionsjavascript
Arrays

Deep find object in array and edit then put back in place

admin March 1, 2021

const data = [{name: “item1”, key: 1}, {name: “item2”, key: 2, children: [{name: “item3”, key: 3}]}] each item can have children and objects in a children) when will …

arraysfilterfunctionjavascriptobject
Linux

Perform multiple functions on each object in an array and redirect the results to a file

admin February 11, 2021

How to perform multiple functions on each object in an array and output the results to a file? Heres my array, its the value of a command, that command lists all text files in the current directory: #!…

arraysfunctionlinuxloopsshell
Arrays

Modifying arrays with Operators and Iteration Numpy Python

admin February 8, 2021

The function a[a.size – (a >= 0)[::-1].argmax():] = 0 assigns 0 to the arrays if the array is equal to or less than 0, it also assigns 0 to the arrays that are behind it. In example a the function …

arraysfunctioniteratornumpypython
Arrays

Modifying a chunk of arrays in Numpy Python

admin February 8, 2021

I want to write a function where if an array is equal to or less than 0 it will replace the values after (and including) that index with 0. The numbers have the 7th element less than 0 being -1, thus …

arraysfunctionlistnumpypython
Arrays

The method’s returned value is not appearing

admin December 24, 2020

I have a method that returns one value of array. I would that in HTML file, this tag p has the value of method and update your value. The problem is: HTML doesn’t update, why?? If console.log is used, …

arraysfunctionhtmljavascriptvue.js

Posts navigation

1 2 … 11 Next
Privacy Policy