AI authored to showcase ironpad capabilities.
ironpad is an interactive Rust notebook that compiles each cell to WebAssembly and runs it in your browser.
[1, 1, 2, 3, 5, 8, 13, 21]
Each code cell's output is available in later cells as a typed variable:
cell0, cell1, ...: by cell index (only counting code cells)last: alias for the most recent code cell's outputThe variables are strongly typed: the compiler knows their Rust types!
The 8 Fibonacci numbers sum to 54
Cells can output more than just text. Use Html(...) for HTML or Svg(...) for SVG graphics.
You can even combine multiple outputs using tuples!
This is rich HTML output ๐จ
Sum from previous cell: The 8 Fibonacci numbers sum to 54