Operators
TaskValidation Infix Operators
Examples
Example 1
type Latitude = private Latitude of float with
// float -> Task<Result<Latitude, string list>>
static member TryCreate (lat : float) =
// ...
type Longitude = private Longitude of float with
// float -> Task<Result<Longitude, string list>>
static member TryCreate (lng : float) =
// ...
type Tweet = private Tweet of string with
// string -> Task<Result<Tweet, string list>>
static member TryCreate (tweet : string) =
// ...
// Latitude -> Longitude -> Tweet -> CreatePostRequest
let createPostRequest lat long tweet =
// ...Example 2
Last updated