On Fri, 14 Aug 2009, Krzysztof Cieniuch wrote:

> Hi,
>
> Short question as in subject does filter function preserves original  
> elements order
> I did some tests like:
> org:= a b c d e
> res:=$(filter a d c,$(org))
> $(info $(res))
>
> and this prints  a c d so it looks like it preserves order but can I  
> relay on that
> or is this just coincidence in my simple example ?
>
If you need to rely on order then simply use sort to ensure lexical 
order - then you don't need to bother with possible implementation 
details (the info page does not say anything about preserving order)

hofrat


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to