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.

Calling a JavaScript function named in a variable

I have a JavaScript variable which contains the name of a JavaScript function. This function exists on the page by …

javascript function variables
Jump to function definition in vim

How can I jump to to a function definition using vim? For example with Visual Assist, I can type Alt+…

function vim
PLS-00201 - identifier must be declared

I executed a PL/SQL script that created the following table TABLE_NAME VARCHAR2(30) := 'B2BOWNER.SSC_Page_Map'; I …

oracle function plsql
Passing a string with spaces as a function argument in bash

I'm writing a bash script where I need to pass a string containing spaces to a function in my bash …

bash function
Returning multiple objects in an R function

How can I return multiple objects in an R function? In Java, I would make a Class, maybe Person which …

r function
Call Python function from JavaScript code

I'd like to call a Python function from JavaScript code, because there isn't an alternative in JavaScript for doing what …

javascript python function integration
Python - Passing a function into another function

I am solving a puzzle using python and depending on which puzzle I am solving I will have to use …

python function first-class-functions
PHP function to generate v4 UUID

So I've been doing some digging around and I've been trying to piece together a function that generates a valid …

php function uuid
Calling dynamic function with dynamic number of parameters

I’m looking for a trick about this. I know how to call a dynamic, arbitrary function in JavaScript, passing …

javascript function
Function in JavaScript that can be called only once

I need to create a function which can be executed only once, in each time after the first it won't …

javascript function design-patterns