XQuery Fibonacci
✓ Published0🌍 Public
CCliffordAnderson
Last edited Feb 18, 2017
Created on Feb 18, 2017
This example computes the 30th Fibonacci number using a recursive XQuery function defined in a separate module. It demonstrates XQuery 3.1’s switch expression and integer arithmetic through the `local:fib` function, which calls itself until it reaches the base cases of 0 and 1. The final result is returned directly without any visualization, showing a pure server-side computation. The source code is stored as a gist by CliffordAnderson.
AI-generated description