/fs-157-tps.fs Secret
Created
May 8, 2018 17:10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System | |
open FSharp.Data | |
[<Literal>] | |
let url = @"https://en.wikipedia.org/wiki/Donald_Duck_filmography" | |
type DDFilms = HtmlProvider<url> | |
let printDuckFacts() = | |
let data = DDFilms.GetSample() | |
let lists = data.Lists | |
let name = lists.``Disney home entertainment``.Name | |
let disneyHomeEntertainmentFilms = lists.``Disney home entertainment``.Values | |
printfn "%s\n%A" name disneyHomeEntertainmentFilms | |
[<EntryPoint>] | |
let main argv = | |
printDuckFacts() | |
0 // return an integer exit code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment