Arc Forumnew | comments | leaders | submitlogin
1 point by ly47 5141 days ago | link | parent

Hi Thanks. 'keep is good but it does not work with my code as I use a loacl function inside before using 'keep. So what to use instead of labels or flet in ARC ? Thanks again ly


4 points by waterhouse 5141 days ago | link

Like this?

  ; Common Lisp:
  (flet ((f (x y)
           (blah blah x y)))
    (remove-if-not f xs))

  ; Arc:
  (let f (fn (x y)
           (blah blah x y))
    (keep f xs))

-----

1 point by ly47 5141 days ago | link

Hi Yes it works !!! Thanks ly

-----