Top "Parameter-passing" questions

parameter-passing is the process of assigning values to the parameters of a function

How can I pass a Class as parameter and return a generic collection in Java?

I am designing a simple Data Access Object for my Java application. I have a few classes (records) that represents …

java generics class polymorphism parameter-passing
How to return an array in bash without using globals?

I have a function that creates an array and I want to return the array to the caller: create_array() { …

arrays bash global-variables parameter-passing
jQuery Passing $(this) to a Function

I have lines of code like this: $(this).parent().parent().children().each(function(){ // do something }); It works well. But I …

jquery this parameter-passing
Are there any downsides to passing structs by value in C, rather than passing a pointer?

Are there any downsides to passing structs by value in C, rather than passing a pointer? If the struct is …

c struct parameter-passing abi
How can I reference a cell's value in PowerQuery

I'm having multiple PowerQuery queries that I would like to feed the value of a cell in my Excel file. …

excel parameter-passing powerquery m
Difference between passing array and array pointer into function in C

What is the difference between the two functions in C? void f1(double a[]) { //... } void f2(double *a) { //... } If I …

c arrays function parameter-passing space-efficiency
Passing functions as parameters in Swift

I have the following function working as I expect, in iOS 8: func showConfirmBox(msg:String, title:String, firstBtnStr:String, secondBtnStr:…

ios swift function parameter-passing
How to call parameterized method from JSP using JSTL/EL

How to call a Java method with arguments which is defined in Java class, from JSP using JSTL/EL. The …

jsp jstl parameter-passing el methodexpression
AngularJS Directive Passing String

This directive is trying to create an HTML element called progress bar that tracks progress as you move page to …

javascript string angularjs angularjs-directive parameter-passing
How do I pass a hash to a function in Perl?

I have a function that takes a variable and an associative array, but I can't seem to get them to …

perl function parameter-passing declaration