/usr/share/mozart/doc/macro/node8.html is in mozart-doc 1.4.0-8ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>2.3 Accumulators</TITLE><LINK href="ozdoc.css" rel="stylesheet" type="text/css"></HEAD><BODY><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node7.html#section.loop.control"><< Prev</A></TD><TD><A href="node5.html">- Up -</A></TD></TR></TABLE><DIV id="section.loop.accu"><H2><A name="section.loop.accu">2.3 Accumulators</A></H2><P>loops can also be used in expression position to accumulate values. The value of the implicit accumulator is returned when the loop terminates. </P><DL><DT><CODE><SPAN class="keyword"><<</SPAN>collect E<SPAN class="keyword">>></SPAN></CODE></DT><DD><P>adds element E at the end of the list being collected. Can be used together will <CODE>append</CODE></P></DD><DT><CODE><SPAN class="keyword"><<</SPAN>append L<SPAN class="keyword">>></SPAN></CODE></DT><DD><P>appends L at the end of the list being collected. Can be used together with <CODE>collect</CODE></P></DD><DT><CODE><SPAN class="keyword"><<</SPAN>count B<SPAN class="keyword">>></SPAN></CODE></DT><DD><P>if <CODE>B</CODE> is true, adds 1 to the accumulated counter. Can be used together with <CODE>sum</CODE></P></DD><DT><CODE><SPAN class="keyword"><<</SPAN>sum E<SPAN class="keyword">>></SPAN></CODE></DT><DD><P>adds <CODE>E</CODE> to the accumulated counter. Can be used together with <CODE>count</CODE></P></DD><DT><CODE><SPAN class="keyword"><<</SPAN>maximize E<SPAN class="keyword">>></SPAN></CODE></DT><DD><P>replaces the current accumulated value if <CODE>E</CODE> is greater</P></DD><DT><CODE><SPAN class="keyword"><<</SPAN>minimize E<SPAN class="keyword">>></SPAN></CODE></DT><DD><P>replaces the current accumulated value if <CODE>E</CODE> is smaller</P></DD></DL><P></P></DIV><TABLE align="center" border="0" cellpadding="6" cellspacing="6" class="nav"><TR bgcolor="#DDDDDD"><TD><A href="node7.html#section.loop.control"><< Prev</A></TD><TD><A href="node5.html">- Up -</A></TD></TR></TABLE><HR><ADDRESS><A href="http://www.ps.uni-sb.de/~duchier/">Denys Duchier</A><BR><SPAN class="version">Version 1.4.0 (20110908185330)</SPAN></ADDRESS></BODY></HTML>
|