On 20/06/2013 23:02, Sergii Dymchenko wrote: > Hi, > > I've noticed that now flatten_array/2 is deprecated. > I use it often, but really just to convert a 1-d array to a list. > That is the recommended way to do it? > `flatten_array(Array, List)` is so concise. Hi Sergii, I also noticed that flatten_array/2 is used in quite a lot of code, including examples and contributed libraries, so I've now removed this deprecation warning again, starting version 6.1#160. The motivation to deprecate it was mainly the ambiguity in treating occurrences of [] inside the array (empty array or normal element?). Note that there are a few new built-in predicates with cleaner design: http://www.eclipseclp.org/doc/bips/kernel/termmanip/array_list-2.html http://www.eclipseclp.org/doc/bips/kernel/termmanip/array_flat-3.html Cheers, JoachimReceived on Fri Jun 21 2013 - 10:07:35 CEST
This archive was generated by hypermail 2.3.0 : Wed Sep 25 2024 - 15:13:20 CEST