- //
prints 42
return 0; }
public class Shadow {
private int myIntVar = 0;
public void shadowThe
Var() { //
Since it has the same name as
above object instance...
- Main(string[] args) { Func<Func<
int,
int>, Func<
int,
int>>
twice = f => x => f(f(x)); Func<
int,
int>
plusThree = i => i + 3;
var g = twice(plusThree); Console...
-
while loops will
calculate the
factorial of the
number 5:
var counter:
int = 5;
var factorial:
int = 1;
while (counter > 1) {
factorial *= counter; counter--;...
- principle.
var myChars = new char[] {'A', 'Ö'}; // or char[]
myChars = new char[] {'A', 'Ö'};
var myNums = new List<
int>(); // or List<
int>
myNums = new...
-
static int CompareFunction(
int x,
int y) {
return x - y; }
public static void Main() {
var items = new List<
int> { 4, 3, 1, 2 }; Comparison<
int> del =...
-
anonymous functions.
var anon = proc (var1, var2:
int):
int = var1 + var2 ****ert anon(1, 2) == 3 Multi-line example:
var anon = func (x:
int): bool = if x >...
-
variable declarations: #define DEFINE_NAME_
VAR(id, name, ...)
int name; FOR_LIST_OF_VARIABLES( DEFINE_NAME_
VAR ) or
declare an enumeration: #define DEFINE_ENUMERATION(id...
- fromCharCode(p****
Int(string, 16)); }).join(''); } /** *
PackBits unpack function * * @param {String} data * @return {String} */
function unpackBits (data) {
var output...
- <stdio.h>
int main(void) {
typedef int (*fn_
int_to_
int)(
int); // type of
function int->
int fn_
int_to_
int adder(
int number) {
int add (
int value) { return...
-
var ( X ) = lim α → 0
var ( X ) = lim β → ∞
var ( X ) = lim α → ∞
var ( X ) = lim ν → ∞
var ( X ) = lim μ → 0
var ( X ) = lim μ → 1
var ...