2

How to convert a list to a string in Oz?

I have a list of characters I need to convert to a string and I didn't see any concatenation operator in the Oz documentation.

The Unfun Cat
  • 29,987
  • 31
  • 114
  • 156
el diablo
  • 2,647
  • 2
  • 20
  • 22

3 Answers3

3

A list of characters is a string in oz. [102 111 111] is the same as "foo".

sepp2k
  • 363,768
  • 54
  • 674
  • 675
1

To see the string in the browser and not the list, open the browser with a Browse and choose Options/Representations and enable Strings.

Benoît Legat
  • 958
  • 1
  • 8
  • 10
0

You can't because a string is a list of characters. However, 'hello' is not a string in oz, but "hello" is.

Esteban
  • 101
  • 3
  • 6