Function is a block of code which performs a specific task.

learn more… | top users | synonyms

5
votes
1answer
236 views

How to move from OOP object composition to FP function composition in C#

I have been working for a few weeks on a new web project and I am realizing that all I am doing is basically calculations and transformations on data, and that most of my classes do not contain any ...
1
vote
1answer
134 views

Can I add to a built-in function?

I want be to be able to re-write the code of an existing PHP function in an abstract manner. Here is an example: scandir() scans a directory for files and folders, and returns the relative paths '.' ...
1
vote
0answers
17 views

Hidden event handlers and their parameters

I'm having a bit of trouble understanding why has an event handler to be defined as a function. AFAIK, a function can be used as anonymous called procedure as event handler It defines a ...
-3
votes
0answers
40 views

2d Array called into function. Why are 0's being inserted into the array while inside the function?

//prototype int draw(int board[d][d], int d); // draw the current state of the board. (Function call) board[d][d] = draw(board, d); //This is the function itself. int draw(int board[...