Skip to content

Commit 7ac3814

Browse files
committed
Fixing reference for all of IntDict
1 parent 83aa2f4 commit 7ac3814

19 files changed

+76
-77
lines changed

content/api_en/IntDict_add.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
<example>
1313
<image></image>
1414
<code><![CDATA[
15-
String[] goods = { "cds", "tapes", "records"};
16-
int[] amounts = { 84, 15, 102 };
17-
1815
IntDict inventory;
1916
2017
void setup() {
2118
size(200, 200);
22-
inventory = new IntDict(goods, amounts);
19+
inventory = new IntDict();
20+
inventory.set("cd",84);
21+
inventory.set("tapes",15);
22+
inventory.set("records",102);
2323
println(inventory); // There are 84 cds
2424
inventory.add("cds", 20);
2525
println(inventory); // There are 104 cds

content/api_en/IntDict_clear.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
<example>
1313
<image></image>
1414
<code><![CDATA[
15-
String[] goods = { "cds", "tapes", "records"};
16-
int[] amounts = { 84, 15, 102 };
17-
1815
IntDict inventory;
1916
2017
void setup() {
2118
size(200, 200);
22-
inventory = new IntDict(goods, amounts);
19+
inventory = new IntDict();
20+
inventory.set("cd",84);
21+
inventory.set("tapes",15);
22+
inventory.set("records",102);
2323
println(inventory);
2424
inventory.clear();
2525
println(inventory);

content/api_en/IntDict_div.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
<example>
1313
<image></image>
1414
<code><![CDATA[
15-
String[] goods = { "cds", "tapes", "records"};
16-
int[] amounts = { 84, 15, 102 };
17-
1815
IntDict inventory;
1916
2017
void setup() {
2118
size(200, 200);
22-
inventory = new IntDict(goods, amounts);
19+
inventory = new IntDict();
20+
inventory.set("cd",84);
21+
inventory.set("tapes",15);
22+
inventory.set("records",102);
2323
println(inventory); // There are 84 cds
2424
inventory.div("cds", 2);
2525
println(inventory); // There are 42 cds

content/api_en/IntDict_get.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
<example>
1313
<image></image>
1414
<code><![CDATA[
15-
String[] goods = { "cds", "tapes", "records"};
16-
int[] amounts = { 84, 15, 102 };
17-
1815
IntDict inventory;
1916
2017
void setup() {
2118
size(200, 200);
22-
inventory = new IntDict(goods, amounts);
19+
inventory = new IntDict();
20+
inventory.set("cd",84);
21+
inventory.set("tapes",15);
22+
inventory.set("records",102);
2323
println(inventory);
2424
noLoop();
2525
fill(0);

content/api_en/IntDict_hasKey.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
<example>
1313
<image></image>
1414
<code><![CDATA[
15-
String[] goods = { "cds", "tapes", "records"};
16-
int[] amounts = { 84, 15, 102 };
17-
1815
IntDict inventory;
1916
2017
void setup() {
2118
size(200, 200);
22-
inventory = new IntDict(goods, amounts);
19+
inventory = new IntDict();
20+
inventory.set("cd",84);
21+
inventory.set("tapes",15);
22+
inventory.set("records",102);
2323
println(inventory);
2424
if (inventory.hasKey("records") == true) {
2525
println("Yes, we have records.");

content/api_en/IntDict_increment.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
<example>
1313
<image></image>
1414
<code><![CDATA[
15-
String[] goods = { "cds", "tapes", "records"};
16-
int[] amounts = { 84, 15, 102 };
17-
1815
IntDict inventory;
1916
2017
void setup() {
2118
size(200, 200);
22-
inventory = new IntDict(goods, amounts);
19+
inventory = new IntDict();
20+
inventory.set("cd",84);
21+
inventory.set("tapes",15);
22+
inventory.set("records",102);
2323
println(inventory); // There are 15 tapes
2424
inventory.increment("tapes");
2525
println(inventory); // There are now 16 tapes

content/api_en/IntDict_keyArray.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
<example>
1313
<image></image>
1414
<code><![CDATA[
15-
String[] goods = { "cds", "tapes", "records"};
16-
int[] amounts = { 84, 15, 102 };
17-
1815
IntDict inventory;
1916
2017
void setup() {
2118
size(200, 200);
22-
inventory = new IntDict(goods, amounts);
19+
inventory = new IntDict();
20+
inventory.set("cd",84);
21+
inventory.set("tapes",15);
22+
inventory.set("records",102);
2323
println(inventory);
2424
String[] theKeys = inventory.keyArray();
2525
println(theKeys);

content/api_en/IntDict_keys.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
<example>
1313
<image></image>
1414
<code><![CDATA[
15-
String[] goods = { "cds", "tapes", "records"};
16-
int[] amounts = { 84, 15, 102 };
17-
1815
IntDict inventory;
1916
2017
void setup() {
2118
size(200, 200);
22-
inventory = new IntDict(goods, amounts);
19+
inventory = new IntDict();
20+
inventory.set("cd",84);
21+
inventory.set("tapes",15);
22+
inventory.set("records",102);
2323
println(inventory);
2424
for (String k : inventory.keys()) {
2525
println(k);

content/api_en/IntDict_mult.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
<example>
1313
<image></image>
1414
<code><![CDATA[
15-
String[] goods = { "cds", "tapes", "records"};
16-
int[] amounts = { 84, 15, 102 };
17-
1815
IntDict inventory;
1916
2017
void setup() {
2118
size(200, 200);
22-
inventory = new IntDict(goods, amounts);
19+
inventory = new IntDict();
20+
inventory.set("cd",84);
21+
inventory.set("tapes",15);
22+
inventory.set("records",102);
2323
println(inventory); // There are 84 cds
2424
inventory.mult("cds", 2);
2525
println(inventory); // There are 168 cds

content/api_en/IntDict_remove.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
<example>
1313
<image></image>
1414
<code><![CDATA[
15-
String[] goods = { "cds", "tapes", "records"};
16-
int[] amounts = { 84, 15, 102 };
17-
1815
IntDict inventory;
1916
2017
void setup() {
2118
size(200, 200);
22-
inventory = new IntDict(goods, amounts);
19+
inventory = new IntDict();
20+
inventory.set("cd",84);
21+
inventory.set("tapes",15);
22+
inventory.set("records",102);
2323
println(inventory); // Full inventory
2424
inventory.remove("tapes");
2525
println(inventory); // Tapes are removed from list

0 commit comments

Comments
 (0)