TranscriptSamplesModule
PackageFsLiveDocs.Core
Summary
| Name | Signature | Synopsis |
|---|---|---|
| mapTranscriptExample | mapTranscriptExample () | A transcript example that demonstrates multiline FSI input. |
A transcript example that demonstrates multiline FSI input.
Parameters
| Name | Type | Description |
|---|---|---|
| () | unit |
Returns
unit
Verification Examples
MapTranscript
> let m = Map [("a", "1")];;
val m: Map<string,string> = map [("a", "1")]
> m |> Map.tryFind "b";;
val it: string option = None
> m |> Map.tryFind "a";;
val it: string option = Some "1"
> let updatedA = m |> Map.add "b" "2";;
val updatedA: Map<string,string> = map [("a", "1"); ("b", "2")]
> updatedA |> Map.tryFind "b";;
val it: string option = Some "2"