1
0
forked from GitHub/gf-core

change tabularLinearize in the Haskell binding to return a list instead of map this preserves the order

This commit is contained in:
Krasimir Angelov
2017-08-30 15:59:43 +02:00
parent 97fe5df267
commit 08a728799a
2 changed files with 4 additions and 4 deletions

View File

@@ -363,7 +363,7 @@ then the right method to use is <tt>tabularLinearize</tt>:
</pre>
<pre class="haskell">
Prelude PGF2> tabularLinearize eng e
fromList [("s Pl Gen","red theatres'"),("s Pl Nom","red theatres"),("s Sg Gen","red theatre's"),("s Sg Nom","red theatre")]
[("s Sg Nom","red theatre"),("s Sg Gen","red theatre's"),("s Pl Nom","red theatres"),("s Pl Gen","red theatres'")]
</pre>
<pre class="java">
for (Map.Entry&lt;String,String&gt; entry : eng.tabularLinearize(e).entrySet()) {