<commit_before>package net.emaze.dysfunctional.casts;

import net.emaze.dysfunctional.dispatching.delegates.Delegate;

/**
 * Casts a value.
 *
 * Usually composed with other functors to make the simulate covaraiant /
 * controvariant types.
 *
 * <pre> E.g:
 *   final Delegate<Integer, Integer> source = new Identity<Integer>();
 *   final Delegate<Number, Integer> got = Applications.compose(new Vary<Number, Integer>(), source);
 * </pre>
 *
 * @author rferranti<commit_msg>fix: javadoc not aligned with actual compose method location<commit_after>package net.emaze.dysfunctional.casts;

import net.emaze.dysfunctional.dispatching.delegates.Delegate;

/**
 * Casts a value.
 *
 * Usually composed with other functors to make the simulate covaraiant /
 * controvariant types.
 *
 * <pre> E.g:
 *   final Delegate<Integer, Integer> source = new Identity<Integer>();
 *   final Delegate<Number, Integer> got = Compositions.compose(new Vary<Number, Integer>(), source);
 * </pre>
 *
 * @author rferranti
{'fraction_non_alphanumeric': 0.1226321036889332, 'fraction_numerical': 0.0, 'mean_word_length': 4.672316384180791, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '5559013', 'n_tokens_mistral': 325, 'n_tokens_neox': 307, 'n_words': 83}