Top "First-class-functions" questions

First-class functions can be assigned to variables, passed to other functions as arguments, or returned from other functions.

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
What is a first class citizen function?

What is a first class citizen function? Does Java supports first class citizen function? Edit: As mention on Wikepedia First …

java first-class-functions uses
What is first class function in Python

I am still confused about what first-class functions are. If I understand correctly, first-class functions should use one function as …

python function first-class-functions
Dynamic function call in Go

I'm trying to dynamically call functions returning different types of struct. For example, let's take the following code. struct A { …

go first-class-functions
How do I reference a function in Ruby?

In python, it's fairly straightforward to reference a function: >>> def foo(): ... print "foo called" ... return 1 ... >>&…

ruby ruby-1.9 first-class-functions
Pass a function (with arguments) as a parameter in PowerShell

I've been successfully passing no-argument functions around in PowerShell using ScriptBlocks. However, I can't get this to work if the …

powershell functional-programming powershell-2.0 first-class-functions
C# version of Java Runnable? (delegate?)

I could not find a direct answer to this question yet in SO. Is there a predefined delegate with void (…

c# delegates first-class-functions
Callback functions in TypeScript

I'm just getting started with Angular 2 and TypeScript and I can't seem to figure out how to use callback functions, …

typescript angular first-class-functions