-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoc.html
16 lines (16 loc) · 823 Bytes
/
doc.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<HTML>
<META http-equiv="Content-Type" content="text/html;charset=utf-8">
<BODY>
<dl class="func">
<dt class="func">
<SPAN CLASS="code"><a name=descending>descending</a> :: <a class="tref" href="./frege/prelude/PreludeBase.html#Ord">Ord</a> 𝖇 => (𝖆->𝖇) -> 𝖆 -> 𝖆 -> <a class="tref" href="./frege/prelude/PreludeBase.html#Ordering">Ordering</a></SPAN></dt>
<dd class="func">
<p>
<SPAN CLASS="code">descending f</SPAN> applies a projection function on both sides of <a class="fref" href="./frege/prelude/PreludeBase.html#Ord.$lt$eq$gt">Ord.<=></a>, but flips arguments. Example usage:</p>
<PRE>
sortBy (descending fst) [(1, "z"), (2, "b")] == [(2, "b"), (1, "z")]</PRE>
</dd>
</dl>
</BODY>
</HTML>