File tree 2 files changed +5
-6
lines changed
src/main/java/com/jnape/palatable/lambda/traversable
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -444,8 +444,7 @@ Examples of traversable functors include:
444
444
- `Choice * `
445
445
- `Either `
446
446
- `Const ` and `Identity `
447
- - `TraversableIterable ` for wrapping `Iterable ` in an instance of `Traversable `
448
- - `TraversableOptional ` for wrapping `Optional ` in an instance of `Traversable `
447
+ - `LambdaIterable ` for wrapping `Iterable ` in an instance of `Traversable `
449
448
450
449
In addition to implementing `fmap` from `Functor `, implementing a traversable functor involves providing an implementation of `traverse`.
451
450
Original file line number Diff line number Diff line change @@ -113,21 +113,21 @@ public int hashCode() {
113
113
}
114
114
115
115
/**
116
- * Wrap an {@link Iterable} in a <code>TraversableIterable</code> .
116
+ * Wrap an {@link Iterable} in a {@link LambdaIterable} .
117
117
*
118
118
* @param as the Iterable
119
119
* @param <A> the Iterable element type
120
- * @return the Iterable wrapped in a TraversableIterable
120
+ * @return the Iterable wrapped in a {@link LambdaIterable}
121
121
*/
122
122
public static <A > LambdaIterable <A > wrap (Iterable <? extends A > as ) {
123
123
return new LambdaIterable <>(as );
124
124
}
125
125
126
126
/**
127
- * Construct an empty <code>TraversableIterable</code> by wrapping {@link java.util.Collections#emptyList()}.
127
+ * Construct an empty {@link LambdaIterable} by wrapping {@link java.util.Collections#emptyList()}.
128
128
*
129
129
* @param <A> the Iterable element type
130
- * @return a TraversableIterable wrapping Collections.emptyList()
130
+ * @return a {@link LambdaIterable} wrapping Collections.emptyList()
131
131
*/
132
132
public static <A > LambdaIterable <A > empty () {
133
133
return wrap (emptyList ());
You can’t perform that action at this time.
0 commit comments