I need to check if a list contains an element. There are 2 approaches as far as I could gather:
A: (define (member? e l) (not (null? (member e l)))) B: (define (member? e l) (any (lambda (x) (equal? x e)) l)) ;; using srfi-1 Which one do you seasoned CHICKEN'ers recommend in terms of performance and being idiomatic? TIA, -- Bahman Movaqar http://BahmanM.com - https://twitter.com/bahman__m https://github.com/bahmanm - https://gist.github.com/bahmanm PGP Key ID: 0x6AB5BD68 (keyserver2.pgp.com)
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Chicken-users mailing list Chicken-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/chicken-users