Wafl Home

Primitive Data Types Tutorial

Function strLen

String function strLen(x) computes the length of the string x.

It is important to understand that string x may include any characters, and that characters with ASCII code zero are not handled as string terminals. Thus, String type includes not only character strings, but, also, byte strings.

Source code:

{#
strLen( "a\0b" ),
strLen( "abc" )
#}

Result:

{# 3, 3 #}

 

Table of Contents

Let's Start

Program Structure

Primitive Data Types

List

Tuple

Record

HTML

Command Line Interpreter

Using Web Servers

Syntax

Examples

Tips

The most of examples evaluates with both command line and Web server Wafl interpreters. If any example is based on specific features of an interpreter, it is explicitly annotated.