Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a function t_charcount that takes a string tree as input and counts the total number of characters that the values contain. This is the
Write a function t_charcount that takes a string tree as input and counts the total number of characters that the values contain. This is the function's type:
t_charcount : string tree -> int
Example: t_charcount t3 gives 11.
write a function t_concat that will concatenate together the values of a string tree. The function's type is here:
t_concat : string tree -> string
(program in ocaml)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started