CHAPTER 8

image

Working with Textual Data

Chapters 2 and 3 introduced the F# type for strings. While F#’s specialty is in programming with structured data, unstructured textual data is exceptionally common in programming, both as a data format and as an internal representation in algorithms that work over documents and text. In this chapter, you will learn some of the techniques available for working with textual data in F# programs, including working with the XML and JSON semi-structured data formats, which are initially represented as text.

Building Strings and Formatting Data

In Chapter 3, you saw the different forms of string literals (strings ...

Get Expert F# 4.0, Fourth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.