Skip to content

Instantly share code, notes, and snippets.

View rudolph9's full-sized avatar

Kurt Robert Rudolph rudolph9

  • Portland, OR, USA
View GitHub Profile
@rudolph9
rudolph9 / scratch.md
Last active June 10, 2020 17:04
Haskell intro stuff

Detailed explination

Prelude Data.String> foldr (\acc x -> x ++ acc ) "a" (map (:[]) "12345")
"a54321"
Prelude Data.String> foldl (\acc x -> x ++ acc ) "a" (map (:[]) "12345")
"54321a"
Prelude Data.String> scanr (\acc x -> x ++ acc ) "a" (map (:[]) "12345")
["a54321","a5432","a543","a54","a5","a"]
Prelude Data.String> scanl (\acc x -> x ++ acc ) "a" (map (:[]) "12345")
@rudolph9
rudolph9 / README.md
Last active July 13, 2020 18:59
Resume

Kurt Rudolph Resume

@rudolph9
rudolph9 / currency.cue
Last active July 28, 2020 16:01
Currency conversion
// cue v0.3.0-alpha1
given: {
INC: USD: v: 2.0
USD: GBP: v: 3.0
}
_hydrated: given & {
for k, v in given
for _, v1 in given
for k2, _ in v1 {