Interactive 3D world for level 4.8. Hold Control or Command and drag to orbit or scroll to zoom. Touch users can drag or pinch.

Ctrl / ⌘ + drag to orbit · Ctrl / ⌘ + scroll to zoomDrag to orbit · Pinch to zoom

LESSON 4.8

Functions That Take Functions

A function can receive another function as a parameter. The type Fn(Int32) => Int32 means it takes an Int32 and returns an Int32 .

Goal Update apply_twice so it applies its function two times. The triple lambda with 2 should produce 18, inc with 5 should produce 7, and the square lambda with 3 should produce 81.

Write a Zirk program, then run it to see the world react.
Sound unavailable in this browser