Is there a program in that screen shot? I can't read it, the text (if that's what it is) is way to small. Could you just copy the text and paste it here?

Van Johnson

Greenhorn

Posts: 7

posted 3 years ago

I don't know how to get the text info out of the Emacs window that SML is running in (can't copy w/ normal windows commands), and I'm too tired to write it in note pad right now. However I'm able to click on the screenshot and enlarge the view and it is quite viewable for me. Thanks for responding!

is attempting to perform a less than operation on two int list types. This is the source of your error.

Given the timing and the fact that I recognise the function I assume that you are working on Dan Grossman's Programming Languages course on Coursera? I am also doing this course so best of luck with it, and if you get my assignment for peer review please be kind....

If this function is for the assignment then you might want to review the function signature requirements as I think as it stands your function will fail the auto grader. The required signature is:

and your current signature is

Tim Driven Development

Van Johnson

Greenhorn

Posts: 7

posted 3 years ago

Thanks a lot for the help. I looked everywhere for how to define a tuple in an function and couldn't find it anywhere. You've saved me a lot of frustration. Now to try it out...
Yes this is for Grossman's PL class, but I'm pretty far behind because of time constraints so I probably won't be doing any peer assessments. I'm so glad I found a good site to ask for help.

Van Johnson

Greenhorn

Posts: 7

posted 3 years ago

OK, I guess I just don't know how to access the items in a tuple. It seems that the 'tl' command can't be used on a tuple, is that right?. Attached is another try at making the function work, along with error messages. Thanks again for any help I may receive.

Van Johnson wrote:I don't know how to get the text info out of the Emacs window that SML is running in (can't copy w/ normal windows commands)

If you need to do this again, there is an easy way. Navigate to the directory containing the file in finder, right click the sml file and open in NotePad or TextEdit or whatever the plain text editor is on your system.