This commit is contained in:
Ingy döt Net 2013-04-10 16:57:12 -07:00
parent 518da4a923
commit 764da6cbbb
6144 changed files with 83610 additions and 11 deletions

View file

@ -0,0 +1 @@
int[] numbers = new int[10];

View file

@ -0,0 +1,2 @@
array :: {Real}
array = createArray 10 3.1415

View file

@ -0,0 +1,2 @@
array :: {Int}
array = {x \\ x <- [1 .. 10]}

View file

@ -0,0 +1,2 @@
array :: {!Int}
array = {x \\ x <- [1 .. 10]}

View file

@ -0,0 +1,2 @@
array :: {#Char}
array = {x \\ x <- ['a' .. 'z']}

View file

@ -0,0 +1 @@
string[] words = { "these", "are", "arrays" };

View file

@ -0,0 +1 @@
int[] more_numbers = new int[3]{ 21, 14 ,63 };

View file

@ -0,0 +1 @@
int[,] number_matrix = new int[3,2];

View file

@ -0,0 +1 @@
string[,] string_matrix = { {"I","swam"}, {"in","the"}, {"freezing","water"} };

View file

@ -0,0 +1 @@
string[,] funny_matrix = new string[2,2]{ {"clowns", "are"} , {"not", "funny"} };

View file

@ -0,0 +1,6 @@
int[] array = new int[10];
array[0] = 1;
array[1] = 3;
Console.WriteLine(array[0]);

View file

@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
List<int> list = new List<int>();
list.Add(1);
list.Add(3);
list[0] = 2;
Console.WriteLine(list[0]);

View file

@ -0,0 +1,2 @@
array :: {String}
array = {"Hello", "World"}