package
Version:
v0.0.0-...-2ff796e
Opens a new window with list of versions in this module.
Published: May 6, 2024
License: MPL-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Env struct {
Binds []int
Outer *Env
}
interpreted version of:
func collatz(n int) {
for n > 1 {
if n&1 != 0 {
n = ((n * 3) + 1) / 2
} else {
n = n / 2
}
}
}
interpreted version of:
func fibonacci(n int) int {
if (n <= 2) {
return 1
}
return fibonacci(n-1) + fibonacci(n-2)
}
interpreted version of:
func sum(n int) int {
total := 0
for i := 1; i <= n; i++ {
total += i
}
return total
}
type SReturnInt struct {
}
func Block(list ...X0) X0
Source Files
¶
Click to show internal directories.
Click to hide internal directories.