<commit_before>/**
 * Monad
 * =====
 *
 * Monad is just a monoid in the endofunctor category, what's the problem?
 *
 * The following code might be wrong actually ;)
 */

#include <functional>

#define 𝓒 typename

template <𝓒> struct Applicative {
  template <𝓒 𝕏, 𝓒 𝕐> static Applicative<𝕐(𝕏)> Pure(std::function<𝕐(𝕏)> x);

  template <𝓒 𝕏, 𝓒 𝕐>
  static Applicative<𝕐> Seq(Applicative<𝕏> a, Applicative<𝕐(𝕏)> f);
};
<commit_msg>[ type ] Update Monad: Fix Pure definition<commit_after>/**
 * Monad
 * =====
 *
 * Monad is just a monoid in the endofunctor category, what's the problem?
 *
 * The following code might be wrong actually ;)
 */

#include <functional>

#define 𝓒 typename

template <𝓒> struct Applicative {
  template <𝓒 𝕏> static Applicative<𝕏> Pure(𝕏 x);

  template <𝓒 𝕏, 𝓒 𝕐>
  static Applicative<𝕐> Seq(Applicative<𝕏> a, Applicative<𝕐(𝕏)> f);
};

{'fraction_non_alphanumeric': 0.14104046242774568, 'fraction_numerical': 0.0, 'mean_word_length': 4.216867469879518, 'pattern_counts': {'":': 0, '<': 20, '<?xml version=': 0, '>': 20, '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': '5471847', 'n_tokens_mistral': 425, 'n_tokens_neox': 402, 'n_words': 104}