Re: rightTree[tree[_, _, right_]] := right Hu?
- To: mathgroup at smc.vnet.net
- Subject: [mg38013] Re: rightTree[tree[_, _, right_]] := right Hu?
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Tue, 26 Nov 2002 00:48:32 -0500 (EST)
- Organization: Universitaet Leipzig
- References: <arshqs$ea1$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
- Sender: owner-wri-mathgroup at wolfram.com
Hi, this mean: if someone wish the right branch of a tree[] it does not matter what is in the left branch of the tree or in the tree's node. Regards Jens "Steven T. Hatton" wrote: > > I found this: > rightTree[tree[_, _, right_]] := right > > in Dr. Mäder's Computer Science with Mathematica. I understand the spirit of > the statement, but it looks rather strange to me. Is there a way of > describing, in a language such as English, exactly what this definition > means? The part that I find confusing is the inclusion of what looks like a > function call in the parameter list. This simply defies my sense of how > programming languages work. That doesn't mean it's a bad thing. It just > means that I don't feel comfortable with the syntax. > > Is there somewhere in the Mathematica Book , or Help which discusses such > arcana? > > -- > STH > Hatton's Law: > "There is only One inviolable Law."