computationbook
computationbook copied to clipboard
Example code for Understanding Computation
Results
2
computationbook issues
Sort by
recently updated
recently updated
newest added
`Add` class as example change ```ruby class Add def reduce(environment) if left.reducible? Add.new(left.reduce(environment), right) elsif right.reducible? Add.new(left, right.reduce(environment)) else Number.new(left.value + right.value) end end end ``` to ```ruby class Add...
Since the book "Understanding Computation" always mentions `>>` prompt for Ruby's interactive console, it should be more precise to take option `--simple-prompt`.