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")
This file contains hidden or 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
// 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 { |
OlderNewer