1Data::Password::zxcvbn:U:sCeormbCionnattroirbiuctse(d3D)Paetral::DPoacsusmweonrtda:t:izoxncvbn::Combinatorics(3)
2
3
4

NAME

6       Data::Password::zxcvbn::Combinatorics - some combinatorial functions
7

VERSION

9       version 1.1.2
10

DESCRIPTION

12       This module provides a few combinatorial functions that are used
13       throughout the library.
14

FUNCTIONS

16   "nCk"
17         my $combinations = nCk($available,$taken);
18
19       Returns the binomial coefficient:
20
21        / $available \
22        |            |
23        \   $taken   /
24
25   "enumerate_substitution_maps"
26        my $enumeration = enumerate_substitution_maps(\%substitutions);
27
28       Given a hashref of arrayrefs, interprets it as a map of substitutions.
29       Returns an arrayref of hashrefs, containing all reverse-substitutions.
30
31       For example, given:
32
33        {'a' => ['@', '4']}
34
35       ("'a' can be replaced with either '@' or '4'")
36
37       it returns:
38
39         [{'@' => 'a'}, {'4' => 'a'}] ],
40
41       ("in one case, '@' could have been substituted for 'a'; in the other,
42       '4' could have been substituted for 'a'")
43
44   "factorial"
45         my $fact = factorial($number);
46
47       Returns the factorial of the given number.
48

AUTHOR

50       Gianni Ceccarelli <gianni.ceccarelli@broadbean.com>
51
53       This software is copyright (c) 2022 by BroadBean UK, a CareerBuilder
54       Company.
55
56       This is free software; you can redistribute it and/or modify it under
57       the same terms as the Perl 5 programming language system itself.
58
59
60
61perl v5.36.1                      2023-D0a9t-a1:3:Password::zxcvbn::Combinatorics(3)
Impressum