The operators / methods -- and - in the list are out of date.
--
-
For -- we get: "Deprecated: use list1 filterNot (list2 contains) instead"
list1 filterNot (list2 contains)
The proposed use is detailed. Why refuse operators?
I found that -- really is a difference operator, which logically refers to Set , not List . For this reason -- does not become obsolete on Set .
Set
List
For List filter operation makes more sense. So it could just be a logical sequence.
Source: https://habr.com/ru/post/1344233/More articles:Object Oriented PHP with Keywords Interface, Extends, Implements - oopHow are user-level threads better than a sequential process? - multithreadingShow categories on Magento homepage - magentoBest option for retrieving Anaylysis Services (SSAS) cube data dynamically in ASP.NET MVC - asp.net-mvchttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1344232/iasyncrepository-or-iobservablerepository-for-silverlight-4-wcf-data-services&usg=ALkJrhiSaAEBDsBNtA7t3cP2eMrvQnsQoAThe tough question is .net - .netSymfony / Doctrine: fetching data as an object - databaseChange the current animation - iosZend Mailer Error "From the header twice" - emailYii Condition - phpAll Articles