// RuneListToString creates a string from a linked list of runes.
// If any of the elements is not a rune, the function panics.
// The function takes O(n).
RuneListToString creates a string from a linked list of runes.
If any of the elements is not a rune, the function panics.
The function takes O(n).
// RuneListToString creates a string from a linked list of runes . // If any of the elements is not a rune the function panics . // The function takes O ( n ) .
func RuneListToString(l *list.List) string {
	if l == nil || l.Front() == nil {
		return ""
	}
	var line strings.Builder
	e := l.Front()
	for e != l.Back() {
		line.WriteRune(e.Value.(rune))
		e = e.Next()
	}
	line.WriteRune(e.Value.(rune))
	return line.String()
}
func RuneListToString ( l * list . List ) string { if l == nil || l . Front ( ) == nil { return " " } var line strings . Builder e := l . Front ( ) for e != l . Back ( ) { line . WriteRune ( e . Value . ( rune ) ) e = e . Next ( ) } line . WriteRune ( e . Value . ( rune ) ) return line . String ( ) }
RuneListToString creates a string from a linked list of runes.
RuneListToString creates a string from a linked list of runes .