[racket] member et al.

From: Eli Barzilay (eli at barzilay.org)
Date: Thu Nov 11 13:49:08 EST 2010

10 minutes ago, Carl Eastlund wrote:
> 
> Is this about conditionals or lookups?

Conditionals.


> You started with (cdr (assq x alist)), and I don't see the
> conditional in that.

You didn't read far enough.


9 minutes ago, Neil Toronto wrote:
> Eli Barzilay wrote:
> > 
> > The above is "an example", substitute appropriately.
> 
> Do you have other examples in mind? Truthiness values are a
> substitute Maybe monad, so we could potentially find it anywhere
> Haskell types use Maybe.

That would be what I'd do to find more examples easily.  (Except that
I'd go to Ocaml or ML.)


> Truthiness values require nonlocal changes to deal with the None
> (#f) case, just like the Maybe monad does. Sounds like a good reason
> to avoid them,

And this conclusion is something I can't make any sense of, so I
declare this my stop and gett off this train.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!


Posted on the users mailing list.