0% found this document useful (0 votes)
72 views1 page

Chapter 34: Strings 97: Examples 97

This document covers various Kotlin programming concepts across multiple chapters, including strings, type aliases, type-safe builders, vararg parameters, and visibility modifiers. It provides syntax examples and explanations for each concept, demonstrating string literals and templates, generic types, type-safe tree builders in Kotlin libraries, using the vararg keyword and spread operator to pass arrays into functions, and visibility modifiers for controlling access to classes and their members.

Uploaded by

abhijeet_sangwan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
72 views1 page

Chapter 34: Strings 97: Examples 97

This document covers various Kotlin programming concepts across multiple chapters, including strings, type aliases, type-safe builders, vararg parameters, and visibility modifiers. It provides syntax examples and explanations for each concept, demonstrating string literals and templates, generic types, type-safe tree builders in Kotlin libraries, using the vararg keyword and spread operator to pass arrays into functions, and visibility modifiers for controlling access to classes and their members.

Uploaded by

abhijeet_sangwan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Chapter 34: Strings 97

Examples 97

Elements of String 97

String Literals 97

String Templates 98

String Equality 98

Chapter 35: Type aliases 100

Introduction 100

Syntax 100

Remarks 100

Examples 100

Function type 100

Generic type 100

Chapter 36: Type-Safe Builders 101

Remarks 101

A typical structure of a type-safe builder 101

Type-safe builders in Kotlin libraries 101

Examples 101

Type-safe tree structure builder 101

Chapter 37: Vararg Parameters in Functions 103

Syntax 103

Examples 103

Basics: Using the vararg keyword 103

Spread Operator: Passing arrays into vararg functions 103

Chapter 38: Visibility Modifiers 105

Introduction 105

Syntax 105

Examples 105

Code Sample 105

Credits 106

You might also like