Use pattern to find minimum without using min
- To: mathgroup at smc.vnet.net
- Subject: [mg71808] Use pattern to find minimum without using min
- From: "wooks" <wookiz at hotmail.com>
- Date: Thu, 30 Nov 2006 06:04:57 -0500 (EST)
Tried {9, 4, 6, 5, 3, 7} //. {a___, b_, c___, d_, e___} :> b /; (b < d) and {9, 4, 6, 5, 3, 7} //. {x_,y_,z___} :> {x,z} /; (x<y) without much success.