From 8befce1cbe7d9e6c9b9175be62af1dbacbcd08f1 Mon Sep 17 00:00:00 2001 From: Simon Brooke Date: Wed, 23 Jan 2019 19:10:29 +0000 Subject: [PATCH] Created homogeneity (markdown) --- homogeneity.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 homogeneity.md diff --git a/homogeneity.md b/homogeneity.md new file mode 100644 index 0000000..064585a --- /dev/null +++ b/homogeneity.md @@ -0,0 +1,6 @@ +A homogeneity is a [[regularity]] which has a validation funtion associated with each key. A member can only be added to a homogeneity if not only does it have all the required keys, but the value of each key in the candidate member satisfies the validation function for that key. For example, the validation function for the age of a person might be something like + +``` +(fn [value] + (and (integer? value) (positive? value) (< value 140))) +``` \ No newline at end of file