Nuprl Definition : remove-combine

remove-combine(cmp;l) ==
  rec-case(l) of
  [] => []
  a::as =>
   v.eval tst cmp in
     if (tst =z 0) then as
     if 0 <tst then [a as]
     else [a v]

Definitions occuring in Statement :  list_ind: list_ind cons: [a b] nil: [] callbyvalue: callbyvalue ifthenelse: if then else fi  lt_int: i <j eq_int: (i =z j) apply: a natural_number: $n
Definitions occuring in definition :  list_ind: list_ind nil: [] callbyvalue: callbyvalue apply: a eq_int: (i =z j) ifthenelse: if then else fi  lt_int: i <j natural_number: $n cons: [a b]
FDL editor aliases :  remove-combine

remove-combine(cmp;l)  ==
    rec-case(l)  of
    []  =>  []
    a::as  =>
      v.eval  tst  =  cmp  a  in
          if  (tst  =\msubz{}  0)  then  as
          if  0  <z  tst  then  [a  /  as]
          else  [a  /  v]

Date html generated: 2016_05_14-PM-02_41_55
Last ObjectModification: 2015_09_22-PM-05_57_19

Theory : list_1

Home Index