<commit_before>"use strict";


/**
 * @name if else
 * @type first class function
 * @example

   const ifElse = x => y => z => z ? x : y;
   const ifElse_ = z => x => y => z ? x : y;

   const eq = x => y => Object.is(x, y);
   const fooBar = ifElse("foo") ("bar");
   const pred = ifElse_(eq(2) (3))
   
   fooBar(eq(2) (2)); // "foo"
   pred("foo") ("bar"); // "bar"

 */


// a -> a -> Boolean -> a
const ifElse = x => y => z => z ? x : y;<commit_msg>Version 0.1.35<commit_after>"use strict";


/**
 * @name if else
 * @note lazy conditional expression
 * @type first class function
 * @example

   const ifElse = x => y => z => z ? x : y;
   const ifElse_ = z => x => y => z ? x : y;

   const eq = x => y => Object.is(x, y);
   const fooBar = ifElse("foo") ("bar");
   const pred = ifElse_(eq(2) (3))
   
   fooBar(eq(2) (2)); // "foo"
   pred("foo") ("bar"); // "bar"

 */


// a -> a -> Boolean -> a
const ifElse = x => y => z => z ? x : y;
{'fraction_non_alphanumeric': 0.22784810126582278, 'fraction_numerical': 0.012658227848101266, 'mean_word_length': 2.295138888888889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 31, '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': '599954', 'n_tokens_mistral': 384, 'n_tokens_neox': 359, 'n_words': 120}