Now operate array is not very quick,such as contains function,remove item function
can't get from arry module.

template contains(T)
{
        bool contains(T[] Array,T Element)
        {
                foreach(T ArrayElement; Array)
                {
                        if(Element==ArrayElement)
                        {
                                return true;
                        }
                }
                return false;
        }
}

template remove(T)
{
        bool remove(T[] Array,T Element)
        {
                ?????
                return true;
        }
}

or

remove!("a == ?")(arr)

How to get the easy and quickly way?

Thank you.

Reply via email to