public class Person {
public string Name { get; private set; }
public int Age { get; private set; }
public Person(string name, int age) {
this.Name = name;
this.Age = age;
}
}
$$ X = X + 1 $$
$$ X_{n+1} = X_n + 1 $$
// JavaScriptでの実装例
binOp(10, 2, function(x, y){ return x + y }) // -> 12
binOp(10, 2, function(x, y){ return x - y }) // -> 8
binOp(10, 2, function(x, y){ return x * y }) // -> 20
binOp(10, 2, function(x, y){ return x / y }) // -> 5
function binOp(x, y, op)
{
return op(x, y)
}
// ES6での実装例
binOp(10, 2, (x, y) => x + y) // -> 12
binOp(10, 2, (x, y) => x - y) // -> 8
binOp(10, 2, (x, y) => x * y) // -> 20
binOp(10, 2, (x, y) => x / y) // -> 5
function binOp(x, y, op)
{
return op(x, y)
}
$$ LCOM = \frac{\frac{1}{a}\sum_{j}^a μ(Aj)-m}{1-m} $$