Skip to main content
0 votes
1 answer
66 views

For example, this function: f:{x+y} Is not what I want because to call the function, f[2;3] is required instead of 2 f 3. Is there a way to make the function such that 2 f 3 work? I am using ngn/k, ...
Fmbalbuena's user avatar
0 votes
0 answers
82 views

How do you include two named functions, which are not nested, in one anonymous function? For example, say I have a file mainFunction.m which contains function varargout = mainFunction(in1) % in1 is ...
Argyll's user avatar
  • 10.1k
-2 votes
1 answer
97 views

I was looking through the code of AutoMapper ASP.NET Core dependency injection, and in the AddAutoMapperClasses, I saw that they declared a lambda expression after the last return: private static ...
Architek's user avatar
  • 135
4 votes
1 answer
79 views

Is there a way to make an anonymous function without output? I have variable for function_handle whose starting, default value is to do nothing. So I am doing func=@()[];. But I am also curious if ...
Argyll's user avatar
  • 10.1k
4 votes
1 answer
77 views

I'm relatively new to MATLAB so perhaps there's something I'm missing. The task is the following: we must program a certain algorithm for optimizing a continuous function f: Rn ---> R. The thing is,...
Pucho's user avatar
  • 43
0 votes
1 answer
115 views

In many languages closures are implemented using a structure in combination with a standard associated function (with a fixed name) which provides a method of making the object "callable". ...
user2138149's user avatar
  • 18.7k
0 votes
0 answers
44 views

I have the following class <?php namespace Core; class Router { public $routes = [ [ 'url' => '/register', 'controller' => BASE_PATH . 'controllers/registration/register....
Konstantinos Papakonstantinou's user avatar
0 votes
1 answer
66 views

I have a nested dict like this function_dict_1 = Dict( :f => Dict( :func1 => x -> x^2 ) ) I want to call a strongly typed function, which receives this dict as an argument. ...
wittn's user avatar
  • 320
1 vote
1 answer
56 views

// normal function fun something(a: String, b: String): String { return "$a $b" } println(::something.parameters) <- not empty but // anonymous function var something = fun(a: ...
dbwhddn10's user avatar
  • 115
1 vote
2 answers
98 views

I wish to define a function in a different way depending on whether a field in the provided value is null. I expect that the provided value's type will be appropriately narrowed inside the function ...
Ignat Insarov's user avatar
0 votes
2 answers
95 views

I have a list of about 100 articles, and within each article is a list of clauses. The clauses are a list of varying levels deep. $clauses = array( [ 'Fields' => ['Clause' => 'clause 1', '...
FigureOfCode's user avatar
0 votes
1 answer
53 views

I have a table which consist of anonymous block in the column rule, which needs to be executed from procedure. Here is the sample data which looks like the real scenario. Table emp: create table emp (...
MAK's user avatar
  • 7,345
2 votes
3 answers
132 views

I have this script use strict; use warnings; use Data::Dumper; package Foo; sub new { bless { 'a' => 1, 'b' => sub { return "foo" } }, $_[0] }; my $foo = Foo-...
Jim's user avatar
  • 4,529
-1 votes
2 answers
108 views

I have a simple program that looks like this: console.log("Start of the program execution!"); setTimeout(() => { console.log("I ran after a second!"); }, 1000); console....
mukesharyal's user avatar
0 votes
1 answer
38 views

I have this function: mweFitModelsGLMER <- function(longData, strModelName = "ID Rand Model", strFormula = "phMeta_Toxicity ~ ...
Rover Eye's user avatar
  • 259

15 30 50 per page
1
2 3 4 5
144