Skip to content

Commit 6312a54

Browse files
committed
Fixing documentation referencing defunct TraversableIterable
1 parent b29cfee commit 6312a54

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,7 @@ Examples of traversable functors include:
444444
- `Choice*`
445445
- `Either`
446446
- `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`
449448

450449
In addition to implementing `fmap` from `Functor`, implementing a traversable functor involves providing an implementation of `traverse`.
451450

src/main/java/com/jnape/palatable/lambda/traversable/LambdaIterable.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,21 +113,21 @@ public int hashCode() {
113113
}
114114

115115
/**
116-
* Wrap an {@link Iterable} in a <code>TraversableIterable</code>.
116+
* Wrap an {@link Iterable} in a {@link LambdaIterable}.
117117
*
118118
* @param as the Iterable
119119
* @param <A> the Iterable element type
120-
* @return the Iterable wrapped in a TraversableIterable
120+
* @return the Iterable wrapped in a {@link LambdaIterable}
121121
*/
122122
public static <A> LambdaIterable<A> wrap(Iterable<? extends A> as) {
123123
return new LambdaIterable<>(as);
124124
}
125125

126126
/**
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()}.
128128
*
129129
* @param <A> the Iterable element type
130-
* @return a TraversableIterable wrapping Collections.emptyList()
130+
* @return a {@link LambdaIterable} wrapping Collections.emptyList()
131131
*/
132132
public static <A> LambdaIterable<A> empty() {
133133
return wrap(emptyList());

0 commit comments

Comments
 (0)