fasquoika
Joined 9 years ago
Joined 9 years ago
Y = λf.(λx.f(xx))(λx.f(xx))
https://en.m.wikipedia.org/wiki/Fixed-point_combinator struct ParsedFile {
contents: Vec<u8>,
words: Vec<(usize, usize)>
}
>This works well, and you can make it ergonomic by wrapping the index pair in a new typeYou should probably just use the std::ops::Range type for this. It's what's created by the `..` syntax
https://elephly.net/posts/2017-01-09-bootstrapping-haskell-p...
>It seems that someone asked the great anthropologist, Margaret Mead, “What is the first sign you look for to tell of an ancient civilization?” The interviewer had in mind a tool or article of clothing. Ms. Mead surprised him by answering, “a healed femur (thigh bone)”. When someone breaks a femur, they can’t survive to hunt, fish or escape enemies unless they have help from someone else. Thus, a healed femur indicates that someone else helped that person, rather than abandoning them and saving only themselves.