Arc Forumnew | comments | leaders | submitlogin
2 points by akkartik 4067 days ago | link | parent

Hmm, so how is one expected to check for list membership in arc? Ah, this would seem to be the canonical idiom:

  (aif (mem f seq)
    <operate on car.it>)


2 points by rocketnia 4066 days ago | link

Oh, very nice! ^_^ I remember using this a few times, but yours looks much better:

  (aif (pos f seq)
    <operate on seq.it>)

-----