Sha256: 173ed243a4e4c1fc8af944bc1afd38088459ea67f73e2f84915a36e00b66cf69
Contents?: true
Size: 530 Bytes
Versions: 382
Compression:
Stored size: 530 Bytes
Contents
## Hints To complete this exercise, you need to create the data type `ForthState` and implement the following functions: - `empty` returns an empty `ForthState`. - `evalText` evaluates an input Text, returning the new state. - `toList` returns the current stack as a list, with the element on top of the stack being the rightmost (last) element. You will find a dummy data declaration and type signatures already in place, but it is up to you to define the functions and create a meaningful data type, newtype or type synonym.
Version data entries
382 entries across 382 versions & 1 rubygems