Skip to content

Commit

Permalink
Refine readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jpace committed Oct 5, 2019
1 parent ec6afa2 commit e0ad519
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Expand Up @@ -185,6 +185,7 @@ collision with java.util.Map).
assertEqual(exp, entry.getValue(), message("entry", entry));
}

// fetch throws an exception if there is no entry for the given key and a default is not given:
Hash<String, String> h = Hash.of("first", "abc", "second", "def", "third", "ghi");
assertEqual("abc", h.fetch("first"));
assertEqual("xyz", h.fetch("fourth", "xyz"));
Expand All @@ -211,6 +212,9 @@ Formerly StringList, an Array of Strings.
boolean result = sa.anyStartsWith("ba"); // true
boolean result = sa.anyStartsWith("do"); // false
StringArray lines = sa.toLines(); // returns each element appended with "\n"

File file = new File("input.txt");
StringArray lines = StringArray.from(file);
```

#### IntegerArray
Expand Down Expand Up @@ -370,7 +374,7 @@ Execute a given number of times, similar to Ruby:

```java
for (Integer i : Iterate.count(3)) {
ICore.puts("hi");
System.out.println("hi");
}
```

Expand Down Expand Up @@ -488,12 +492,12 @@ IJDK is available in the Maven repository.
}

dependencies {
compile group: 'org.incava', name: 'ijdk', version: '3.3.2'
compile group: 'org.incava', name: 'ijdk', version: '3.9.0'
}

# Help

Email me at jeugenepace at gmail dot com if you have questions or feedback about IJDK.
Send email to jeugenepace at gmail dot com if you have questions or feedback about IJDK.

# More Examples

Expand Down

0 comments on commit e0ad519

Please sign in to comment.