Write a recursive ML function that uses pattern matching with name/type ?optconcat : char option list? -> string that inpu
Need help with this assignment?Get an original answer from a qualified tutor — from $10/page.
Get it written → Write a recursive ML function that uses pattern matching with name/type
optconcat : char option list -> string
that inputs a list of char options, and returns a single string consisting of all characters on the list concatenated together while ignoring any instances of NONE. For example,
- optconcat([SOME #"b",NONE,SOME #"o",SOME #"o",NONE]);
val it = "boo" : string
- optconcat([NONE,NONE]);
val it = "" : string
Get a plagiarism-free answer to this question
Send us your instructions and we’ll match you with the best writer in your subject.
- 100% human-written, zero AI
- Turnitin report included
- Confidential — we never share your data
- Free revisions & refunds