Computer Science
Assignment on SML programming language
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
Don't use plagiarized sources. Get Your Custom Essay on
Assignment on SML programming language
Just from $13/Page
– optconcat([NONE,NONE]);
val it = “” : string
Programming