Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Exercise: Reverse Polish Calculator

  • Implement a reverse polish calculator.

Examples:

go run rpc.go "2 7 + =" 
9
go run rpc.go "2.1 7.2 - =" 
-5.1
go run rpc.go "7 2 / =" 
3.5
go run rpc.go "2 3 5 + * ="
16