Top "Function" questions

A function (also called a procedure, method, subroutine, or routine) is a portion of code intended to carry out a single, specific task.

What is define([ , function ]) in JavaScript?

I see this being used all the time in JavaScript: define(['param1', 'param2'], function() { }); What is the define …

javascript function requirejs-define
Why does Python code use len() function instead of a length method?

I know that python has a len() function that is used to determine the size of a string, but I …

python function oop methods string-length
Is it possible to get all arguments of a function as single object inside that function?

In PHP there is func_num_args and func_get_args, is there something similar for JavaScript?

javascript algorithm function arguments marshalling
How to Truncate a string in PHP to the word closest to a certain number of characters?

I have a code snippet written in PHP that pulls a block of text from a database and sends it …

php string function
Is there a way to provide named parameters in a function call in JavaScript?

I find the named parameters feature in C# quite useful in some cases. calculateBMI(70, height: 175); What can I use if …

javascript function optional-parameters named-parameters
How to explain callbacks in plain english? How are they different from calling one function from another function?

How to explain callbacks in plain English? How are they different from calling one function from another function taking some …

function callback language-agnostic terminology
Split function in oracle to comma separated values with automatic sequence

Need Split function which will take two parameters, string to split and delimiter to split the string and return a …

oracle function plsql split delimiter
How can I get a list of all functions stored in the database of a particular schema in PostgreSQL?

I want to be able to connect to a PostgreSQL database and find all of the functions for a particular …

postgresql function
What does it mean to "call" a function in Python?

What does "call" mean and do? How would you "call" a function in Python?

python call function