| 1 | # | ||
| 2 | # Copyright (c) 2019 Christian Jaeger, copying@christianjaeger.ch | ||
| 3 | # | ||
| 4 | # This is free software, offered under either the same terms as perl 5 | ||
| 5 | # or the terms of the Artistic License version 2 or the terms of the | ||
| 6 | # MIT License (Expat version). See the file COPYING.md that came | ||
| 7 | # bundled with this file. | ||
| 8 | # | ||
| 9 | |||
| 10 | =head1 NAME | ||
| 11 | |||
| 12 | FP::Mixin::Utils - utility methods | ||
| 13 | |||
| 14 | =head1 SYNOPSIS | ||
| 15 | |||
| 16 | 1 | ▶ | use base 'FP::Mixin::Utils'; # or use parent or whatever |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | |||
| 18 | =head1 DESCRIPTION | ||
| 19 | |||
| 20 | Methods that can be useful to have on some classes or protocols. | ||
| 21 | |||
| 22 | Currently implemented: | ||
| 23 | |||
| 24 | C<F()>: call `F` from `FP::Stream` (useful in the repl to fully force | ||
| 25 | a data structure) | ||
| 26 | |||
| 27 | =head1 SEE ALSO | ||
| 28 | |||
| 29 | L<FP::Abstract::Show> -- uses this | ||
| 30 | |||
| 31 | =head1 NOTE | ||
| 32 | |||
| 33 | This is alpha software! Read the status section in the package README | ||
| 34 | or on the L<website|http://functional-perl.org/>. | ||
| 35 | |||
| 36 | =cut | ||
| 37 | |||
| 38 | package FP::Mixin::Utils; | ||
| 39 | |||
| 40 | 86 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 41 | 86 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 42 | 86 | ▶ | use warnings FATAL => 'uninitialized'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 43 | |||
| 44 | 1 | ▶ | sub F { |
|
Subroutine
F: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 45 | 1 | require FP::Stream; | |
| 46 | 1 | goto \&FP::Stream::F | |
| 47 | } | ||
| 48 | |||
| 49 | 86 | 1 | |