<commit_before>const C = c => () => c;
const I = () => i => i;

// the core def
const T = x => y => x;
const F = x => y => y;

const NOT = b => b(F)(T);
// const AND = b1 => b2 => b1(b2)(F);
const AND = b1 => b1(b2 => b2(T)(F))(F);
const OR = b1 => b2 => NOT(AND(NOT(b1))(NOT(b2)));


NOT(T) == F;
NOT(F) == T;
NOT(NOT(T)) == T;

AND(T)(T) == T;
AND(T)(NOT(T)) == F;<commit_msg>Make the 1st version lambda easier.<commit_after>// the core def
const T = x => y => x;
const F = x => y => y;

const NOT = b => b(F)(T);
const AND = b1 => b2 => b1(b2)(F);
const OR = b1 => b2 => NOT(AND(NOT(b1))(NOT(b2)));


NOT(T) == F;
NOT(F) == T;
NOT(NOT(T)) == T;

AND(T)(T) == T;
AND(T)(NOT(T)) == F;
{'fraction_non_alphanumeric': 0.2934306569343066, 'fraction_numerical': 0.030656934306569343, 'mean_word_length': 3.3144654088050314, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2042941', 'n_tokens_mistral': 331, 'n_tokens_neox': 326, 'n_words': 92}