Explore BrainMass
Share

An example of composing string functions

This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

Suppose f is a function that returns the result of reversing the string of symbols given as its input, and g is a function that returns the concatenation of the two strings given as its input. If x is the string hrwa, what is returned by g(f(x),x)? Explain your answer - don't just provide the result!

© BrainMass Inc. brainmass.com March 21, 2019, 7:14 pm ad1c9bdddf
https://brainmass.com/computer-science/algorithms/an-example-of-composing-string-functions-284778

Solution Preview

The function f(x) will reverse a string of characters. So if the
string "abc" is given the result will be ...

Solution Summary

This solution provides a detailed explanation of the evaluation of two string functions.

$2.19