git.delta.rocks / jrsonnet / refs/commits / f1b79348e232

difftreelog

source

tests/cpp_benchmarks/bench.02.jsonnet735 Bsourcehistory
1/*2Copyright 2015 Google Inc. All rights reserved.34Licensed under the Apache License, Version 2.0 (the "License");5you may not use this file except in compliance with the License.6You may obtain a copy of the License at78    http://www.apache.org/licenses/LICENSE-2.0910Unless required by applicable law or agreed to in writing, software11distributed under the License is distributed on an "AS IS" BASIS,12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13See the License for the specific language governing permissions and14limitations under the License.15*/1617local Fib = {18  n: 1,19  local outer = self,20  r: if self.n <= 1 then 1 else (Fib { n: outer.n - 1 }).r + (Fib { n: outer.n - 2 }).r,21};2223(Fib { n: 25 }).r