<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Apr 25, 2014 at 12:12 AM, D G <span dir="ltr">&lt;<a href="mailto:mami.music@gmail.com" target="_blank">mami.music@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>I will check [listtool] and [ptrdiff_t]<br>
</div></div>
</div></div></div></div></div></blockquote></div><div dir="ltr"><br></div><div>D - my apologies, &quot;ptrdiff_t&quot; was a C joke: it&#39;s just the type that a C compiler would assign to the difference between two pd array variables (as pointers).  it&#39;s neither a pd internal nor external object, and its only meaning is in terms of memory addresses; so it&#39;s probably not what you&#39;re looking for.  if you&#39;re talking not just about arrays of numeric values but also symbols, you might have to turn to python or lua to compute something like the Levenshtein distance (aka &quot;string edit distance&quot;).  if your argument arrays are always the same length, you can probably twiddle together a fairly simple Pd patch to compute the Hamming distance.</div>
<div><br></div><div>marmosets,</div><div>  Bryan</div>
</div></div>