Created
October 11, 2013 00:45
-
-
Save waf/6927966 to your computer and use it in GitHub Desktop.
F# MSDN hackery
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
// Learn more about F# at http://fsharp.net | |
// See the 'F# Tutorial' project for more help. | |
open FSharp.Data | |
open System.Net | |
type msdnSchema = JsonProvider<"./SampleJson/TechNet.json"> | |
let downloader = new WebClient() | |
let toc = downloader.DownloadString("http://technet.microsoft.com/en-us/library/bb510741.aspx?toc=1") | |
let technet = | |
msdnSchema.Parse(toc) | |
|> Seq.filter (fun node -> node.ExtendedAttributes.DataTochassubtree) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment