Skip to content

Commit e028e43

Browse files
Update README.md
1 parent 3705830 commit e028e43

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,6 @@ Paguro lets you forget about:
2525

2626
Kotlin fixes almost all these issues too, but if you're stuck in Java, Paguro is a great solution.
2727

28-
# What's the Best/Most-Used Part?
29-
- The stuff in StaticImports:
30-
- `vec()`
31-
- `map(tup(x, y), tup(a, b))`
32-
- `xform()` and `xformArray()`
33-
- The functional interfaces: `Fn0`, `Fn1`, `Fn2`, `Fn3` because they wrap checked exceptions.
34-
- Because Java doesn't have sealed classes, I often write a lot of match() methods like those on the oneOf classes. I probably copy the match() methods as often as I use most of the OneOf# classes. It's a great way to say, "Make sure you code for each of these cases every time you use this kind of thing."
35-
- `LazyRef`
36-
3728
# What's in Paguro?
3829
Type-safe, null-safe versions of Clojure's immutable/persistent collections, an immutable alternative to Java 8 Streams that handles checked exceptions in lambdas, and other tools to make functional programming in Java easier.
3930

@@ -60,6 +51,15 @@ Paguro is short for the Latin "Paguroidea" - the name of the Hermit Crab superfa
6051

6152
[Usage examples](src/test/java/org/organicdesign/fp/UsageExampleTest.java) are implemented as unit tests to ensure that they remain correct and current.
6253

54+
# What's the Most-Practical/Most-Used Part?
55+
- The stuff in StaticImports:
56+
- `vec()`
57+
- `map(tup(x, y), tup(a, b))`
58+
- `xform()` and `xformArray()`
59+
- The functional interfaces: `Fn0`, `Fn1`, `Fn2`, `Fn3` because they wrap checked exceptions.
60+
- Because Java doesn't have sealed classes, I often write a lot of match() methods like those on the oneOf classes. I probably copy the match() methods as often as I use most of the OneOf# classes. It's a great way to say, "Make sure you code for each of these cases every time you use this kind of thing."
61+
- `LazyRef`
62+
- `Tuple2` implements `Map.Entry<K,V>` which means I use the Map.Entry interface a lot more than I would otherwise (compare with `Pair<A,B>` in Kotlin). Paguro lets you convert to and from maps easily, so this interface becomes super handy. `Iterable<Map.Entry<K,V>>` becomes a pretty common input type.
6363

6464
# Getting Started
6565

@@ -71,7 +71,7 @@ Paguro is short for the Latin "Paguroidea" - the name of the Hermit Crab superfa
7171
# Classic
7272
You are on the Paguro Classic, or main branch of this project.
7373
If you work with pure Java, or a mix of Java and Kotlin files, this is your branch.
74-
If you want to live dangerously, try the all-Kotlin version in the 4.0 branch when it becomes available.
74+
I'm not sure the pure-Kotlin branch will ever be released. Plain Java with `@NotNull` annotations gets you most of the way there, with almost no dependencies.
7575

7676
# News
7777
## RrbTree.join() seems to work now

0 commit comments

Comments
 (0)