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.

Extending an Object in Javascript

I am currently transforming from Java to Javascript, and it's a bit hard for me to figure out how to …

javascript function object prototype extends
Is there a function in python to split a word into a list?

Is there a function in python to split a word into a list of single letters? e.g: s="Word …

python function split
Is there a math nCr function in python?

Possible Duplicates: Statistics: combinations in Python counting combinations and permutations efficiently Project euler problem in python (problem 53) I'm looking to …

python function math
Determine function name from within that function (without using traceback)

In Python, without using the traceback module, is there a way to determine a function's name from within that function? …

python function introspection traceback
SQL Server function to return minimum date (January 1, 1753)

I am looking for a SQL Server function to return the minimum value for datetime, namely January 1, 1753. I'd rather not …

sql-server datetime function
How to pass a vector to a function?

I'm trying to send a vector as an argument to a function and i can't figure out how to make …

c++ function vector
python max function using 'key' and lambda expression

I come from OOP background and trying to learn python. I am using the max function which uses a lambda …

python function lambda
Why do some functions have underscores "__" before and after the function name?

This "underscoring" seems to occur a lot, and I was wondering if this was a requirement in the Python language, …

python function methods double-underscore
Apply a function to every row of a matrix or a data frame

Suppose I have a n by 2 matrix and a function that takes a 2-vector as one of its arguments. I …

r function matrix apply sapply
Iterating Over Dictionary Key Values Corresponding to List in Python

Working in Python 2.7. I have a dictionary with team names as the keys and the amount of runs scored and …

python list function dictionary loops