File: bench.07.jsonnet

package info (click to toggle)
jsonnet 0.20.0%2Bds-3.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,376 kB
  • sloc: cpp: 66,583; ansic: 8,227; python: 2,833; sh: 1,948; javascript: 1,417; makefile: 197; java: 140
file content (6 lines) | stat: -rw-r--r-- 157 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
local f2(f) = function(x) f(f(x));
local id(x) = x;

local slowId = std.makeArray(20, function(i) if i == 0 then id else f2(slowId[i - 1]));

slowId[15](42)