Subject: Re: [xsl] Use pure XPath to test a sequence for being a valid Fibonacci sequence From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Wed, 31 Jan 2007 22:36:25 +0100 |
Michael Kay wrote:
$fib[1] = 0 and $fib[2] = 1 and
every $i in 2 to count($fib) satisfies
$fib[$i] = $fib[$i - 1] + $fib[$i - 2]
Aha! (erlebnis)
$fib[1] = 0 and $fib[2] = 1 and (every $i in 3 to count($fib) satisfies $fib[$i] = $fib[$i - 1] + $fib[$i - 2])
every $i in 1 to count($fib) satisfies $fib[$i] = (0, $fib)[$i] + (0, 1, $fib)[$i]
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Use pure XPath to test a , Abel Braaksma | Thread | Re: [xsl] Use pure XPath to test a , Florent Georges |
Re: [xsl] Input requested for a goo, Rashmi Rubdi | Date | Re: [xsl] Use pure XPath to test a , Florent Georges |
Month |