&#8209;&gt;&nbsp;<span class="type">Bool</span>,</span> <span style="white-space:nowrap">manhatten:<span class="type">Bool</span> = false</span>):<span class="type">Int</span></code></h3><div class="doc"><p>Counts the number of neighbors at column <code>x</code> and row <code>y</code>, calling <code>f</code> on all adjacent cells.
if <code>manhatten</code> is true, only counts in 4 directions (N,S,W,E), otherwise 8 (NW,N,NE,W,E,SW,S,SE).</p>
<p>Example:</p>
<pre><code>var a = new Array2&lt;Int&gt;(3, 3);
a.