Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions features.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,12 @@ <h2 id="_product_types">Product Types</h2>
<div class="listingblock">
<div class="content">
<pre class="prettyprint highlight"><code class="language-java" data-lang="java">// Regular Java
public Integer albuquerqueToLA(Map&gt; map) {
public Integer albuquerqueToLA(Map&lt;String, Integer&gt; map) {
Map m = map.get("Albuquerque");
if (m != null) return m.get("Los Angeles"); // May return null.
}
// Functional Java with product and option types.
public Option albuquerqueToLA(TreeMap, Integer&gt;() map) {
public Option albuquerqueToLA(TreeMap&lt;String, Integer&gt;() map) {
return m.get(p("Albuquerque", "Los Angeles"));
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should m.get be map.get?

}</code></pre>
</div>
Expand Down