Arc Forumnew | comments | leaders | submitlogin
2 points by akkartik 4031 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 4030 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>)

-----