Equation or not?
|
02-24-2017, 11:34 PM
(This post was last modified: 02-24-2017 11:46 PM by EdDereDdE.)
Post: #6
|
|||
|
|||
RE: Equation or not?
In fact you need only to check for
a) presence of "=" and then b) exclusion of the special cases ">=", "=>", "<=", "=<" This function is pretty fast, as it removes most "useless" elements on the first step, even if you got a mega long list at first. Neither explicit, interpreted loops nor sigma, etc. required either Please be aware of the CAS("") enclosure ... Note: implicit engine loops (here in the "remove") are always faster than interpreted "for ..." loops, aren't they? EXPORT getEq(el) BEGIN LOCAL eq:="=",ls:="<",gt:=">"; RETURN CAS(" remove((x)→((INSTRING(x,gt))), remove((x)→((INSTRING(x,ls))), remove((x)→(0==(INSTRING(x,eq))),el) )) "); END; |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Equation or not? - DrD - 02-24-2017, 02:50 PM
RE: Equation or not? - Han - 02-24-2017, 03:59 PM
RE: Equation or not? - DrD - 02-24-2017, 04:22 PM
RE: Equation or not? - Han - 02-24-2017, 04:37 PM
RE: Equation or not? - Didier Lachieze - 02-24-2017, 08:02 PM
RE: Equation or not? - EdDereDdE - 02-24-2017 11:34 PM
RE: Equation or not? - Didier Lachieze - 02-25-2017, 09:31 AM
RE: Equation or not? - DrD - 02-25-2017, 11:03 AM
RE: Equation or not? - Arno K - 02-28-2017, 10:32 PM
RE: Equation or not? - Han - 03-01-2017, 12:23 AM
RE: Equation or not? - Arno K - 03-01-2017, 08:01 AM
RE: Equation or not? - Han - 03-01-2017, 04:04 PM
RE: Equation or not? - Arno K - 03-01-2017, 07:15 PM
RE: Equation or not? - Han - 03-01-2017, 07:22 PM
RE: Equation or not? - parisse - 03-02-2017, 07:35 AM
RE: Equation or not? - DrD - 03-02-2017, 12:31 PM
|
User(s) browsing this thread: 1 Guest(s)