HS format userdata
Converts a moho data type to a string for diagnostic / display purposes
function HS_formatUserData (...)
--
-- ** version 1.1 Sept 9 2021
--
-- calling protocol: string = HS_formatUserData (v1, v2, ...vn)
-- where v is any expression or variable including moho userdata types or
-- {"string", v} where "string" is prefixed to the formatted v or
-- {"-string", v where "string" is suffixed to the formatted v
--
-- the data is interpreted as far as is possible which includes just recognising that the data item is (e.g.) an LM_Matrix
-- all the way through to (e.g.) formatting vectors as {x, y, z}
--
-- string is a "print ready" text string, with line breaks every 130-ish characters
--
--
--
-- ** version 1.1 Sept 9 2021
--
-- calling protocol: string = HS_formatUserData (v1, v2, ...vn)
-- where v is any expression or variable including moho userdata types or
-- {"string", v} where "string" is prefixed to the formatted v or
-- {"-string", v where "string" is suffixed to the formatted v
--
-- the data is interpreted as far as is possible which includes just recognising that the data item is (e.g.) an LM_Matrix
-- all the way through to (e.g.) formatting vectors as {x, y, z}
--
-- string is a "print ready" text string, with line breaks every 130-ish characters
--
--