Le 23/11/2011 18:28, David Baelde a écrit : > On Tue, Nov 22, 2011 at 9:41 AM, Martin Hamant<[email protected]> wrote: >> removing for source id: >> 6d7d15f1-e4fb-4f92-b902-d9630470b3f5 >> ref([("6d7d15f1-e4fb-4f92-b902-d9630470b3f5","http://martin-virtualbox/titles")]) >> ref([("6d7d15f1-e4fb-4f92-b902-d9630470b3f5","http://martin-virtualbox/titles")]) > OK, this is a bug. I could reproduce by using the primitive > list.remove(2,[2]) == [2]... Sorry about that. Please file a bug > report. My guess is that it relies on physical equality rather than > structural one. > > In the meantime, here's a better implementation (straightforward, but > there might be typos...): > list.remove_assoc = > fun(x,l) -> list.fold_left(fun(l,y)->if fst(y)==x then l else > list.append([y],l) end,[],l) fold_left() ? What is that ? Can I redefine remove_assoc directly in my script ?
I am going to fill a bug report :) Thanks David ! ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
