<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">kmerge ((x,[y]):[]) = [(x,[y])]<br></blockquote><div><br>Matching on [y] like this will only match lists with a single element (and bind y to that element).&nbsp; You probably just want to say 
<br><br>kmerge ((x,y):[]) = [(x,y)]<br><br>etc., which will bind y to the entire list.<br><br>-Brent<br></div></div><br>