Skip to content

Instantly share code, notes, and snippets.

View iwasdavid's full-sized avatar

Dave Lowe iwasdavid

View GitHub Profile
@iwasdavid
iwasdavid / functions.fs
Created May 8, 2019 19:43
F# functions
let addNameAgeAndAddress fname lname age town =
sprintf "Your name is %s %s and you are %i years old and you live in %s" fname lname age town
let addNameAgeAndAddress' fname lname =
(fun age town -> sprintf "Your name is %s %s and you are %i years old and you live in %s" fname lname age town)
@iwasdavid
iwasdavid / possible outputs
Last active March 6, 2019 11:26
sample.xsd
<Content>
<Blah>adasd</Blah>
<Stuff>asdadas</Stuff>
<Thing>asdasd</Thing>
<Other>asdadas</Other>
</Content>
<Content>
<Blah>adasd</Blah>
<Stuff>asdadas</Stuff>
@iwasdavid
iwasdavid / List.fsx
Last active February 23, 2019 09:46
Splitting list on specific word
let words = [
"Title"
"Some text"
"Some other text"
"Some text"
"Some other text"
"Title"
"Some text"
"Some other text"
"Title"