Every builtin, keyword, alias, and extension with an LSP hover doc — rendered from the exact markdown that `stryke docs` shows in the terminal. Jump via the chapter index, or Ctrl+F for a specific name.
Other
2604 topics
# __stryke_rust_compile
__stryke_rust_compile — internal builtin.
my $result = __stryke_rust_compile $x
# or in a pipeline:
@list |> map __stryke_rust_compile |> p
# a0
bohr_radius (alias a0) — a₀ ≈ 5.29×10⁻¹¹ m. Radius of hydrogen atom ground state.
p a0 # 5.29177210903e-11
# a256
a256 — color operations builtin. Alias for ansi_256.
my $result = a256 $x
# or in a pipeline:
@list |> map a256 |> p
# a85d
base85_decode (aliases b85d, a85d) decodes an Ascii85/Base85 encoded string.
p b85d(b85e("Hello")) # Hello
# a85e
base85_encode (aliases b85e, a85e) encodes a string using Ascii85/Base85 encoding. More compact than Base64 (4:5 ratio vs 3:4).
p b85e("Hello") # encoded string
# abs_ceil
abs_ceil — trivial numeric helpers (batch 4) builtin.
my $result = abs_ceil $x
# or in a pipeline:
@list |> map abs_ceil |> p
# abs_diff
abs_diff — trivial numeric / predicate builtins builtin.
my $result = abs_diff $x
# or in a pipeline:
@list |> map abs_diff |> p
# abs_each
abs_each — trivial numeric helpers (batch 4) builtin.
my $result = abs_each $x
# or in a pipeline:
@list |> map abs_each |> p
# abs_floor
abs_floor — trivial numeric helpers (batch 4) builtin.
my $result = abs_floor $x
# or in a pipeline:
@list |> map abs_floor |> p
# abundant_numbers
abundant_numbers — number theory / primes builtin.
my $result = abundant_numbers $x
# or in a pipeline:
@list |> map abundant_numbers |> p
# abunnums
abunnums — number theory / primes builtin. Alias for abundant_numbers.
my $result = abunnums $x
# or in a pipeline:
@list |> map abunnums |> p
# accum
accum — python/ruby stdlib builtin. Alias for accumulate.
my $result = accum $x
# or in a pipeline:
@list |> map accum |> p
# accumulate
accumulate — python/ruby stdlib builtin.
my $result = accumulate $x
# or in a pipeline:
@list |> map accumulate |> p
# acf
acf_fn (alias acf) — autocorrelation function. Returns ACF values for lags 0..max_lag. Like R's acf().
my @a = @{acf([1,3,2,4,3,5,4,6], 5)}
p $a[0] # 1.0 (lag 0 is always 1)
p $a[1] # lag-1 autocorrelation
# acirc
acirc — geometry / physics builtin. Alias for area_circle.
my $result = acirc $x
# or in a pipeline:
@list |> map acirc |> p
# acorr
acorr — math / numeric (uncategorized batch) builtin. Alias for autocorrelation.
my $result = acorr $x
# or in a pipeline:
@list |> map acorr |> p
# acos
acos — trig / math (batch 2) builtin.
my $result = acos $x
# or in a pipeline:
@list |> map acos |> p
# acosh
acosh — trig / math (batch 2) builtin.
my $result = acosh $x
# or in a pipeline:
@list |> map acosh |> p
# acot
acot — trig extensions builtin.
my $result = acot $x
# or in a pipeline:
@list |> map acot |> p
# acro
acro — string processing (uncategorized batch) builtin. Alias for acronym.
my $result = acro $x
# or in a pipeline:
@list |> map acro |> p
# acronym
acronym — string processing (uncategorized batch) builtin.
my $result = acronym $x
# or in a pipeline:
@list |> map acronym |> p
# acsc
acsc — trig extensions builtin.
my $result = acsc $x
# or in a pipeline:
@list |> map acsc |> p
# add_days
add_days — extended stdlib builtin.
my $result = add_days $x
# or in a pipeline:
@list |> map add_days |> p
# add_hours
add_hours — extended stdlib builtin.
my $result = add_hours $x
# or in a pipeline:
@list |> map add_hours |> p
# add_minutes
add_minutes — extended stdlib builtin.
my $result = add_minutes $x
# or in a pipeline:
@list |> map add_minutes |> p
# addd
addd — extended stdlib builtin. Alias for add_days.
my $result = addd $x
# or in a pipeline:
@list |> map addd |> p
# addh
addh — extended stdlib builtin. Alias for add_hours.
my $result = addh $x
# or in a pipeline:
@list |> map addh |> p
# addm
addm — extended stdlib builtin. Alias for add_minutes.
my $result = addm $x
# or in a pipeline:
@list |> map addm |> p
# adjacent_difference
adjacent_difference — list helpers (batch 4) builtin.
my $result = adjacent_difference $x
# or in a pipeline:
@list |> map adjacent_difference |> p
# adjacent_pairs
adjacent_pairs — go/general functional utilities builtin.
my $result = adjacent_pairs $x
# or in a pipeline:
@list |> map adjacent_pairs |> p
# adjp
adjp — go/general functional utilities builtin. Alias for adjacent_pairs.
my $result = adjp $x
# or in a pipeline:
@list |> map adjp |> p
# adl32
adl32 — extended stdlib builtin. Alias for adler32.
my $result = adl32 $x
# or in a pipeline:
@list |> map adl32 |> p
# adler32
adler32 — extended stdlib builtin.
my $result = adler32 $x
# or in a pipeline:
@list |> map adler32 |> p
# aellip
aellip — geometry / physics builtin. Alias for area_ellipse.
my $result = aellip $x
# or in a pipeline:
@list |> map aellip |> p
# after_n
after_n — functional combinators builtin.
my $result = after_n $x
# or in a pipeline:
@list |> map after_n |> p
# age_in_years
age_in_years — extended stdlib batch 3 builtin.
my $result = age_in_years $x
# or in a pipeline:
@list |> map age_in_years |> p
# ageyrs
ageyrs — extended stdlib batch 3 builtin. Alias for age_in_years.
my $result = ageyrs $x
# or in a pipeline:
@list |> map ageyrs |> p
# ain
ain — algebraic match builtin. Alias for assoc_in.
my $result = ain $x
# or in a pipeline:
@list |> map ain |> p
# aliquot
aliquot — math / numeric (uncategorized batch) builtin. Alias for aliquot_sum.
my $result = aliquot $x
# or in a pipeline:
@list |> map aliquot |> p
# aliquot_sum
aliquot_sum — math / numeric (uncategorized batch) builtin.
my $result = aliquot_sum $x
# or in a pipeline:
@list |> map aliquot_sum |> p
# all_distinct
all_distinct — more list helpers builtin.
my $result = all_distinct $x
# or in a pipeline:
@list |> map all_distinct |> p
# all_eq
all_eq — more list helpers builtin.
my $result = all_eq $x
# or in a pipeline:
@list |> map all_eq |> p
# all_match
all_match — predicates (batch 4) builtin.
my $result = all_match $x
# or in a pipeline:
@list |> map all_match |> p
# all_unique
all_unique — more list helpers builtin. Alias for all_distinct.
my $result = all_unique $x
# or in a pipeline:
@list |> map all_unique |> p
# alpha_fs
fine_structure_constant (alias alpha_fs) — α ≈ 1/137 ≈ 0.00730. Fundamental constant of electromagnetism.
p alpha_fs # 0.0072973525693
p 1 / alpha_fs # ~137.036
# alternate_case
alternate_case — string helpers (batch 4) builtin.
my $result = alternate_case $x
# or in a pipeline:
@list |> map alternate_case |> p
# always_false
always_false — functional primitives builtin.
my $result = always_false $x
# or in a pipeline:
@list |> map always_false |> p
# always_true
always_true — functional primitives builtin.
my $result = always_true $x
# or in a pipeline:
@list |> map always_true |> p
# amax
amax — extended stdlib builtin. Alias for argmax.
my $result = amax $x
# or in a pipeline:
@list |> map amax |> p
# amin
amin — extended stdlib builtin. Alias for argmin.
my $result = amin $x
# or in a pipeline:
@list |> map amin |> p
# amort
amortization_schedule($principal, $rate, $periods) (alias amort) — generates a full amortization schedule. Returns arrayref of hashrefs with period, payment, principal, interest, balance.
my $sched = amort(10000, 0.05, 12)
for my $row (@$sched) {
p "Period $row->{period}: bal=$row->{balance}"
}
# amu
amu — physics constants builtin. Alias for atomic_mass_unit.
my $result = amu $x
# or in a pipeline:
@list |> map amu |> p
# and
and — control flow builtin.
my $result = and $x
# or in a pipeline:
@list |> map and |> p
# and_list
and_list — additional missing stdlib functions builtin.
my $result = and_list $x
# or in a pipeline:
@list |> map and_list |> p
# andl
andl — additional missing stdlib functions builtin. Alias for and_list.
my $result = andl $x
# or in a pipeline:
@list |> map andl |> p
# angbet
angbet — geometry (extended) builtin. Alias for angle_between.
my $result = angbet $x
# or in a pipeline:
@list |> map angbet |> p
# angle_between
angle_between($x1, $y1, $x2, $y2) — computes the angle in radians between two 2D vectors from origin. Returns the angle using atan2.
my $angle = angle_between(1, 0, 0, 1)
p $angle # ~1.5708 (π/2 radians = 90°)
# angle_between_deg
angle_between_deg — math functions builtin.
my $result = angle_between_deg $x
# or in a pipeline:
@list |> map angle_between_deg |> p
# angle_bracket
angle_bracket — string helpers (batch 4) builtin.
my $result = angle_bracket $x
# or in a pipeline:
@list |> map angle_bracket |> p
# angular_velocity
angular_velocity — physics formulas builtin.
my $result = angular_velocity $x
# or in a pipeline:
@list |> map angular_velocity |> p
# angvel
angvel — physics formulas builtin. Alias for angular_velocity.
my $result = angvel $x
# or in a pipeline:
@list |> map angvel |> p
# anova
anova_oneway (aliases anova, anova1) performs one-way ANOVA. Returns [F-statistic, df_between, df_within].
my ($F, $dfb, $dfw) = @{anova([1,2,3], [4,5,6], [7,8,9])}
# ansi_256
ansi_256 — color operations builtin.
my $result = ansi_256 $x
# or in a pipeline:
@list |> map ansi_256 |> p
# ansi_black
ansi_black — color / ansi builtin.
my $result = ansi_black $x
# or in a pipeline:
@list |> map ansi_black |> p
# ansi_blue
ansi_blue — color / ansi builtin.
my $result = ansi_blue $x
# or in a pipeline:
@list |> map ansi_blue |> p
# ansi_bold
ansi_bold — color / ansi builtin.
my $result = ansi_bold $x
# or in a pipeline:
@list |> map ansi_bold |> p
# ansi_cyan
ansi_cyan — color / ansi builtin.
my $result = ansi_cyan $x
# or in a pipeline:
@list |> map ansi_cyan |> p
# ansi_dim
ansi_dim — color / ansi builtin.
my $result = ansi_dim $x
# or in a pipeline:
@list |> map ansi_dim |> p
# ansi_green
ansi_green — color / ansi builtin.
my $result = ansi_green $x
# or in a pipeline:
@list |> map ansi_green |> p
# ansi_magenta
ansi_magenta — color / ansi builtin.
my $result = ansi_magenta $x
# or in a pipeline:
@list |> map ansi_magenta |> p
# ansi_off
ansi_off — color / ansi builtin. Alias for red.
my $result = ansi_off $x
# or in a pipeline:
@list |> map ansi_off |> p
# ansi_red
ansi_red — color / ansi builtin.
my $result = ansi_red $x
# or in a pipeline:
@list |> map ansi_red |> p
# ansi_reverse
ansi_reverse — color / ansi builtin.
my $result = ansi_reverse $x
# or in a pipeline:
@list |> map ansi_reverse |> p
# ansi_truecolor
ansi_truecolor — color operations builtin.
my $result = ansi_truecolor $x
# or in a pipeline:
@list |> map ansi_truecolor |> p
# ansi_underline
ansi_underline — color / ansi builtin.
my $result = ansi_underline $x
# or in a pipeline:
@list |> map ansi_underline |> p
# ansi_white
ansi_white — color / ansi builtin.
my $result = ansi_white $x
# or in a pipeline:
@list |> map ansi_white |> p
# ansi_yellow
ansi_yellow — color / ansi builtin.
my $result = ansi_yellow $x
# or in a pipeline:
@list |> map ansi_yellow |> p
# any_match
any_match — predicates (batch 4) builtin.
my $result = any_match $x
# or in a pipeline:
@list |> map any_match |> p
# apery
apery — math constants builtin. Alias for apery_constant.
my $result = apery $x
# or in a pipeline:
@list |> map apery |> p
# apery_constant
apery_constant — math constants builtin.
my $result = apery_constant $x
# or in a pipeline:
@list |> map apery_constant |> p
# append_elem
append_elem — list helpers (batch 4) builtin.
my $result = append_elem $x
# or in a pipeline:
@list |> map append_elem |> p
# appl
appl — algebraic match builtin. Alias for apply.
my $result = appl $x
# or in a pipeline:
@list |> map appl |> p
# apply
apply — algebraic match builtin.
my $result = apply $x
# or in a pipeline:
@list |> map apply |> p
# apply_list
apply_list — functional combinators builtin.
my $result = apply_list $x
# or in a pipeline:
@list |> map apply_list |> p
# apply_window
apply_window(\@signal, \@window) — element-wise multiplies signal by window function. Use before FFT to reduce spectral leakage.
my $w = hann(scalar @signal)
my $windowed = apply_window(\@signal, $w)
my $spectrum = dft($windowed)
# applywin
applywin — dsp / signal (extended) builtin. Alias for apply_window.
my $result = applywin $x
# or in a pipeline:
@list |> map applywin |> p
# approx
approx_fn (alias approx) — piecewise linear interpolation at query points. Like R's approx().
my @y = @{approx([0,1,2], [0,10,0], [0.5, 1.0, 1.5])}
# [5, 10, 5]
# approx_eq
approx_eq — math functions builtin.
my $result = approx_eq $x
# or in a pipeline:
@list |> map approx_eq |> p
# apsp
floyd_warshall (aliases floydwarshall, apsp) computes all-pairs shortest paths. Takes a distance matrix (use Inf for no edge).
my $d = apsp([[0,3,1e18],[1e18,0,1],[1e18,1e18,0]])
# arange
arange — matrix / linear algebra builtin.
my $result = arange $x
# or in a pipeline:
@list |> map arange |> p
# arc_length
arc_length($radius, $theta) — computes the arc length of a circular arc. Theta is the central angle in radians. Returns radius * theta.
p arc_length(10, 3.14159) # ~31.4 (half circle)
p arc_length(5, 1.57) # ~7.85 (quarter circle)
# arclen
arclen — geometry (extended) builtin. Alias for arc_length.
my $result = arclen $x
# or in a pipeline:
@list |> map arclen |> p
# area_circle
area_circle — geometry / physics builtin.
my $result = area_circle $x
# or in a pipeline:
@list |> map area_circle |> p
# area_ellipse
area_ellipse — geometry / physics builtin.
my $result = area_ellipse $x
# or in a pipeline:
@list |> map area_ellipse |> p
# area_rectangle
area_rectangle — geometry / physics builtin.
my $result = area_rectangle $x
# or in a pipeline:
@list |> map area_rectangle |> p
# area_trapezoid
area_trapezoid — geometry / physics builtin.
my $result = area_trapezoid $x
# or in a pipeline:
@list |> map area_trapezoid |> p
# area_triangle
area_triangle — geometry / physics builtin.
my $result = area_triangle $x
# or in a pipeline:
@list |> map area_triangle |> p
# arect
arect — geometry / physics builtin. Alias for area_rectangle.
my $result = arect $x
# or in a pipeline:
@list |> map arect |> p
# argc
argc — process / env builtin.
my $result = argc $x
# or in a pipeline:
@list |> map argc |> p
# argmax
argmax — extended stdlib builtin.
my $result = argmax $x
# or in a pipeline:
@list |> map argmax |> p
# argmin
argmin — extended stdlib builtin.
my $result = argmin $x
# or in a pipeline:
@list |> map argmin |> p
# argsort
argsort — extended stdlib builtin.
my $result = argsort $x
# or in a pipeline:
@list |> map argsort |> p
# arithmetic_series
arithmetic_series($a1, $d, $n) (alias arithser) — sum of n terms of arithmetic sequence starting at a1 with common difference d. Formula: n/2 × (2a1 + (n-1)d).
p arithser(1, 1, 100) # 5050 (1+2+...+100)
p arithser(2, 3, 10) # 155 (2+5+8+...+29)
# arity_of
arity_of — functional combinators builtin.
my $result = arity_of $x
# or in a pipeline:
@list |> map arity_of |> p
# array_difference
array_difference — collection (batch 2) builtin.
my $result = array_difference $x
# or in a pipeline:
@list |> map array_difference |> p
# array_intersection
array_intersection — collection (batch 2) builtin.
my $result = array_intersection $x
# or in a pipeline:
@list |> map array_intersection |> p
# array_union
array_union — collection (batch 2) builtin.
my $result = array_union $x
# or in a pipeline:
@list |> map array_union |> p
# ascii_chr
ascii_chr — string (batch 2) builtin.
my $result = ascii_chr $x
# or in a pipeline:
@list |> map ascii_chr |> p
# ascii_ord
ascii_ord — string (batch 2) builtin.
my $result = ascii_ord $x
# or in a pipeline:
@list |> map ascii_ord |> p
# asec
asec — trig extensions builtin.
my $result = asec $x
# or in a pipeline:
@list |> map asec |> p
# asin
asin — trig / math (batch 2) builtin.
my $result = asin $x
# or in a pipeline:
@list |> map asin |> p
# asinh
asinh — trig / math (batch 2) builtin.
my $result = asinh $x
# or in a pipeline:
@list |> map asinh |> p
# asrt
asrt — extended stdlib builtin. Alias for argsort.
my $result = asrt $x
# or in a pipeline:
@list |> map asrt |> p
# assert_type
assert_type — conversion / utility (batch 4) builtin.
my $result = assert_type $x
# or in a pipeline:
@list |> map assert_type |> p
# assoc
assoc — algebraic match builtin.
my $result = assoc $x
# or in a pipeline:
@list |> map assoc |> p
# assoc_fn
assoc_fn — go/general functional utilities builtin. Alias for associate.
my $result = assoc_fn $x
# or in a pipeline:
@list |> map assoc_fn |> p
# assoc_in
assoc_in — algebraic match builtin.
my $result = assoc_in $x
# or in a pipeline:
@list |> map assoc_in |> p
# associate
associate — go/general functional utilities builtin.
my $result = associate $x
# or in a pipeline:
@list |> map associate |> p
# astronomical_unit
astronomical_unit (alias au) — AU ≈ 1.496×10¹¹ m. Mean Earth-Sun distance.
p au # 1.495978707e11 m
p au / 1000 # ~149.6 million km
# at_index
at_index — javascript array/object methods builtin.
my $result = at_index $x
# or in a pipeline:
@list |> map at_index |> p
# atan
atan — trig / math (batch 2) builtin.
my $result = atan $x
# or in a pipeline:
@list |> map atan |> p
# atanh
atanh — trig / math (batch 2) builtin.
my $result = atanh $x
# or in a pipeline:
@list |> map atanh |> p
# atbash
atbash — string processing (uncategorized batch) builtin.
my $result = atbash $x
# or in a pipeline:
@list |> map atbash |> p
# atc
atc — color operations builtin. Alias for ansi_truecolor.
my $result = atc $x
# or in a pipeline:
@list |> map atc |> p
# ati
ati — javascript array/object methods builtin. Alias for at_index.
my $result = ati $x
# or in a pipeline:
@list |> map ati |> p
# atime
atime — file stat / path builtin. Alias for file_atime.
my $result = atime $x
# or in a pipeline:
@list |> map atime |> p
# atomic_mass_unit
atomic_mass_unit — physics constants builtin.
my $result = atomic_mass_unit $x
# or in a pipeline:
@list |> map atomic_mass_unit |> p
# atrap
atrap — geometry / physics builtin. Alias for area_trapezoid.
my $result = atrap $x
# or in a pipeline:
@list |> map atrap |> p
# atri
atri — geometry / physics builtin. Alias for area_triangle.
my $result = atri $x
# or in a pipeline:
@list |> map atri |> p
# attempt
attempt — functional combinators builtin.
my $result = attempt $x
# or in a pipeline:
@list |> map attempt |> p
# autocorrelation
autocorrelation — math / numeric (uncategorized batch) builtin.
my $result = autocorrelation $x
# or in a pipeline:
@list |> map autocorrelation |> p
# average
average — additional missing stdlib functions builtin.
my $result = average $x
# or in a pipeline:
@list |> map average |> p
# avg
avg — pipeline / string helpers builtin.
my $result = avg $x
# or in a pipeline:
@list |> map avg |> p
# avogadro
avogadro — math / physics constants builtin.
my $result = avogadro $x
# or in a pipeline:
@list |> map avogadro |> p
# avogadro_number
avogadro_number — constants builtin.
my $result = avogadro_number $x
# or in a pipeline:
@list |> map avogadro_number |> p
# b2gray
b2gray — base / gray code builtin. Alias for binary_to_gray.
my $result = b2gray $x
# or in a pipeline:
@list |> map b2gray |> p
# b2i
b2i — boolean combinators builtin. Alias for bool_to_int.
my $result = b2i $x
# or in a pipeline:
@list |> map b2i |> p
# b64d
b64d — crypto / encoding builtin. Alias for base64_decode.
my $result = b64d $x
# or in a pipeline:
@list |> map b64d |> p
# b64e
b64e — crypto / encoding builtin. Alias for base64_encode.
my $result = b64e $x
# or in a pipeline:
@list |> map b64e |> p
# b_to_kb
b_to_kb — unit conversions builtin. Alias for bytes_to_kb.
my $result = b_to_kb $input
# b_wien
b_wien — physics constants builtin. Alias for wien_constant.
my $result = b_wien $x
# or in a pipeline:
@list |> map b_wien |> p
# bac
bac — finance builtin. Alias for bac_estimate.
my $result = bac $x
# or in a pipeline:
@list |> map bac |> p
# bac_estimate
bac_estimate — finance builtin.
my $result = bac_estimate $x
# or in a pipeline:
@list |> map bac_estimate |> p
# bandpass_filter
bandpass_filter(\@signal, $low, $high) (alias bpf) — applies a band-pass filter passing frequencies between low and high cutoffs. Combines low-pass and high-pass.
my $filtered = bpf(\@signal, 0.1, 0.3)
# bar_to_pascals
bar_to_pascals — file stat / path builtin.
my $result = bar_to_pascals $input
# base_convert
base_convert — base / gray code builtin.
my $result = base_convert $x
# or in a pipeline:
@list |> map base_convert |> p
# batch
batch — collection (batch 2) builtin.
my $result = batch $x
# or in a pipeline:
@list |> map batch |> p
# batched
batched — additional missing stdlib functions builtin.
my $result = batched $x
# or in a pipeline:
@list |> map batched |> p
# bbox
bounding_box(@points) (alias bbox) — computes the axis-aligned bounding box of 2D points. Returns [min_x, min_y, max_x, max_y].
my @pts = (1,2, 3,4, 0,1, 5,3)
my $bb = bbox(@pts)
p @$bb # (0, 1, 5, 4)
# bconv
bconv — base / gray code builtin. Alias for base_convert.
my $result = bconv $x
# or in a pipeline:
@list |> map bconv |> p
# bcount
bcount — extended stdlib batch 3 builtin. Alias for count_bytes.
my $result = bcount $x
# or in a pipeline:
@list |> map bcount |> p
# bearing
bearing — geometry / physics builtin.
my $result = bearing $x
# or in a pipeline:
@list |> map bearing |> p
# before_n
before_n — functional combinators builtin.
my $result = before_n $x
# or in a pipeline:
@list |> map before_n |> p
# bell_number
bell_number — math / numeric (uncategorized batch) builtin.
my $result = bell_number $x
# or in a pipeline:
@list |> map bell_number |> p
# bellman_ford
bellman_ford (alias bellmanford) computes shortest paths from a source in a graph with negative weights. Takes edges [[u,v,w],...], node count, source index.
my $d = bellmanford([[0,1,4],[0,2,5],[1,2,-3]], 3, 0)
# belln
belln — math / numeric (uncategorized batch) builtin. Alias for bell_number.
my $result = belln $x
# or in a pipeline:
@list |> map belln |> p
# bernoulli
bernoulli_number (alias bernoulli) computes the nth Bernoulli number. B(0)=1, B(1)=-0.5, odd B(n>1)=0.
p bernoulli(0) # 1
p bernoulli(2) # 0.1667
p bernoulli(4) # -0.0333
# bessel_j0
bessel_j0 (alias j0) computes the Bessel function of the first kind, order 0.
p j0(0) # 1.0
p j0(2.4) # ≈ 0 (first zero)
# bessel_j1
bessel_j1 (alias j1) computes the Bessel function of the first kind, order 1.
p j1(0) # 0.0
p j1(1.84) # ≈ 0.582 (first max)
# beta_pdf
beta_pdf (alias betapdf) evaluates the Beta distribution PDF at x with shape parameters alpha and beta.
p betapdf(0.5, 2, 5) # Beta(2,5) at x=0.5
# between
between — conversion / utility (batch 4) builtin.
my $result = between $x
# or in a pipeline:
@list |> map between |> p
# bfs
bfs — extended stdlib builtin. Alias for bfs_traverse.
my $result = bfs $x
# or in a pipeline:
@list |> map bfs |> p
# bfs_traverse
bfs_traverse — extended stdlib builtin.
my $result = bfs_traverse $x
# or in a pipeline:
@list |> map bfs_traverse |> p
# bg_black
bg_black — color / ansi builtin. Alias for red.
my $result = bg_black $x
# or in a pipeline:
@list |> map bg_black |> p
# bg_blue
bg_blue — color / ansi builtin. Alias for red.
my $result = bg_blue $x
# or in a pipeline:
@list |> map bg_blue |> p
# bg_bright_blue
bg_bright_blue — color / ansi builtin. Alias for red.
my $result = bg_bright_blue $x
# or in a pipeline:
@list |> map bg_bright_blue |> p
# bg_bright_cyan
bg_bright_cyan — color / ansi builtin. Alias for red.
my $result = bg_bright_cyan $x
# or in a pipeline:
@list |> map bg_bright_cyan |> p
# bg_bright_green
bg_bright_green — color / ansi builtin. Alias for red.
my $result = bg_bright_green $x
# or in a pipeline:
@list |> map bg_bright_green |> p
# bg_bright_magenta
bg_bright_magenta — color / ansi builtin. Alias for red.
my $result = bg_bright_magenta $x
# or in a pipeline:
@list |> map bg_bright_magenta |> p
# bg_bright_red
bg_bright_red — color / ansi builtin. Alias for red.
my $result = bg_bright_red $x
# or in a pipeline:
@list |> map bg_bright_red |> p
# bg_bright_white
bg_bright_white — color / ansi builtin. Alias for red.
my $result = bg_bright_white $x
# or in a pipeline:
@list |> map bg_bright_white |> p
# bg_bright_yellow
bg_bright_yellow — color / ansi builtin. Alias for red.
my $result = bg_bright_yellow $x
# or in a pipeline:
@list |> map bg_bright_yellow |> p
# bg_c256
bg_c256 — color / ansi builtin. Alias for bg_color256.
my $result = bg_c256 $x
# or in a pipeline:
@list |> map bg_c256 |> p
# bg_color256
bg_color256 — color / ansi builtin.
my $result = bg_color256 $x
# or in a pipeline:
@list |> map bg_color256 |> p
# bg_cyan
bg_cyan — color / ansi builtin. Alias for red.
my $result = bg_cyan $x
# or in a pipeline:
@list |> map bg_cyan |> p
# bg_green
bg_green — color / ansi builtin. Alias for red.
my $result = bg_green $x
# or in a pipeline:
@list |> map bg_green |> p
# bg_magenta
bg_magenta — color / ansi builtin. Alias for red.
my $result = bg_magenta $x
# or in a pipeline:
@list |> map bg_magenta |> p
# bg_red
bg_red — color / ansi builtin. Alias for red.
my $result = bg_red $x
# or in a pipeline:
@list |> map bg_red |> p
# bg_rgb
bg_rgb — color / ansi builtin.
my $result = bg_rgb $x
# or in a pipeline:
@list |> map bg_rgb |> p
# bg_white
bg_white — color / ansi builtin. Alias for red.
my $result = bg_white $x
# or in a pipeline:
@list |> map bg_white |> p
# bg_yellow
bg_yellow — color / ansi builtin. Alias for red.
my $result = bg_yellow $x
# or in a pipeline:
@list |> map bg_yellow |> p
# bigram
bigram — string processing (uncategorized batch) builtin. Alias for bigrams.
my $result = bigram $x
# or in a pipeline:
@list |> map bigram |> p
# bigrams
bigrams — string processing (uncategorized batch) builtin.
my $result = bigrams $x
# or in a pipeline:
@list |> map bigrams |> p
# bin_of
bin_of — base conversion builtin. Alias for to_bin.
my $result = bin_of $x
# or in a pipeline:
@list |> map bin_of |> p
# binary_insert
binary_insert — matrix operations (uncategorized batch) builtin.
my $result = binary_insert $x
# or in a pipeline:
@list |> map binary_insert |> p
# binary_search
binary_search — collection (batch 2) builtin.
my $result = binary_search $x
# or in a pipeline:
@list |> map binary_search |> p
# binary_to_gray
binary_to_gray — base / gray code builtin.
my $result = binary_to_gray $input
# binom
binom — extended stdlib batch 3 builtin. Alias for binomial.
my $result = binom $x
# or in a pipeline:
@list |> map binom |> p
# binom_test
binom_test — exact binomial test. Returns two-sided p-value. Like R's binom.test().
my $p = binomtest(7, 10, 0.5) # p-value for 7/10 successes vs p=0.5
# binomial
binomial — extended stdlib batch 3 builtin.
my $result = binomial $x
# or in a pipeline:
@list |> map binomial |> p
# binsert
binsert — matrix operations (uncategorized batch) builtin. Alias for binary_insert.
my $result = binsert $x
# or in a pipeline:
@list |> map binsert |> p
# bisect
bisection (alias bisect) finds a root of f(x)=0 in [a,b] via the bisection method. Takes a code ref, a, b, and optional tolerance.
my $root = bisect(fn { $_[0]**2 - 2 }, 1, 2) # √2 ≈ 1.4142
# bit_and
bit_and — bit ops builtin.
my $result = bit_and $x
# or in a pipeline:
@list |> map bit_and |> p
# bit_clear
bit_clear — bit ops builtin.
my $result = bit_clear $x
# or in a pipeline:
@list |> map bit_clear |> p
# bit_length
bit_length — base conversion builtin.
my $result = bit_length $x
# or in a pipeline:
@list |> map bit_length |> p
# bit_not
bit_not — bit ops builtin.
my $result = bit_not $x
# or in a pipeline:
@list |> map bit_not |> p
# bit_or
bit_or — bit ops builtin.
my $result = bit_or $x
# or in a pipeline:
@list |> map bit_or |> p
# bit_set
bit_set — bit ops builtin.
my $result = bit_set $x
# or in a pipeline:
@list |> map bit_set |> p
# bit_test
bit_test — bit ops builtin.
my $result = bit_test $x
# or in a pipeline:
@list |> map bit_test |> p
# bit_toggle
bit_toggle — bit ops builtin.
my $result = bit_toggle $x
# or in a pipeline:
@list |> map bit_toggle |> p
# bit_xor
bit_xor — bit ops builtin.
my $result = bit_xor $x
# or in a pipeline:
@list |> map bit_xor |> p
# bitlen
bitlen — base conversion builtin. Alias for bit_length.
my $result = bitlen $x
# or in a pipeline:
@list |> map bitlen |> p
# bits_count
bits_count — base conversion builtin.
my $result = bits_count $x
# or in a pipeline:
@list |> map bits_count |> p
# bits_to_bytes
bits_to_bytes — unit conversions builtin.
my $result = bits_to_bytes $input
# bitset_clear
bitset_clear — data structure helpers builtin.
my $result = bitset_clear $x
# or in a pipeline:
@list |> map bitset_clear |> p
# bitset_new
bitset_new — data structure helpers builtin.
my $result = bitset_new $x
# or in a pipeline:
@list |> map bitset_new |> p
# bitset_set
bitset_set — data structure helpers builtin.
my $result = bitset_set $x
# or in a pipeline:
@list |> map bitset_set |> p
# bitset_test
bitset_test — data structure helpers builtin.
my $result = bitset_test $x
# or in a pipeline:
@list |> map bitset_test |> p
# bkt
bkt — matrix operations (uncategorized batch) builtin. Alias for bucket.
my $result = bkt $x
# or in a pipeline:
@list |> map bkt |> p
# bl
bl — algebraic match builtin. Alias for butlast.
my $result = bl $x
# or in a pipeline:
@list |> map bl |> p
# black
black — color / ansi builtin. Alias for red.
my $result = black $x
# or in a pipeline:
@list |> map black |> p
# black_scholes_call
black_scholes_call($S, $K, $r, $T, $sigma) (alias bscall) — computes Black-Scholes price for a European call option. S=spot, K=strike, r=rate, T=time to expiry, sigma=volatility.
p bscall(100, 100, 0.05, 1, 0.2) # ~10.45
# black_scholes_put
black_scholes_put($S, $K, $r, $T, $sigma) (alias bsput) — computes Black-Scholes price for a European put option.
p bsput(100, 100, 0.05, 1, 0.2) # ~5.57
# blackman
window_blackman($n) (alias blackman) — generates a Blackman window of length n. Provides excellent sidelobe suppression at the cost of main lobe width.
my $w = blackman(1024)
# blink
blink — color / ansi builtin. Alias for red.
my $result = blink $x
# or in a pipeline:
@list |> map blink |> p
# block_devices
block_devices — filesystem extensions builtin.
my $result = block_devices $x
# or in a pipeline:
@list |> map block_devices |> p
# blue
blue — color / ansi builtin. Alias for red.
my $result = blue $x
# or in a pipeline:
@list |> map blue |> p
# blue_bold
blue_bold — color / ansi builtin. Alias for red.
my $result = blue_bold $x
# or in a pipeline:
@list |> map blue_bold |> p
# bmi
bmi — finance builtin.
my $result = bmi $x
# or in a pipeline:
@list |> map bmi |> p
# bmi_calc
bmi_calc — physics formulas builtin.
my $result = bmi_calc $x
# or in a pipeline:
@list |> map bmi_calc |> p
# bohr_magneton
bohr_magneton — physics constants builtin.
my $result = bohr_magneton $x
# or in a pipeline:
@list |> map bohr_magneton |> p
# bold
bold — color / ansi builtin. Alias for red.
my $result = bold $x
# or in a pipeline:
@list |> map bold |> p
# bold_blue
bold_blue — color / ansi builtin. Alias for red.
my $result = bold_blue $x
# or in a pipeline:
@list |> map bold_blue |> p
# bold_cyan
bold_cyan — color / ansi builtin. Alias for red.
my $result = bold_cyan $x
# or in a pipeline:
@list |> map bold_cyan |> p
# bold_green
bold_green — color / ansi builtin. Alias for red.
my $result = bold_green $x
# or in a pipeline:
@list |> map bold_green |> p
# bold_magenta
bold_magenta — color / ansi builtin. Alias for red.
my $result = bold_magenta $x
# or in a pipeline:
@list |> map bold_magenta |> p
# bold_red
bold_red — color / ansi builtin. Alias for red.
my $result = bold_red $x
# or in a pipeline:
@list |> map bold_red |> p
# bold_white
bold_white — color / ansi builtin. Alias for red.
my $result = bold_white $x
# or in a pipeline:
@list |> map bold_white |> p
# bold_yellow
bold_yellow — color / ansi builtin. Alias for red.
my $result = bold_yellow $x
# or in a pipeline:
@list |> map bold_yellow |> p
# boltz
boltz — constants builtin. Alias for boltzmann_constant.
my $result = boltz $x
# or in a pipeline:
@list |> map boltz |> p
# boltzmann
boltzmann — math / physics constants builtin.
my $result = boltzmann $x
# or in a pipeline:
@list |> map boltzmann |> p
# boltzmann_constant
boltzmann_constant — constants builtin.
my $result = boltzmann_constant $x
# or in a pipeline:
@list |> map boltzmann_constant |> p
# bond_duration
duration($face, $coupon_rate, $ytm, $periods) (alias bond_duration) — computes the Macaulay duration of a bond, measuring interest rate sensitivity as weighted average time to receive cash flows.
p duration(1000, 0.05, 0.05, 10) # ~7.7 years
# bond_price
bond_price($face, $coupon_rate, $ytm, $periods) — computes the present value (price) of a bond given face value, coupon rate, yield to maturity, and number of periods.
p bond_price(1000, 0.05, 0.04, 10) # ~1081 (premium)
p bond_price(1000, 0.05, 0.06, 10) # ~926 (discount)
# bond_yield
bond_yield($price, $face, $coupon_rate, $periods) — computes the yield to maturity of a bond given its current price. Uses Newton-Raphson iteration.
p bond_yield(950, 1000, 0.05, 10) # ~5.7%
# bondprc
bondprc — finance (extended) builtin. Alias for bond_price.
my $result = bondprc $x
# or in a pipeline:
@list |> map bondprc |> p
# bondyld
bondyld — finance (extended) builtin. Alias for bond_yield.
my $result = bondyld $x
# or in a pipeline:
@list |> map bondyld |> p
# bool_each
bool_each — trivial numeric helpers (batch 4) builtin.
my $result = bool_each $x
# or in a pipeline:
@list |> map bool_each |> p
# bool_to_int
bool_to_int — boolean combinators builtin.
my $result = bool_to_int $input
# both
both — boolean combinators builtin.
my $result = both $x
# or in a pipeline:
@list |> map both |> p
# bracket
bracket — string helpers (batch 4) builtin.
my $result = bracket $x
# or in a pipeline:
@list |> map bracket |> p
# braille
braille — encoding / phonetics builtin. Alias for braille_encode.
my $result = braille $x
# or in a pipeline:
@list |> map braille |> p
# braille_encode
braille_encode — encoding / phonetics builtin.
my $result = braille_encode $x
# or in a pipeline:
@list |> map braille_encode |> p
# break_even
break_even — finance builtin.
my $result = break_even $x
# or in a pipeline:
@list |> map break_even |> p
# break_fn
break_fn — haskell list functions builtin.
my $result = break_fn $x
# or in a pipeline:
@list |> map break_fn |> p
# breakeven
breakeven — finance builtin. Alias for break_even.
my $result = breakeven $x
# or in a pipeline:
@list |> map breakeven |> p
# brewster
brewster — physics formulas builtin. Alias for brewster_angle.
my $result = brewster $x
# or in a pipeline:
@list |> map brewster |> p
# brewster_angle
brewster_angle — physics formulas builtin.
my $result = brewster_angle $x
# or in a pipeline:
@list |> map brewster_angle |> p
# bright_blue
bright_blue — color / ansi builtin. Alias for red.
my $result = bright_blue $x
# or in a pipeline:
@list |> map bright_blue |> p
# bright_cyan
bright_cyan — color / ansi builtin. Alias for red.
my $result = bright_cyan $x
# or in a pipeline:
@list |> map bright_cyan |> p
# bright_green
bright_green — color / ansi builtin. Alias for red.
my $result = bright_green $x
# or in a pipeline:
@list |> map bright_green |> p
# bright_magenta
bright_magenta — color / ansi builtin. Alias for red.
my $result = bright_magenta $x
# or in a pipeline:
@list |> map bright_magenta |> p
# bright_red
bright_red — color / ansi builtin. Alias for red.
my $result = bright_red $x
# or in a pipeline:
@list |> map bright_red |> p
# bright_white
bright_white — color / ansi builtin. Alias for red.
my $result = bright_white $x
# or in a pipeline:
@list |> map bright_white |> p
# bright_yellow
bright_yellow — color / ansi builtin. Alias for red.
my $result = bright_yellow $x
# or in a pipeline:
@list |> map bright_yellow |> p
# brkf
brkf — haskell list functions builtin. Alias for break_fn.
my $result = brkf $x
# or in a pipeline:
@list |> map brkf |> p
# bs_delta
bs_delta (aliases bsdelta, option_delta) computes the Black-Scholes delta (∂C/∂S). Args: S, K, T, r, sigma.
p bsdelta(100, 100, 1, 0.05, 0.2) # ≈ 0.64
# bs_gamma
bs_gamma computes the Black-Scholes gamma (∂²C/∂S²). Measures convexity of option value.
p bsgamma(100, 100, 1, 0.05, 0.2) # ≈ 0.019
# bs_rho
bs_rho computes the Black-Scholes rho (∂C/∂r). Sensitivity to interest rate.
p bsrho(100, 100, 1, 0.05, 0.2) # ≈ 46
# bs_theta
bs_theta computes the Black-Scholes theta (∂C/∂t). Time decay per unit time.
p bstheta(100, 100, 1, 0.05, 0.2) # negative (time decay)
# bs_vega
bs_vega computes the Black-Scholes vega (∂C/∂σ). Sensitivity to volatility.
p bsvega(100, 100, 1, 0.05, 0.2) # ≈ 37.5
# bsearch
bsearch — collection (batch 2) builtin. Alias for binary_search.
my $result = bsearch $x
# or in a pipeline:
@list |> map bsearch |> p
# bsize
bsize — misc / utility builtin. Alias for byte_size.
my $result = bsize $x
# or in a pipeline:
@list |> map bsize |> p
# btch
btch — additional missing stdlib functions builtin. Alias for batched.
my $result = btch $x
# or in a pipeline:
@list |> map btch |> p
# bucket
bucket — matrix operations (uncategorized batch) builtin.
my $result = bucket $x
# or in a pipeline:
@list |> map bucket |> p
# butlast
butlast — algebraic match builtin.
my $result = butlast $x
# or in a pipeline:
@list |> map butlast |> p
# byte_length
byte_length — string helpers (batch 4) builtin.
my $result = byte_length $x
# or in a pipeline:
@list |> map byte_length |> p
# byte_size
byte_size — misc / utility builtin.
my $result = byte_size $x
# or in a pipeline:
@list |> map byte_size |> p
# bytes_to_bits
bytes_to_bits — unit conversions builtin.
my $result = bytes_to_bits $input
# bytes_to_gb
bytes_to_gb — unit conversions builtin.
my $result = bytes_to_gb $input
# bytes_to_hex_str
bytes_to_hex_str — string helpers (batch 4) builtin.
my $result = bytes_to_hex_str $input
# bytes_to_kb
bytes_to_kb — unit conversions builtin.
my $result = bytes_to_kb $input
# bytes_to_mb
bytes_to_mb — unit conversions builtin.
my $result = bytes_to_mb $input
c — i/o extensions builtin.
my $result = c $x
# or in a pipeline:
@list |> map c |> p
# c256
c256 — color / ansi builtin. Alias for color256.
my $result = c256 $x
# or in a pipeline:
@list |> map c256 |> p
# c2s
c2s — string processing (uncategorized batch) builtin. Alias for camel_to_snake.
my $result = c2s $x
# or in a pipeline:
@list |> map c2s |> p
# c_to_f
c_to_f — unit conversions builtin.
my $result = c_to_f $input
# c_to_k
c_to_k — unit conversions builtin.
my $result = c_to_k $input
# caesar_shift
caesar_shift — string (batch 2) builtin.
my $result = caesar_shift $x
# or in a pipeline:
@list |> map caesar_shift |> p
# cagr
cagr — math / numeric (uncategorized batch) builtin.
my $result = cagr $x
# or in a pipeline:
@list |> map cagr |> p
# cal_to_joules
cal_to_joules — file stat / path builtin.
my $result = cal_to_joules $input
# camel_to_snake
camel_to_snake — string processing (uncategorized batch) builtin.
my $result = camel_to_snake $input
# camel_words
camel_words — string helpers (batch 4) builtin.
my $result = camel_words $x
# or in a pipeline:
@list |> map camel_words |> p
# cap
cap — trivial string ops builtin. Alias for capitalize.
my $result = cap $x
# or in a pipeline:
@list |> map cap |> p
# capacitance
capacitance — physics formulas builtin.
my $result = capacitance $x
# or in a pipeline:
@list |> map capacitance |> p
# capacitor_energy
capacitor_energy — physics formulas builtin.
my $result = capacitor_energy $x
# or in a pipeline:
@list |> map capacitor_energy |> p
# capenergy
capenergy — physics formulas builtin. Alias for capacitor_energy.
my $result = capenergy $x
# or in a pipeline:
@list |> map capenergy |> p
# capg
capg — extended stdlib builtin. Alias for capture_groups.
my $result = capg $x
# or in a pipeline:
@list |> map capg |> p
# capitalize
capitalize — trivial string ops builtin.
my $result = capitalize $x
# or in a pipeline:
@list |> map capitalize |> p
# capm
capm($risk_free, $beta, $market_return) — computes expected return using the Capital Asset Pricing Model: rf + β(rm - rf).
p capm(0.02, 1.2, 0.08) # 9.2% expected return
# capture_groups
capture_groups — extended stdlib builtin.
my $result = capture_groups $x
# or in a pipeline:
@list |> map capture_groups |> p
# cartesian_power
cartesian_power — extended stdlib batch 3 builtin.
my $result = cartesian_power $x
# or in a pipeline:
@list |> map cartesian_power |> p
# cartesian_product
cartesian_product — python/ruby stdlib builtin.
my $result = cartesian_product $x
# or in a pipeline:
@list |> map cartesian_product |> p
# cartpow
cartpow — extended stdlib batch 3 builtin. Alias for cartesian_power.
my $result = cartpow $x
# or in a pipeline:
@list |> map cartpow |> p
# cat
cat — i/o extensions builtin.
my $result = cat $x
# or in a pipeline:
@list |> map cat |> p
# catalan
catalan_constant (alias catalan) — Catalan's constant G ≈ 0.9159. Appears in combinatorics and series.
p catalan # 0.9159655941772190
# catn
catn — extended stdlib batch 3 builtin. Alias for catalan.
my $result = catn $x
# or in a pipeline:
@list |> map catn |> p
# cauchy_pdf
cauchy_pdf (alias cauchypdf) evaluates the Cauchy distribution PDF at x with location x0 and scale gamma.
p cauchypdf(0, 0, 1) # peak of standard Cauchy
# cbind
cbind — bind matrices by columns (horizontal join). Like R's cbind().
my $m = cbind([[1],[2]], [[3],[4]]) # [[1,3],[2,4]]
# cblend
cblend — color operations builtin. Alias for color_blend.
my $result = cblend $x
# or in a pipeline:
@list |> map cblend |> p
# cbrt
cbrt — trivial numeric / predicate builtins builtin.
my $result = cbrt $x
# or in a pipeline:
@list |> map cbrt |> p
# ccgraph
ccgraph — extended stdlib builtin. Alias for connected_components_graph.
my $result = ccgraph $x
# or in a pipeline:
@list |> map ccgraph |> p
# ccompl
ccompl — color operations builtin. Alias for color_complement.
my $result = ccompl $x
# or in a pipeline:
@list |> map ccompl |> p
# ccount
ccount — extended stdlib batch 3 builtin. Alias for count_chars.
my $result = ccount $x
# or in a pipeline:
@list |> map ccount |> p
# cdarken
cdarken — color operations builtin. Alias for color_darken.
my $result = cdarken $x
# or in a pipeline:
@list |> map cdarken |> p
# cdist
cdist — color operations builtin. Alias for color_distance.
my $result = cdist $x
# or in a pipeline:
@list |> map cdist |> p
# ceil
ceil — trivial numeric / predicate builtins builtin.
my $result = ceil $x
# or in a pipeline:
@list |> map ceil |> p
# ceil_div
ceil_div — trig / math (batch 2) builtin.
my $result = ceil_div $x
# or in a pipeline:
@list |> map ceil_div |> p
# ceil_each
ceil_each — trivial numeric helpers (batch 4) builtin.
my $result = ceil_each $x
# or in a pipeline:
@list |> map ceil_each |> p
# ceiling
ceiling — trivial numeric / predicate builtins builtin. Alias for ceil.
my $result = ceiling $x
# or in a pipeline:
@list |> map ceiling |> p
# center
center — trivial string ops builtin.
my $result = center $x
# or in a pipeline:
@list |> map center |> p
# center_text
center_text — extended stdlib builtin.
my $result = center_text $x
# or in a pipeline:
@list |> map center_text |> p
# centrip
centripetal_force($mass, $velocity, $radius) (alias centrip) — F = mv²/r for circular motion.
p centrip(1000, 20, 50) # 8000 N (car turning)
# centroid
centroid(@points) — computes the centroid (geometric center) of 2D points. Points as flat list [x1,y1,x2,y2,...]. Returns [$cx, $cy].
my @triangle = (0,0, 3,0, 0,3)
my $c = centroid(@triangle)
p @$c # (1, 1)
# cgray
cgray — color operations builtin. Alias for color_grayscale.
my $result = cgray $x
# or in a pipeline:
@list |> map cgray |> p
# chain_from
chain_from — python/ruby stdlib builtin.
my $result = chain_from $x
# or in a pipeline:
@list |> map chain_from |> p
# char_at
char_at — extended stdlib builtin.
my $result = char_at $x
# or in a pipeline:
@list |> map char_at |> p
# char_count
char_count — trivial string ops builtin.
my $result = char_count $x
# or in a pipeline:
@list |> map char_count |> p
# char_devices
char_devices — filesystem extensions builtin.
my $result = char_devices $x
# or in a pipeline:
@list |> map char_devices |> p
# char_frequencies
char_frequencies — string processing (uncategorized batch) builtin.
my $result = char_frequencies $x
# or in a pipeline:
@list |> map char_frequencies |> p
# char_length
char_length — string helpers (batch 4) builtin.
my $result = char_length $x
# or in a pipeline:
@list |> map char_length |> p
# charfreq
charfreq — string processing (uncategorized batch) builtin. Alias for char_frequencies.
my $result = charfreq $x
# or in a pipeline:
@list |> map charfreq |> p
# chars_to_string
chars_to_string — string helpers (batch 4) builtin.
my $result = chars_to_string $input
# chat
chat — extended stdlib builtin. Alias for char_at.
my $result = chat $x
# or in a pipeline:
@list |> map chat |> p
# chebyshev_distance
chebyshev_distance — math functions builtin.
my $result = chebyshev_distance $x
# or in a pipeline:
@list |> map chebyshev_distance |> p
# chfr
chfr — python/ruby stdlib builtin. Alias for chain_from.
my $result = chfr $x
# or in a pipeline:
@list |> map chfr |> p
# chi2
chi_square_stat(\@observed, \@expected) (alias chi2) — computes the chi-squared test statistic comparing observed vs expected frequencies. Useful for goodness-of-fit tests. Returns the chi-squared value.
my @obs = (10, 20, 30)
my @exp = (15, 20, 25)
p chi2(\@obs, \@exp) # chi-squared statistic
# chi2_pdf
chi2_pdf (alias chi2pdf) evaluates the chi-squared distribution PDF at x with k degrees of freedom.
p chi2pdf(3.84, 1) # p-value boundary for df=1
# chinese_remainder
chinese_remainder (alias crt) solves a system of simultaneous congruences via the Chinese Remainder Theorem.
p crt([2,3,2], [3,5,7]) # 23 (x≡2 mod 3, x≡3 mod 5, x≡2 mod 7)
# chirp
chirp generates a linear chirp signal sweeping from f0 to f1 Hz. Args: n_samples, f0, f1, sample_rate.
my @sig = @{chirp(1000, 100, 1000, 8000)}
# chkstr
chkstr — string processing (uncategorized batch) builtin. Alias for chunk_string.
my $result = chkstr $x
# or in a pipeline:
@list |> map chkstr |> p
# chkw
chkw — ruby enumerable extras builtin. Alias for chunk_while.
my $result = chkw $x
# or in a pipeline:
@list |> map chkw |> p
# cholesky
matrix_cholesky (aliases mchol, cholesky) computes the Cholesky decomposition of a symmetric positive-definite matrix. Returns lower-triangular L where M = L·L^T.
my $L = cholesky([[4,2],[2,3]])
# chomp_str
chomp_str — string helpers (batch 4) builtin.
my $result = chomp_str $x
# or in a pipeline:
@list |> map chomp_str |> p
# chop_str
chop_str — string helpers (batch 4) builtin.
my $result = chop_str $x
# or in a pipeline:
@list |> map chop_str |> p
# chroot
chroot — process / system builtin.
my $result = chroot $x
# or in a pipeline:
@list |> map chroot |> p
# chull
convex_hull(@points) (alias chull) — computes the convex hull of a set of 2D points. Points given as flat list [x1,y1,x2,y2,...]. Returns the hull vertices in counterclockwise order. Uses Graham scan algorithm.
my @pts = (0,0, 1,1, 2,0, 1,0.5)
my $hull = chull(@pts)
p @$hull
# chunk_by
chunk_by — functional / iterator builtin.
my $result = chunk_by $x
# or in a pipeline:
@list |> map chunk_by |> p
# chunk_n
chunk_n — collection (batch 2) builtin. Alias for group_of_n.
my $result = chunk_n $x
# or in a pipeline:
@list |> map chunk_n |> p
# chunk_string
chunk_string — string processing (uncategorized batch) builtin.
my $result = chunk_string $x
# or in a pipeline:
@list |> map chunk_string |> p
# chunk_while
chunk_while — ruby enumerable extras builtin.
my $result = chunk_while $x
# or in a pipeline:
@list |> map chunk_while |> p
# ci
confidence_interval (alias ci) computes a confidence interval for the mean. Default 95%. Returns [lower, upper].
my ($lo, $hi) = @{ci([10,12,14,11,13])}
p "95%% CI: $lo to $hi"
my ($lo99, $hi99) = @{ci([10,12,14,11,13], 0.99)}
# cinv
cinv — extended stdlib batch 3 builtin. Alias for count_inversions.
my $result = cinv $x
# or in a pipeline:
@list |> map cinv |> p
# cinvert
cinvert — color operations builtin. Alias for color_invert.
my $result = cinvert $x
# or in a pipeline:
@list |> map cinvert |> p
# circ3pt
circ3pt — geometry (extended) builtin. Alias for circle_from_three_points.
my $result = circ3pt $x
# or in a pipeline:
@list |> map circ3pt |> p
# circle_from_three_points
circle_from_three_points($x1, $y1, $x2, $y2, $x3, $y3) (alias circ3) — finds the unique circle passing through three non-collinear points. Returns [$cx, $cy, $radius] or undef if collinear.
my $c = circ3(0, 0, 1, 0, 0.5, 0.866)
p "center=($c->[0], $c->[1]) r=$c->[2]"
# circum
circum — geometry / physics builtin. Alias for circumference.
my $result = circum $x
# or in a pipeline:
@list |> map circum |> p
# circumference
circumference — geometry / physics builtin.
my $result = circumference $x
# or in a pipeline:
@list |> map circumference |> p
# clamp_array
clamp_array — matrix operations (uncategorized batch) builtin.
my $result = clamp_array $x
# or in a pipeline:
@list |> map clamp_array |> p
# clamp_each
clamp_each — conversion / utility (batch 4) builtin.
my $result = clamp_each $x
# or in a pipeline:
@list |> map clamp_each |> p
# clamp_fn
clamp_fn — functional combinators builtin.
my $result = clamp_fn $x
# or in a pipeline:
@list |> map clamp_fn |> p
# clamp_int
clamp_int — extended stdlib builtin.
my $result = clamp_int $x
# or in a pipeline:
@list |> map clamp_int |> p
# clamp_list
clamp_list — functional combinators builtin.
my $result = clamp_list $x
# or in a pipeline:
@list |> map clamp_list |> p
# clarr
clarr — matrix operations (uncategorized batch) builtin. Alias for clamp_array.
my $result = clarr $x
# or in a pipeline:
@list |> map clarr |> p
# clighten
clighten — color operations builtin. Alias for color_lighten.
my $result = clighten $x
# or in a pipeline:
@list |> map clighten |> p
# clpi
clpi — extended stdlib builtin. Alias for clamp_int.
my $result = clpi $x
# or in a pipeline:
@list |> map clpi |> p
# cm_to_inches
cm_to_inches — unit conversions builtin.
my $result = cm_to_inches $input
# cmap
cmap — additional missing stdlib functions builtin. Alias for concat_map.
my $result = cmap $x
# or in a pipeline:
@list |> map cmap |> p
# cmd_exists
cmd_exists — process / env builtin.
my $result = cmd_exists $x
# or in a pipeline:
@list |> map cmd_exists |> p
# cmp_num
cmp_num — file stat / path builtin. Alias for spaceship.
my $result = cmp_num $x
# or in a pipeline:
@list |> map cmp_num |> p
# cmp_str
cmp_str — file stat / path builtin.
my $result = cmp_str $x
# or in a pipeline:
@list |> map cmp_str |> p
# cmpr
cmpr — python/ruby stdlib builtin. Alias for compress.
my $result = cmpr $x
# or in a pipeline:
@list |> map cmpr |> p
# cnt
count (aliases len, cnt) returns the number of elements in a list, the number of characters in a string, the number of key-value pairs in a hash, or the cardinality of a set. It is a universal length function that dispatches based on the type of its argument. This replaces the need to use scalar @array or length $string — cnt is shorter and works uniformly across types. In a pipeline, it naturally reduces a collection to a single number.
Note: size is NOT a count alias — it returns a file's byte size (see size).
my @arr = (1, 2, 3, 4, 5)
p cnt @arr # 5
p len "hello" # 5
my %h = (a => 1, b => 2)
p cnt \%h # 2
rl("file.txt") |> cnt |> p # line count
# cntw
cntw — ruby enumerable extras builtin. Alias for count_while.
my $result = cntw $x
# or in a pipeline:
@list |> map cntw |> p
# coalesce
coalesce — functional combinators builtin.
my $result = coalesce $x
# or in a pipeline:
@list |> map coalesce |> p
# code_point_at
code_point_at — extended stdlib builtin.
my $result = code_point_at $x
# or in a pipeline:
@list |> map code_point_at |> p
# coeff_of_variation
coeff_of_variation — math / numeric (uncategorized batch) builtin.
my $result = coeff_of_variation $x
# or in a pipeline:
@list |> map coeff_of_variation |> p
# cohen_d
cohen_d (alias cohend) computes Cohen's d effect size between two samples. Small=0.2, medium=0.5, large=0.8.
p cohend([1,2,3], [4,5,6]) # large effect
# coin_flip
coin_flip — random builtin.
my $result = coin_flip $x
# or in a pipeline:
@list |> map coin_flip |> p
# colMeans
col_means (alias colMeans) — mean of each column. Like R's colMeans().
p colMeans([[2,4],[6,8]]) # [4, 6]
# colSums
col_sums (alias colSums) — sum of each column. Like R's colSums().
p colSums([[1,2],[3,4]]) # [4, 6]
# collapse_whitespace
collapse_whitespace — string processing (uncategorized batch) builtin.
my $result = collapse_whitespace $x
# or in a pipeline:
@list |> map collapse_whitespace |> p
# collatz
collatz — math / numeric (uncategorized batch) builtin. Alias for collatz_length.
my $result = collatz $x
# or in a pipeline:
@list |> map collatz |> p
# collatz_length
collatz_length — math / numeric (uncategorized batch) builtin.
my $result = collatz_length $x
# or in a pipeline:
@list |> map collatz_length |> p
# collatz_sequence
collatz_sequence — math / numeric (uncategorized batch) builtin.
my $result = collatz_sequence $x
# or in a pipeline:
@list |> map collatz_sequence |> p
# collatzseq
collatzseq — math / numeric (uncategorized batch) builtin. Alias for collatz_sequence.
my $result = collatzseq $x
# or in a pipeline:
@list |> map collatzseq |> p
# collws
collws — string processing (uncategorized batch) builtin. Alias for collapse_whitespace.
my $result = collws $x
# or in a pipeline:
@list |> map collws |> p
# color256
color256 — color / ansi builtin.
my $result = color256 $x
# or in a pipeline:
@list |> map color256 |> p
# color_blend
color_blend — color operations builtin.
my $result = color_blend $x
# or in a pipeline:
@list |> map color_blend |> p
# color_complement
color_complement — color operations builtin.
my $result = color_complement $x
# or in a pipeline:
@list |> map color_complement |> p
# color_darken
color_darken — color operations builtin.
my $result = color_darken $x
# or in a pipeline:
@list |> map color_darken |> p
# color_distance
color_distance — color operations builtin.
my $result = color_distance $x
# or in a pipeline:
@list |> map color_distance |> p
# color_grayscale
color_grayscale — color operations builtin.
my $result = color_grayscale $x
# or in a pipeline:
@list |> map color_grayscale |> p
# color_invert
color_invert — color operations builtin.
my $result = color_invert $x
# or in a pipeline:
@list |> map color_invert |> p
# color_lighten
color_lighten — color operations builtin.
my $result = color_lighten $x
# or in a pipeline:
@list |> map color_lighten |> p
# comb
combinations($n, $r) (alias comb) — number of ways to choose r items from n. Formula: n!/(r!(n-r)!). Order doesn't matter.
p comb(5, 3) # 10 (ways to choose 3 items from 5)
p comb(52, 5) # 2598960 (poker hands)
# combinations_rep
combinations_rep — additional missing stdlib functions builtin.
my $result = combinations_rep $x
# or in a pipeline:
@list |> map combinations_rep |> p
# combrep
combrep — additional missing stdlib functions builtin. Alias for combinations_rep.
my $result = combrep $x
# or in a pipeline:
@list |> map combrep |> p
# common_prefix
common_prefix — extended stdlib builtin.
my $result = common_prefix $x
# or in a pipeline:
@list |> map common_prefix |> p
# common_suffix
common_suffix — extended stdlib builtin.
my $result = common_suffix $x
# or in a pipeline:
@list |> map common_suffix |> p
# compare_versions
compare_versions — file stat / path builtin.
my $result = compare_versions $x
# or in a pipeline:
@list |> map compare_versions |> p
# compound_interest
compound_interest — physics formulas builtin.
my $result = compound_interest $x
# or in a pipeline:
@list |> map compound_interest |> p
# compress
compress — python/ruby stdlib builtin.
my $result = compress $x
# or in a pipeline:
@list |> map compress |> p
# concat_map
concat_map — additional missing stdlib functions builtin.
my $result = concat_map $x
# or in a pipeline:
@list |> map concat_map |> p
# cond
matrix_cond (aliases mcond, cond) estimates the condition number of a matrix (ratio of largest to smallest singular value). Large values indicate ill-conditioning.
p cond([[1,0],[0,1]]) # 1 (perfect)
p cond([[1,2],[2,4]]) # Inf (singular)
# cone_volume
cone_volume — geometry / physics builtin.
my $result = cone_volume $x
# or in a pipeline:
@list |> map cone_volume |> p
# conevol
conevol — geometry / physics builtin. Alias for cone_volume.
my $result = conevol $x
# or in a pipeline:
@list |> map conevol |> p
# confint
confint_lm (alias confint) — confidence intervals for model coefficients. Returns hash with intercept_lower/upper, slope_lower/upper.
my $ci = confint(lm([1,2,3,4,5], [2,4,5,4,5]))
p $ci->{slope_lower}
# conj
conj — algebraic match builtin.
my $result = conj $x
# or in a pipeline:
@list |> map conj |> p
# connected_components_graph
connected_components_graph — extended stdlib builtin.
my $result = connected_components_graph $x
# or in a pipeline:
@list |> map connected_components_graph |> p
# cons
cons — algebraic match builtin.
my $result = cons $x
# or in a pipeline:
@list |> map cons |> p
# consecutive_eq
consecutive_eq — collection more builtin.
my $result = consecutive_eq $x
# or in a pipeline:
@list |> map consecutive_eq |> p
# consecutive_pairs
consecutive_pairs — list helpers (batch 4) builtin.
my $result = consecutive_pairs $x
# or in a pipeline:
@list |> map consecutive_pairs |> p
# const_fn
const_fn — functional primitives builtin.
my $result = const_fn $x
# or in a pipeline:
@list |> map const_fn |> p
# constant_case
constant_case — string (batch 2) builtin.
my $result = constant_case $x
# or in a pipeline:
@list |> map constant_case |> p
# contains
contains — trivial string ops builtin.
my $result = contains $x
# or in a pipeline:
@list |> map contains |> p
# contains_all
contains_all — string (batch 2) builtin.
my $result = contains_all $x
# or in a pipeline:
@list |> map contains_all |> p
# contains_any
contains_any — string (batch 2) builtin.
my $result = contains_any $x
# or in a pipeline:
@list |> map contains_any |> p
# contains_elem
contains_elem — list helpers (batch 4) builtin.
my $result = contains_elem $x
# or in a pipeline:
@list |> map contains_elem |> p
# contcomp
contcomp — finance (extended) builtin. Alias for continuous_compound.
my $result = contcomp $x
# or in a pipeline:
@list |> map contcomp |> p
# continuous_compound
continuous_compound($principal, $rate, $time) (alias ccomp) — computes future value with continuous compounding: P × e^(rt).
p ccomp(1000, 0.05, 10) # ~1648.72
# conv
conv — math / numeric (uncategorized batch) builtin. Alias for convolution.
my $result = conv $x
# or in a pipeline:
@list |> map conv |> p
# converge
converge — functional combinators builtin.
my $result = converge $x
# or in a pipeline:
@list |> map converge |> p
# convolution
convolution — math / numeric (uncategorized batch) builtin.
my $result = convolution $x
# or in a pipeline:
@list |> map convolution |> p
# copy_sign
copy_sign — extended stdlib builtin.
my $result = copy_sign $x
# or in a pipeline:
@list |> map copy_sign |> p
# copy_within
copy_within — additional missing stdlib functions builtin.
my $result = copy_within $x
# or in a pipeline:
@list |> map copy_within |> p
# copysign
copysign — math functions builtin.
my $result = copysign $x
# or in a pipeline:
@list |> map copysign |> p
# cor_mat
cor_matrix (alias cor_mat) — correlation matrix from observations. Each row is an observation vector.
my $R = cor_mat([[1,2],[3,4],[5,6]]) # 2x2 correlation matrix
# corr
corr — extended stdlib builtin. Alias for correlation.
my $result = corr $x
# or in a pipeline:
@list |> map corr |> p
# correlation
correlation — extended stdlib builtin.
my $result = correlation $x
# or in a pipeline:
@list |> map correlation |> p
# cosh
cosh — trig / math (batch 2) builtin.
my $result = cosh $x
# or in a pipeline:
@list |> map cosh |> p
# cosine_similarity
cosine_similarity — math functions builtin.
my $result = cosine_similarity $x
# or in a pipeline:
@list |> map cosine_similarity |> p
# cot
cot returns the cotangent (1/tan) of an angle in radians.
p cot(0.7854) # ≈ 1.0 (cot 45°)
# coulomb
coulomb_force($q1, $q2, $r) (alias coulomb) — Coulomb's law: F = kq₁q₂/r². Charges in Coulombs, distance in meters.
p coulomb(1e-6, 1e-6, 0.1) # ~0.9 N (two 1μC charges 10cm apart)
# coulomb_constant
coulomb_constant — physics constants builtin.
my $result = coulomb_constant $x
# or in a pipeline:
@list |> map coulomb_constant |> p
# count_by
count_by — pipeline / string helpers builtin. Alias for drop.
my $result = count_by $x
# or in a pipeline:
@list |> map count_by |> p
# count_bytes
count_bytes — extended stdlib batch 3 builtin.
my $result = count_bytes $x
# or in a pipeline:
@list |> map count_bytes |> p
# count_char
count_char — string (batch 2) builtin.
my $result = count_char $x
# or in a pipeline:
@list |> map count_char |> p
# count_chars
count_chars — extended stdlib batch 3 builtin.
my $result = count_chars $x
# or in a pipeline:
@list |> map count_chars |> p
# count_consonants
count_consonants — string (batch 2) builtin.
my $result = count_consonants $x
# or in a pipeline:
@list |> map count_consonants |> p
# count_digits
count_digits — counters (batch 4) builtin.
my $result = count_digits $x
# or in a pipeline:
@list |> map count_digits |> p
# count_elem
count_elem — list helpers (batch 4) builtin.
my $result = count_elem $x
# or in a pipeline:
@list |> map count_elem |> p
# count_eq
count_eq — more list helpers builtin.
my $result = count_eq $x
# or in a pipeline:
@list |> map count_eq |> p
# count_inversions
count_inversions — extended stdlib batch 3 builtin.
my $result = count_inversions $x
# or in a pipeline:
@list |> map count_inversions |> p
# count_letters
count_letters — counters (batch 4) builtin.
my $result = count_letters $x
# or in a pipeline:
@list |> map count_letters |> p
# count_lines
count_lines — extended stdlib batch 3 builtin.
my $result = count_lines $x
# or in a pipeline:
@list |> map count_lines |> p
# count_lower
count_lower — counters (batch 4) builtin.
my $result = count_lower $x
# or in a pipeline:
@list |> map count_lower |> p
# count_match
count_match — counters (batch 4) builtin.
my $result = count_match $x
# or in a pipeline:
@list |> map count_match |> p
# count_ne
count_ne — more list helpers builtin.
my $result = count_ne $x
# or in a pipeline:
@list |> map count_ne |> p
# count_punctuation
count_punctuation — counters (batch 4) builtin.
my $result = count_punctuation $x
# or in a pipeline:
@list |> map count_punctuation |> p
# count_regex_matches
count_regex_matches — file stat / path builtin.
my $result = count_regex_matches $x
# or in a pipeline:
@list |> map count_regex_matches |> p
# count_spaces
count_spaces — counters (batch 4) builtin.
my $result = count_spaces $x
# or in a pipeline:
@list |> map count_spaces |> p
# count_substring
count_substring — file stat / path builtin.
my $result = count_substring $x
# or in a pipeline:
@list |> map count_substring |> p
# count_upper
count_upper — counters (batch 4) builtin.
my $result = count_upper $x
# or in a pipeline:
@list |> map count_upper |> p
# count_vowels
count_vowels — string (batch 2) builtin.
my $result = count_vowels $x
# or in a pipeline:
@list |> map count_vowels |> p
# count_while
count_while — ruby enumerable extras builtin.
my $result = count_while $x
# or in a pipeline:
@list |> map count_while |> p
# count_words
count_words — extended stdlib batch 3 builtin.
my $result = count_words $x
# or in a pipeline:
@list |> map count_words |> p
# counter
counter — data structure helpers builtin.
my $result = counter $x
# or in a pipeline:
@list |> map counter |> p
# counter_most_common
counter_most_common — data structure helpers builtin.
my $result = counter_most_common $x
# or in a pipeline:
@list |> map counter_most_common |> p
# cov
cov — extended stdlib builtin. Alias for covariance.
my $result = cov $x
# or in a pipeline:
@list |> map cov |> p
# cov2cor
cov2cor — convert covariance matrix to correlation matrix. Like R's cov2cor().
my $cor = cov2cor(cov_mat($data))
# cov_mat
cov_matrix (alias cov_mat) — covariance matrix from observations.
my $S = cov_mat([[1,2],[3,4],[5,6]])
# covariance
covariance — extended stdlib builtin.
my $result = covariance $x
# or in a pipeline:
@list |> map covariance |> p
# cpat
cpat — extended stdlib builtin. Alias for code_point_at.
my $result = cpat $x
# or in a pipeline:
@list |> map cpat |> p
# cpfx
cpfx — extended stdlib builtin. Alias for common_prefix.
my $result = cpfx $x
# or in a pipeline:
@list |> map cpfx |> p
# cprod
cprod — python/ruby stdlib builtin. Alias for cartesian_product.
my $result = cprod $x
# or in a pipeline:
@list |> map cprod |> p
# cprod_acc
cprod_acc — extended stdlib builtin. Alias for cumprod.
my $result = cprod_acc $x
# or in a pipeline:
@list |> map cprod_acc |> p
# cpsgn
cpsgn — extended stdlib builtin. Alias for copy_sign.
my $result = cpsgn $x
# or in a pipeline:
@list |> map cpsgn |> p
# cpu_count
cpu_count — more process / system builtin.
my $result = cpu_count $x
# or in a pipeline:
@list |> map cpu_count |> p
# cpyw
cpyw — additional missing stdlib functions builtin. Alias for copy_within.
my $result = cpyw $x
# or in a pipeline:
@list |> map cpyw |> p
# cr
cr — data / network builtin. Alias for csv_read.
my $result = cr $x
# or in a pipeline:
@list |> map cr |> p
# critang
critang — physics formulas builtin. Alias for critical_angle.
my $result = critang $x
# or in a pipeline:
@list |> map critang |> p
# critical_angle
critical_angle — physics formulas builtin.
my $result = critical_angle $x
# or in a pipeline:
@list |> map critical_angle |> p
# cross_correlation
cross_correlation(\@a, \@b) (alias xcorr) — computes the cross-correlation of two signals. Measures similarity as a function of time-lag. Peak location indicates time delay between signals.
my $xcor = xcorr(\@signal1, \@signal2)
my $lag = max_index(@$xcor) # find peak lag
# cross_entropy
cross_entropy — math / numeric (uncategorized batch) builtin.
my $result = cross_entropy $x
# or in a pipeline:
@list |> map cross_entropy |> p
# cross_product
cross_product — extended stdlib builtin.
my $result = cross_product $x
# or in a pipeline:
@list |> map cross_product |> p
# crossp
crossp — extended stdlib builtin. Alias for cross_product.
my $result = crossp $x
# or in a pipeline:
@list |> map crossp |> p
# crossprod
crossprod — cross product t(M) * M (R's crossprod). Efficiently computes M^T M without explicit transpose.
my $ata = crossprod([[1,2],[3,4]]) # [[10,14],[14,20]]
# csc
csc returns the cosecant (1/sin) of an angle in radians.
p csc(1.5708) # ≈ 1.0 (csc 90°)
# csfx
csfx — extended stdlib builtin. Alias for common_suffix.
my $result = csfx $x
# or in a pipeline:
@list |> map csfx |> p
# cspline
cubic_spline (aliases cspline, spline) performs natural cubic spline interpolation. Takes xs, ys, and a query point x.
p spline([0,1,2,3], [0,1,0,1], 1.5) # smooth interpolation
# csum
csum — extended stdlib builtin. Alias for cumsum.
my $result = csum $x
# or in a pipeline:
@list |> map csum |> p
# ctime
ctime — file stat / path builtin. Alias for file_ctime.
my $result = ctime $x
# or in a pipeline:
@list |> map ctime |> p
# ctxt
ctxt — extended stdlib builtin. Alias for center_text.
my $result = ctxt $x
# or in a pipeline:
@list |> map ctxt |> p
# cube_fn
cube_fn — trig / math (batch 2) builtin.
my $result = cube_fn $x
# or in a pipeline:
@list |> map cube_fn |> p
# cube_root
cube_root — math functions builtin.
my $result = cube_root $x
# or in a pipeline:
@list |> map cube_root |> p
# cubes_seq
cubes_seq — sequences builtin.
my $result = cubes_seq $x
# or in a pipeline:
@list |> map cubes_seq |> p
# cummax
cummax — cumulative maximum. Each element is the max of all elements up to that position.
p cummax([3,1,4,1,5,9]) # [3,3,4,4,5,9]
# cummin
cummin — cumulative minimum.
p cummin([9,5,1,4,3]) # [9,5,1,1,1]
# cumprod
cumprod — extended stdlib builtin.
my $result = cumprod $x
# or in a pipeline:
@list |> map cumprod |> p
# cumsum
cumsum — extended stdlib builtin.
my $result = cumsum $x
# or in a pipeline:
@list |> map cumsum |> p
# cumtrapz
cumtrapz cumulative trapezoidal integration. Returns running integral array.
my @y = (1, 2, 3, 4)
my @F = @{cumtrapz(\@y)} # [0, 1.5, 4.0, 7.5]
# cups_to_ml
cups_to_ml — file stat / path builtin.
my $result = cups_to_ml $input
# cut
cut — bin continuous values into intervals. Returns integer bin indices. Like R's cut().
p cut([1.5, 3.2, 7.8], [0, 2, 5, 10]) # [1, 2, 3]
# cutree
cutree — cut a dendrogram into k clusters. Takes merge list from hclust and k. Returns cluster assignments. Like R's cutree().
my @clusters = @{cutree(hclust(dist_mat($data)), 3)}
# cv
cv — math / numeric (uncategorized batch) builtin. Alias for coeff_of_variation.
my $result = cv $x
# or in a pipeline:
@list |> map cv |> p
# cw
cw — data / network builtin. Alias for csv_write.
my $result = cw $x
# or in a pipeline:
@list |> map cw |> p
# cwd
cwd — more process / system builtin.
my $result = cwd $x
# or in a pipeline:
@list |> map cwd |> p
# cyan
cyan — color / ansi builtin. Alias for red.
my $result = cyan $x
# or in a pipeline:
@list |> map cyan |> p
# cyan_bold
cyan_bold — color / ansi builtin. Alias for red.
my $result = cyan_bold $x
# or in a pipeline:
@list |> map cyan_bold |> p
# cyber_banner
cyber_banner (alias neon_banner) — large neon block-letter banner with gradient coloring and border. Args: text.
p cyber_banner("STRYKE")
p cyber_banner("HACK THE PLANET")
# cyber_circuit
cyber_circuit — circuit board pattern with traces, intersections, and glowing nodes. Args: [width, height, seed].
p cyber_circuit() # 60x20 default
p cyber_circuit(80, 30, 42) # custom
# cyber_city
cyber_city — procedural neon cityscape with buildings, windows, stars, and antennas. Args: [width, height, seed]. Output: ANSI-colored string for terminal.
p cyber_city() # 80x24 default
p cyber_city(120, 40, 99) # custom size and seed
# cyber_eye
cyber_eye — cyberpunk all-seeing eye motif with layered glow. Args: [size]. Size: "small" (default) or "large".
p cyber_eye() # small eye
p cyber_eye("large") # large eye
# cyber_glitch
cyber_glitch (alias glitch_text) — glitch-distort text with ANSI corruption, screen tears, and neon color bleeding. Args: text [, intensity 1-10].
p cyber_glitch("SYSTEM BREACH", 7)
p cyber_glitch("hello world")
# cyber_grid
cyber_grid — retro perspective grid with vanishing point and neon glow (Tron/synthwave style). Args: [width, height].
p cyber_grid() # 80x24 default
p cyber_grid(120, 30) # wider grid
# cyber_rain
cyber_rain (alias matrix_rain) — matrix-style digital rain with Japanese katakana and green phosphor glow. Args: [width, height, seed].
p cyber_rain() # 80x24 default
p cyber_rain(120, 40, 42) # custom
# cyber_skull
cyber_skull — neon skull ASCII art with glitch effects. Args: [size]. Size: "small" (default) or "large".
p cyber_skull() # small skull
p cyber_skull("large") # large skull
# cyc
cyc — algebraic match builtin. Alias for cycle.
my $result = cyc $x
# or in a pipeline:
@list |> map cyc |> p
# cycle
cycle — algebraic match builtin.
my $result = cycle $x
# or in a pipeline:
@list |> map cycle |> p
# cycle_n
cycle_n — collection (batch 2) builtin. Alias for repeat_list.
my $result = cycle_n $x
# or in a pipeline:
@list |> map cycle_n |> p
# cylinder_volume
cylinder_volume — geometry / physics builtin.
my $result = cylinder_volume $x
# or in a pipeline:
@list |> map cylinder_volume |> p
# cylvol
cylvol — geometry / physics builtin. Alias for cylinder_volume.
my $result = cylvol $x
# or in a pipeline:
@list |> map cylvol |> p
d — filesystem extensions builtin.
my $result = d $x
# or in a pipeline:
@list |> map d |> p
# d2comp
d2comp — misc / utility builtin. Alias for degrees_to_compass.
my $result = d2comp $x
# or in a pipeline:
@list |> map d2comp |> p
# d2r
d2r — trivial numeric / predicate builtins builtin. Alias for deg_to_rad.
my $result = d2r $x
# or in a pipeline:
@list |> map d2r |> p
# day_of_year
day_of_year — extended stdlib batch 3 builtin.
my $result = day_of_year $x
# or in a pipeline:
@list |> map day_of_year |> p
# days_in_month
days_in_month — date helpers builtin.
my $result = days_in_month $x
# or in a pipeline:
@list |> map days_in_month |> p
# days_in_month_fn
days_in_month_fn — extended stdlib batch 3 builtin.
my $result = days_in_month_fn $x
# or in a pipeline:
@list |> map days_in_month_fn |> p
# days_to_hours
days_to_hours — unit conversions builtin.
my $result = days_to_hours $input
# days_to_seconds
days_to_seconds — unit conversions builtin.
my $result = days_to_seconds $input
# daysinmo
daysinmo — extended stdlib batch 3 builtin. Alias for days_in_month_fn.
my $result = daysinmo $x
# or in a pipeline:
@list |> map daysinmo |> p
# db
db — physics formulas builtin. Alias for decibel_ratio.
my $result = db $x
# or in a pipeline:
@list |> map db |> p
# dbinom
dbinom — binomial PMF. P(X = k) for Binom(n, p). Args: k, n, p.
p dbinom(5, 10, 0.5) # P(exactly 5 heads in 10 flips)
# dbmclose
dbmclose — ipc builtin.
my $result = dbmclose $x
# or in a pipeline:
@list |> map dbmclose |> p
# dbmopen
dbmopen — ipc builtin.
my $result = dbmopen $x
# or in a pipeline:
@list |> map dbmopen |> p
# dct
dct computes the Type-II Discrete Cosine Transform of a signal. Used in JPEG, MP3, and speech processing.
my @coeffs = @{dct([1,2,3,4])}
# ddt
ddt — extended stdlib builtin. Alias for dedent.
my $result = ddt $x
# or in a pipeline:
@list |> map ddt |> p
# de_broglie_wavelength
de_broglie_wavelength($mass, $velocity) (alias debroglie) — quantum wavelength λ = h/(mv). Defaults to electron mass.
p debroglie(9.109e-31, 1e6) # ~7.3e-10 m (electron at 1 km/s)
# debug_val
debug_val — functional combinators builtin.
my $result = debug_val $x
# or in a pipeline:
@list |> map debug_val |> p
# dec
dec — pipeline / string helpers builtin.
my $result = dec $x
# or in a pipeline:
@list |> map dec |> p
# dec_each
dec_each — trivial numeric helpers (batch 4) builtin.
my $result = dec_each $x
# or in a pipeline:
@list |> map dec_each |> p
# decibel_ratio
decibel_ratio — physics formulas builtin.
my $result = decibel_ratio $x
# or in a pipeline:
@list |> map decibel_ratio |> p
# dedent
dedent — extended stdlib builtin.
my $result = dedent $x
# or in a pipeline:
@list |> map dedent |> p
# dedent_text
dedent_text — string processing (uncategorized batch) builtin.
my $result = dedent_text $x
# or in a pipeline:
@list |> map dedent_text |> p
# default_to
default_to — functional combinators builtin.
my $result = default_to $x
# or in a pipeline:
@list |> map default_to |> p
# defaultdict
defaultdict — data structure helpers builtin.
my $result = defaultdict $x
# or in a pipeline:
@list |> map defaultdict |> p
# deficient_numbers
deficient_numbers — number theory / primes builtin.
my $result = deficient_numbers $x
# or in a pipeline:
@list |> map deficient_numbers |> p
# defined_count
defined_count — counters (batch 4) builtin.
my $result = defined_count $x
# or in a pipeline:
@list |> map defined_count |> p
# definums
definums — number theory / primes builtin. Alias for deficient_numbers.
my $result = definums $x
# or in a pipeline:
@list |> map definums |> p
# deg_to_rad
deg_to_rad — trivial numeric / predicate builtins builtin.
my $result = deg_to_rad $input
# degrees
degrees — trig / math (batch 2) builtin.
my $result = degrees $x
# or in a pipeline:
@list |> map degrees |> p
# degrees_to_compass
degrees_to_compass — misc / utility builtin.
my $result = degrees_to_compass $input
# dela
dela — go/general functional utilities builtin. Alias for delete_at.
my $result = dela $x
# or in a pipeline:
@list |> map dela |> p
# delby
delby — additional missing stdlib functions builtin. Alias for delete_by.
my $result = delby $x
# or in a pipeline:
@list |> map delby |> p
# delete_at
delete_at — go/general functional utilities builtin.
my $result = delete_at $x
# or in a pipeline:
@list |> map delete_at |> p
# delete_by
delete_by — additional missing stdlib functions builtin.
my $result = delete_by $x
# or in a pipeline:
@list |> map delete_by |> p
# delete_first
delete_first — additional missing stdlib functions builtin.
my $result = delete_first $x
# or in a pipeline:
@list |> map delete_first |> p
# delfst
delfst — additional missing stdlib functions builtin. Alias for delete_first.
my $result = delfst $x
# or in a pipeline:
@list |> map delfst |> p
# demorse
demorse — encoding / phonetics builtin. Alias for morse_decode.
my $result = demorse $x
# or in a pipeline:
@list |> map demorse |> p
# dense_rank
dense_rank — extended stdlib builtin.
my $result = dense_rank $x
# or in a pipeline:
@list |> map dense_rank |> p
# density
density — kernel density estimation with Gaussian kernel and Silverman bandwidth. Returns [[x_grid], [density_values]]. Like R's density().
my ($x, $y) = @{density([1,2,2,3,3,3,4,4,5])}
# $x is grid of 512 points, $y is estimated density
# depdbl
depdbl — math / numeric (uncategorized batch) builtin. Alias for depreciation_double.
my $result = depdbl $x
# or in a pipeline:
@list |> map depdbl |> p
# deplin
deplin — math / numeric (uncategorized batch) builtin. Alias for depreciation_linear.
my $result = deplin $x
# or in a pipeline:
@list |> map deplin |> p
# depreciation_double
depreciation_double — math / numeric (uncategorized batch) builtin.
my $result = depreciation_double $x
# or in a pipeline:
@list |> map depreciation_double |> p
# depreciation_linear
depreciation_linear — math / numeric (uncategorized batch) builtin.
my $result = depreciation_linear $x
# or in a pipeline:
@list |> map depreciation_linear |> p
# derangements
derangements counts the number of derangements (subfactorial !n) — permutations with no fixed points.
p derangements(4) # 9
p derangements(5) # 44
# deroman
deroman — roman numerals builtin. Alias for roman_to_int.
my $result = deroman $x
# or in a pipeline:
@list |> map deroman |> p
# describe
describe(@data) — returns a hashref with comprehensive descriptive statistics: count, mean, std, min, 25%, 50%, 75%, max. Similar to pandas DataFrame.describe().
my $stats = describe(1:100)
p $stats->{mean} # 50.5
p $stats->{std} # ~29.0
p $stats->{"50%"} # median
# det
matrix_det_general (aliases mdetg, det) computes the determinant of any NxN matrix via LU decomposition.
p det([[1,2,3],[4,5,6],[7,8,0]]) # 27
# detect
detect — functional / iterator builtin.
my $result = detect $x
# or in a pipeline:
@list |> map detect |> p
# dew_point
dew_point — physics formulas builtin.
my $result = dew_point $x
# or in a pipeline:
@list |> map dew_point |> p
# df
df — data / network builtin. Alias for dataframe.
my $result = df $x
# or in a pipeline:
@list |> map df |> p
# dfact
dfact — math formulas builtin. Alias for double_factorial.
my $result = dfact $x
# or in a pipeline:
@list |> map dfact |> p
# dfs
dfs — extended stdlib builtin. Alias for dfs_traverse.
my $result = dfs $x
# or in a pipeline:
@list |> map dfs |> p
# dfs_traverse
dfs_traverse — extended stdlib builtin.
my $result = dfs_traverse $x
# or in a pipeline:
@list |> map dfs_traverse |> p
# dft
dft(\@signal) — computes the Discrete Fourier Transform. Returns arrayref of complex numbers as [re, im] pairs. O(n²) reference implementation; for large n, use FFT libraries.
my @signal = map { sin(2 * 3.14159 * _ / 64) } 0:63
my $spectrum = dft(\@signal)
# dgeom
dgeom — geometric PMF P(X=k). Args: k, prob.
p dgeom(3, 0.5) # P(first success on 4th trial)
# dhyper
dhyper — hypergeometric PMF. Args: k, m (white), n (black), nn (draws).
p dhyper(2, 5, 5, 3) # P(2 white balls in 3 draws from 5W+5B)
# diag
diag — extended stdlib builtin. Alias for diagonal.
my $result = diag $x
# or in a pipeline:
@list |> map diag |> p
# diagonal
diagonal — extended stdlib builtin.
my $result = diagonal $x
# or in a pipeline:
@list |> map diagonal |> p
# dice_coefficient
dice_coefficient — extended stdlib batch 3 builtin.
my $result = dice_coefficient $x
# or in a pipeline:
@list |> map dice_coefficient |> p
# dice_roll
dice_roll — random builtin.
my $result = dice_roll $x
# or in a pipeline:
@list |> map dice_roll |> p
# dicecoef
dicecoef — extended stdlib batch 3 builtin. Alias for dice_coefficient.
my $result = dicecoef $x
# or in a pipeline:
@list |> map dicecoef |> p
# die_if
die_if — conversion / utility (batch 4) builtin.
my $result = die_if $x
# or in a pipeline:
@list |> map die_if |> p
# die_unless
die_unless — conversion / utility (batch 4) builtin.
my $result = die_unless $x
# or in a pipeline:
@list |> map die_unless |> p
# diff
diff — extended stdlib builtin.
my $result = diff $x
# or in a pipeline:
@list |> map diff |> p
# diff_array
numerical_diff (aliases numdiff, diff_array) computes the numerical first derivative via central differences. Returns an array.
my @y = map { _ ** 2 } 0:10
my @dy = @{numdiff(\@y)} # ≈ [0, 2, 4, 6, ...]
# diff_days
diff_days — extended stdlib builtin.
my $result = diff_days $x
# or in a pipeline:
@list |> map diff_days |> p
# diff_hours
diff_hours — extended stdlib builtin.
my $result = diff_hours $x
# or in a pipeline:
@list |> map diff_hours |> p
# diff_lag
diff_lag (alias diff_ts) — lagged differences. Args: vec [, lag, differences]. Like R's diff().
p diff_lag([1,3,6,10]) # [2,3,4] (lag=1)
p diff_lag([1,3,6,10], 2) # [5,7] (lag=2)
p diff_lag([1,3,6,10], 1, 2) # [1,1] (second differences)
# diffd
diffd — extended stdlib builtin. Alias for diff_days.
my $result = diffd $x
# or in a pipeline:
@list |> map diffd |> p
# diffh
diffh — extended stdlib builtin. Alias for diff_hours.
my $result = diffh $x
# or in a pipeline:
@list |> map diffh |> p
# dig
dig — python/ruby stdlib builtin.
my $result = dig $x
# or in a pipeline:
@list |> map dig |> p
# digital_root
digital_root — extended stdlib batch 3 builtin.
my $result = digital_root $x
# or in a pipeline:
@list |> map digital_root |> p
# digits_of
digits_of — list helpers (batch 4) builtin.
my $result = digits_of $x
# or in a pipeline:
@list |> map digits_of |> p
# digroot
digroot — extended stdlib batch 3 builtin. Alias for digital_root.
my $result = digroot $x
# or in a pipeline:
@list |> map digroot |> p
# dijkstra
dijkstra (alias shortest_path) computes shortest paths from a source node. Graph is a hash of {node => [[neighbor, weight], ...]}. Returns {node => distance}.
my $g = {A => [["B",1],["C",4]], B => [["C",2]], C => []}
my $d = dijkstra($g, "A") # {A=>0, B=>1, C=>3}
# dim
dim — color / ansi builtin. Alias for red.
my $result = dim $x
# or in a pipeline:
@list |> map dim |> p
# diopter
diopter — physics formulas builtin. Alias for lens_power.
my $result = diopter $x
# or in a pipeline:
@list |> map diopter |> p
# dirs
dirs — filesystem extensions builtin.
my $result = dirs $x
# or in a pipeline:
@list |> map dirs |> p
# discount
discount — math / numeric (uncategorized batch) builtin.
my $result = discount $x
# or in a pipeline:
@list |> map discount |> p
# discount_amount
discount_amount — physics formulas builtin.
my $result = discount_amount $x
# or in a pipeline:
@list |> map discount_amount |> p
# discounted_payback
discounted_payback($initial, $rate, @cashflows) — computes payback period using discounted cash flows. Accounts for time value of money.
p discounted_payback(1000, 0.1, 400, 400, 400, 400)
# disk_avail
disk_avail PATH — available disk space in bytes for non-root users. Uses f_bavail from statvfs, which excludes blocks reserved for the superuser.
p format_bytes(disk_avail) # 76.3 GiB
gauge(1 - disk_avail / disk_total) |> p # usage gauge
# disk_free
disk_free PATH — free disk space in bytes (superuser view). Uses f_bfree from statvfs.
p format_bytes(disk_free) # 76.3 GiB
p format_bytes(disk_free("/tmp"))
# disk_total
disk_total PATH — total disk space in bytes for the filesystem containing PATH (default /). Uses statvfs on unix. Returns undef on unsupported platforms.
p format_bytes(disk_total) # 1.8 TiB
p format_bytes(disk_total("/home")) # specific mount
# disk_used
disk_used PATH — used disk space in bytes (total - free).
p format_bytes(disk_used) # 1.7 TiB
my $pct = int(disk_used / disk_total * 100)
p "$pct% disk used"
# dissoc
dissoc — algebraic match builtin.
my $result = dissoc $x
# or in a pipeline:
@list |> map dissoc |> p
# dist
dist — extended stdlib builtin. Alias for distance.
my $result = dist $x
# or in a pipeline:
@list |> map dist |> p
# dist_mat
dist_matrix (alias dist_mat) — pairwise distance matrix. Supports 'euclidean' (default), 'manhattan', 'maximum'. Like R's dist().
my $D = dist_mat([[0,0],[1,0],[0,1]]) # 3x3 distance matrix
my $D2 = dist_mat([[0,0],[1,1]], "manhattan") # Manhattan
# distance
distance — extended stdlib builtin.
my $result = distance $x
# or in a pipeline:
@list |> map distance |> p
# distb
distb — additional missing stdlib functions builtin. Alias for distinct_by.
my $result = distb $x
# or in a pipeline:
@list |> map distb |> p
# distinct_by
distinct_by — additional missing stdlib functions builtin.
my $result = distinct_by $x
# or in a pipeline:
@list |> map distinct_by |> p
# distinct_count
distinct_count — collection (batch 2) builtin.
my $result = distinct_count $x
# or in a pipeline:
@list |> map distinct_count |> p
# divisors
divisors — math / numeric (uncategorized batch) builtin.
my $result = divisors $x
# or in a pipeline:
@list |> map divisors |> p
# divmod
divmod — python/ruby stdlib builtin.
my $result = divmod $x
# or in a pipeline:
@list |> map divmod |> p
# divs
divs — math / numeric (uncategorized batch) builtin. Alias for divisors.
my $result = divs $x
# or in a pipeline:
@list |> map divs |> p
# djb2
djb2 — extended stdlib builtin.
my $result = djb2 $x
# or in a pipeline:
@list |> map djb2 |> p
# dm
dm — python/ruby stdlib builtin. Alias for divmod.
my $result = dm $x
# or in a pipeline:
@list |> map dm |> p
# dmetph
dmetph — encoding / phonetics builtin. Alias for double_metaphone.
my $result = dmetph $x
# or in a pipeline:
@list |> map dmetph |> p
# dnbinom
dnbinom — negative binomial PMF. Args: k, size, prob.
p dnbinom(3, 5, 0.5) # P(3 failures before 5 successes)
# do_call
do_call — call a function with args from a list. Like R's do.call().
my $result = docall(fn { $_[0] + $_[1] }, [3, 4]) # 7
# doppler
doppler_frequency($source_freq, $source_vel, $observer_vel) (alias doppler) — observed frequency with Doppler effect. Uses speed of sound (343 m/s).
p doppler(440, -30, 0) # ~482 Hz (ambulance approaching at 30 m/s)
p doppler(440, 30, 0) # ~405 Hz (ambulance receding)
# dot_case
dot_case — string (batch 2) builtin.
my $result = dot_case $x
# or in a pipeline:
@list |> map dot_case |> p
# dot_product
dot_product — extended stdlib builtin.
my $result = dot_product $x
# or in a pipeline:
@list |> map dot_product |> p
# dotp
dotp — extended stdlib builtin. Alias for dot_product.
my $result = dotp $x
# or in a pipeline:
@list |> map dotp |> p
# double
double — trivial numeric / predicate builtins builtin.
my $result = double $x
# or in a pipeline:
@list |> map double |> p
# double_each
double_each — trivial numeric helpers (batch 4) builtin.
my $result = double_each $x
# or in a pipeline:
@list |> map double_each |> p
# double_factorial
double_factorial — math formulas builtin.
my $result = double_factorial $x
# or in a pipeline:
@list |> map double_factorial |> p
# double_metaphone
double_metaphone — encoding / phonetics builtin.
my $result = double_metaphone $x
# or in a pipeline:
@list |> map double_metaphone |> p
# downcase_each
downcase_each — trivial numeric helpers (batch 4) builtin.
my $result = downcase_each $x
# or in a pipeline:
@list |> map downcase_each |> p
# downsample
downsample(\@signal, $factor) (alias decimate) — reduces sample rate by keeping every nth sample. Apply anti-aliasing filter first to avoid aliasing.
my $decimated = decimate(\@signal, 4) # keep every 4th sample
# downto
downto — python/ruby stdlib builtin.
my $result = downto $x
# or in a pipeline:
@list |> map downto |> p
# doy
doy — extended stdlib batch 3 builtin. Alias for day_of_year.
my $result = doy $x
# or in a pipeline:
@list |> map doy |> p
# dpayback
dpayback — finance (extended) builtin. Alias for discounted_payback.
my $result = dpayback $x
# or in a pipeline:
@list |> map dpayback |> p
# dr
dr — filesystem extensions builtin.
my $result = dr $x
# or in a pipeline:
@list |> map dr |> p
# drag_force
drag_force (alias fdrag) computes aerodynamic drag: F = 0.5·Cd·ρ·A·v². Args: drag_coeff, air_density, area, velocity.
p fdrag(0.47, 1.225, 0.01, 30) # drag on a ball at 30 m/s
# drnk
drnk — extended stdlib builtin. Alias for dense_rank.
my $result = drnk $x
# or in a pipeline:
@list |> map drnk |> p
# drop_every
drop_every — list helpers (batch 4) builtin.
my $result = drop_every $x
# or in a pipeline:
@list |> map drop_every |> p
# drop_last
drop_last — file stat / path builtin.
my $result = drop_last $x
# or in a pipeline:
@list |> map drop_last |> p
# drop_n
drop_n — collection helpers (trivial) builtin.
my $result = drop_n $x
# or in a pipeline:
@list |> map drop_n |> p
# dsamp
dsamp — dsp / signal (extended) builtin. Alias for downsample.
my $result = dsamp $x
# or in a pipeline:
@list |> map dsamp |> p
# dte
dte — date / time builtin. Alias for datetime_from_epoch.
my $result = dte $x
# or in a pipeline:
@list |> map dte |> p
# dtf
dtf — date / time builtin. Alias for datetime_strftime.
my $result = dtf $x
# or in a pipeline:
@list |> map dtf |> p
# dump
dump — process / system builtin.
my $result = dump $x
# or in a pipeline:
@list |> map dump |> p
# dunif
dunif — uniform PDF. Args: x, a, b.
p dunif(0.5, 0, 1) # 1.0
# duped
duplicated — boolean array: 1 if element appeared earlier in the vector, 0 otherwise. Like R's duplicated().
p duplicated([1,2,3,2,1]) # [0,0,0,1,1]
# duplicate_count
duplicate_count — list helpers (batch 4) builtin.
my $result = duplicate_count $x
# or in a pipeline:
@list |> map duplicate_count |> p
# each_cons
each_cons — python/ruby stdlib builtin.
my $result = each_cons $x
# or in a pipeline:
@list |> map each_cons |> p
# each_slice
each_slice — python/ruby stdlib builtin.
my $result = each_slice $x
# or in a pipeline:
@list |> map each_slice |> p
# each_with_index
each_with_index — functional / iterator builtin.
my $result = each_with_index $x
# or in a pipeline:
@list |> map each_with_index |> p
# each_with_object
each_with_object — additional missing stdlib functions builtin.
my $result = each_with_object $x
# or in a pipeline:
@list |> map each_with_object |> p
# earth_mass
earth_mass (alias mearth) — M⊕ ≈ 5.972×10²⁴ kg. Mass of Earth.
p mearth # 5.972167867e24 kg
# earth_radius
earth_radius — physics constants builtin.
my $result = earth_radius $x
# or in a pipeline:
@list |> map earth_radius |> p
# ecdf
ecdf — empirical CDF: proportion of data ≤ x. Like R's ecdf().
p ecdf([1,2,3,4,5], 3) # 0.6 (3 of 5 values ≤ 3)
# echarge
echarge — constants builtin. Alias for elementary_charge.
my $result = echarge $x
# or in a pipeline:
@list |> map echarge |> p
# econs
econs — python/ruby stdlib builtin. Alias for each_cons.
my $result = econs $x
# or in a pipeline:
@list |> map econs |> p
# efield
efield — physics formulas builtin. Alias for electric_field.
my $result = efield $x
# or in a pipeline:
@list |> map efield |> p
# eig
matrix_eigenvalues (aliases meig, eig) computes eigenvalues of a square matrix via QR iteration. Returns an array of eigenvalues.
my @eigs = @{eig([[2,1],[1,2]])} # [3, 1]
# either
either — boolean combinators builtin.
my $result = either $x
# or in a pipeline:
@list |> map either |> p
# electric_field
electric_field — physics formulas builtin.
my $result = electric_field $x
# or in a pipeline:
@list |> map electric_field |> p
# electron_mass
electron_mass — constants builtin.
my $result = electron_mass $x
# or in a pipeline:
@list |> map electron_mass |> p
# elem_at
elem_at — list helpers (batch 4) builtin.
my $result = elem_at $x
# or in a pipeline:
@list |> map elem_at |> p
# elem_index
elem_index — additional missing stdlib functions builtin.
my $result = elem_index $x
# or in a pipeline:
@list |> map elem_index |> p
# elem_indices
elem_indices — additional missing stdlib functions builtin.
my $result = elem_indices $x
# or in a pipeline:
@list |> map elem_indices |> p
# elem_of
elem_of — haskell list functions builtin.
my $result = elem_of $x
# or in a pipeline:
@list |> map elem_of |> p
# elementary_charge
elementary_charge — constants builtin.
my $result = elementary_charge $x
# or in a pipeline:
@list |> map elementary_charge |> p
# elidx
elidx — additional missing stdlib functions builtin. Alias for elem_index.
my $result = elidx $x
# or in a pipeline:
@list |> map elidx |> p
# elidxs
elidxs — additional missing stdlib functions builtin. Alias for elem_indices.
my $result = elidxs $x
# or in a pipeline:
@list |> map elidxs |> p
# ellipperim
ellipperim — geometry (extended) builtin. Alias for ellipse_perimeter.
my $result = ellipperim $x
# or in a pipeline:
@list |> map ellipperim |> p
# ellipse_perimeter
ellipse_perimeter($a, $b) (alias ellper) — approximates the perimeter of an ellipse with semi-axes a and b. Uses Ramanujan's approximation.
p ellper(5, 3) # ~25.5
p ellper(10, 10) # ~62.8 (circle)
# ellipsis
ellipsis — string quote / escape builtin.
my $result = ellipsis $x
# or in a pipeline:
@list |> map ellipsis |> p
# elof
elof — haskell list functions builtin. Alias for elem_of.
my $result = elof $x
# or in a pipeline:
@list |> map elof |> p
# elu
elu applies the Exponential Linear Unit: x if x≥0, alpha*(e^x - 1) otherwise.
p elu(1) # 1
p elu(-1) # -0.632
# email_domain
email_domain — url / email parts builtin.
my $result = email_domain $x
# or in a pipeline:
@list |> map email_domain |> p
# email_local
email_local — url / email parts builtin.
my $result = email_local $x
# or in a pipeline:
@list |> map email_local |> p
# emass
emass — constants builtin. Alias for electron_mass.
my $result = emass $x
# or in a pipeline:
@list |> map emass |> p
# emavg
emavg — math / numeric (uncategorized batch) builtin. Alias for exponential_moving_average.
my $result = emavg $x
# or in a pipeline:
@list |> map emavg |> p
# embed
embed — time-delay embedding. Converts a time series into a matrix of lagged values. Like R's embed().
p embed([1,2,3,4,5], 3) # [[3,2,1],[4,3,2],[5,4,3]]
# emojinum
emojinum — encoding / phonetics builtin. Alias for to_emoji_num.
my $result = emojinum $x
# or in a pipeline:
@list |> map emojinum |> p
# empc
empc — algebraic match builtin. Alias for empty_clj.
my $result = empc $x
# or in a pipeline:
@list |> map empc |> p
# empty_clj
empty_clj — algebraic match builtin.
my $result = empty_clj $x
# or in a pipeline:
@list |> map empty_clj |> p
# empty_count
empty_count — counters (batch 4) builtin.
my $result = empty_count $x
# or in a pipeline:
@list |> map empty_count |> p
# end_of_day
end_of_day — extended stdlib builtin.
my $result = end_of_day $x
# or in a pipeline:
@list |> map end_of_day |> p
# endgrent
endgrent — posix metadata builtin.
my $result = endgrent $x
# or in a pipeline:
@list |> map endgrent |> p
# endhostent
endhostent — posix metadata builtin.
my $result = endhostent $x
# or in a pipeline:
@list |> map endhostent |> p
# endianness
endianness — byte order of the platform: "little" or "big". Compile-time constant.
p endianness # little
# endnetent
endnetent — posix metadata builtin.
my $result = endnetent $x
# or in a pipeline:
@list |> map endnetent |> p
# endprotoent
endprotoent — posix metadata builtin.
my $result = endprotoent $x
# or in a pipeline:
@list |> map endprotoent |> p
# endpwent
endpwent — posix metadata builtin.
my $result = endpwent $x
# or in a pipeline:
@list |> map endpwent |> p
# ends_with
ends_with — trivial string ops builtin.
my $result = ends_with $x
# or in a pipeline:
@list |> map ends_with |> p
# ends_with_any
ends_with_any — string (batch 2) builtin.
my $result = ends_with_any $x
# or in a pipeline:
@list |> map ends_with_any |> p
# endservent
endservent — posix metadata builtin.
my $result = endservent $x
# or in a pipeline:
@list |> map endservent |> p
# energy
energy(\@signal) — computes the total energy of a signal as the sum of squared samples. Useful for audio analysis and feature extraction.
p energy(\@signal) # total signal energy
# ensure_prefix
ensure_prefix — path helpers builtin.
my $result = ensure_prefix $x
# or in a pipeline:
@list |> map ensure_prefix |> p
# ensure_suffix
ensure_suffix — path helpers builtin.
my $result = ensure_suffix $x
# or in a pipeline:
@list |> map ensure_suffix |> p
# entropy
entropy — math functions builtin.
my $result = entropy $x
# or in a pipeline:
@list |> map entropy |> p
# env
env — dsp / signal (extended) builtin. Alias for envelope.
my $result = env $x
# or in a pipeline:
@list |> map env |> p
# env_get
env_get — process / env builtin.
my $result = env_get $x
# or in a pipeline:
@list |> map env_get |> p
# env_has
env_has — process / env builtin.
my $result = env_has $x
# or in a pipeline:
@list |> map env_has |> p
# env_keys
env_keys — process / env builtin.
my $result = env_keys $x
# or in a pipeline:
@list |> map env_keys |> p
# env_pairs
env_pairs — more process / system builtin.
my $result = env_pairs $x
# or in a pipeline:
@list |> map env_pairs |> p
# env_remove
env_remove — more process / system builtin.
my $result = env_remove $x
# or in a pipeline:
@list |> map env_remove |> p
# env_set
env_set — more process / system builtin.
my $result = env_set $x
# or in a pipeline:
@list |> map env_set |> p
# envelope
envelope(\@signal) (alias hilbert_env) — computes the amplitude envelope using Hilbert transform magnitude. Useful for amplitude modulation analysis.
my $env = envelope(\@signal)
# $env traces the amplitude of oscillations
# eod
eod — extended stdlib builtin. Alias for end_of_day.
my $result = eod $x
# or in a pipeline:
@list |> map eod |> p
# epoch
epoch — now / timestamp builtin. Alias for unix_epoch.
my $result = epoch $x
# or in a pipeline:
@list |> map epoch |> p
# epoch_ms
epoch_ms — now / timestamp builtin. Alias for unix_epoch_ms.
my $result = epoch_ms $x
# or in a pipeline:
@list |> map epoch_ms |> p
# eps
eps — math / numeric (uncategorized batch) builtin. Alias for epsilon.
my $result = eps $x
# or in a pipeline:
@list |> map eps |> p
# epsilon
epsilon — math / numeric (uncategorized batch) builtin.
my $result = epsilon $x
# or in a pipeline:
@list |> map epsilon |> p
# epsilon0
vacuum_permittivity (alias epsilon0) — ε₀ ≈ 8.854×10⁻¹² F/m. Electric constant, permittivity of free space.
p epsilon0 # 8.8541878128e-12
# eqidx
eqidx — extended stdlib batch 3 builtin. Alias for equilibrium_index.
my $result = eqidx $x
# or in a pipeline:
@list |> map eqidx |> p
# eqrng
eqrng — extended stdlib builtin. Alias for equal_range.
my $result = eqrng $x
# or in a pipeline:
@list |> map eqrng |> p
# equal_range
equal_range — extended stdlib builtin.
my $result = equal_range $x
# or in a pipeline:
@list |> map equal_range |> p
# equilibrium_index
equilibrium_index — extended stdlib batch 3 builtin.
my $result = equilibrium_index $x
# or in a pipeline:
@list |> map equilibrium_index |> p
# erf_approx
erf_approx($x) — error function. Used in probability, statistics, and partial differential equations.
p erf(1) # ~0.843
p erf(2) # ~0.995
# escape_json
escape_json — json helpers builtin.
my $result = escape_json $x
# or in a pipeline:
@list |> map escape_json |> p
# escape_velocity
escape_velocity($mass, $radius) (alias escvel) — minimum velocity to escape gravitational field: v = √(2GM/r). Defaults to Earth values.
p escvel # ~11186 m/s (Earth)
p escvel(1.989e30, 6.96e8) # ~617 km/s (Sun)
# eslice
eslice — python/ruby stdlib builtin. Alias for each_slice.
my $result = eslice $x
# or in a pipeline:
@list |> map eslice |> p
# etot
etot — extended stdlib batch 3 builtin. Alias for euler_totient.
my $result = etot $x
# or in a pipeline:
@list |> map etot |> p
# eucdist
eucdist — math / numeric (uncategorized batch) builtin. Alias for euclidean_distance.
my $result = eucdist $x
# or in a pipeline:
@list |> map eucdist |> p
# euclidean_distance
euclidean_distance — math / numeric (uncategorized batch) builtin.
my $result = euclidean_distance $x
# or in a pipeline:
@list |> map euclidean_distance |> p
# euler_e
euler_e — math / numeric (uncategorized batch) builtin. Alias for euler_number.
my $result = euler_e $x
# or in a pipeline:
@list |> map euler_e |> p
# euler_mascheroni
euler_mascheroni (alias gamma_const) — Euler-Mascheroni constant γ ≈ 0.5772. Appears in number theory and analysis.
p euler_mascheroni # 0.5772156649015329
# euler_method
euler_ode (alias euler_method) solves an ODE dy/dt = f(t,y) using the Euler method. Returns [[t,y], ...].
my $sol = euler_ode(fn { $_[1] }, 0, 1, 0.01, 100) # exponential growth
# euler_number
euler_number — math / numeric (uncategorized batch) builtin.
my $result = euler_number $x
# or in a pipeline:
@list |> map euler_number |> p
# euler_totient
euler_totient — extended stdlib batch 3 builtin.
my $result = euler_totient $x
# or in a pipeline:
@list |> map euler_totient |> p
# eval_rpn
eval_rpn — algorithms / puzzles builtin.
my $result = eval_rpn $x
# or in a pipeline:
@list |> map eval_rpn |> p
# even
even — trivial numeric / predicate builtins builtin.
my $result = even $x
# or in a pipeline:
@list |> map even |> p
# every_nth
every_nth — collection helpers (trivial) builtin.
my $result = every_nth $x
# or in a pipeline:
@list |> map every_nth |> p
# ew
ew — trivial string ops builtin. Alias for ends_with.
my $result = ew $x
# or in a pipeline:
@list |> map ew |> p
# ewo
ewo — additional missing stdlib functions builtin. Alias for each_with_object.
my $result = ewo $x
# or in a pipeline:
@list |> map ewo |> p
# exp2
exp2 — trivial numeric / predicate builtins builtin.
my $result = exp2 $x
# or in a pipeline:
@list |> map exp2 |> p
# exponential_moving_average
exponential_moving_average — math / numeric (uncategorized batch) builtin.
my $result = exponential_moving_average $x
# or in a pipeline:
@list |> map exponential_moving_average |> p
# exponential_pdf
exponential_pdf — math formulas builtin.
my $result = exponential_pdf $x
# or in a pipeline:
@list |> map exponential_pdf |> p
# exppdf
exppdf — math formulas builtin. Alias for exponential_pdf.
my $result = exppdf $x
# or in a pipeline:
@list |> map exppdf |> p
# eye
eye — matrix / linear algebra builtin. Alias for identity_matrix.
my $result = eye $x
# or in a pipeline:
@list |> map eye |> p
f — filesystem extensions builtin.
my $result = f $x
# or in a pipeline:
@list |> map f |> p
# f64_max
f64_max — math / numeric (uncategorized batch) builtin.
my $result = f64_max $x
# or in a pipeline:
@list |> map f64_max |> p
# f64_min
f64_min — math / numeric (uncategorized batch) builtin.
my $result = f64_min $x
# or in a pipeline:
@list |> map f64_min |> p
# f_pdf
f_pdf (alias fpdf) evaluates the F-distribution PDF at x with d1 and d2 degrees of freedom.
p fpdf(1.0, 5, 10)
# f_to_c
f_to_c — unit conversions builtin.
my $result = f_to_c $input
# f_to_k
f_to_k — unit conversions builtin.
my $result = f_to_k $input
# fact
fact — trivial numeric / predicate builtins builtin. Alias for factorial.
my $result = fact $x
# or in a pipeline:
@list |> map fact |> p
# factorial
factorial — trivial numeric / predicate builtins builtin.
my $result = factorial $x
# or in a pipeline:
@list |> map factorial |> p
# falf
falf — python/ruby stdlib builtin. Alias for filterfalse.
my $result = falf $x
# or in a pipeline:
@list |> map falf |> p
# fallback
fallback — functional combinators builtin.
my $result = fallback $x
# or in a pipeline:
@list |> map fallback |> p
# falling_factorial
falling_factorial — math formulas builtin.
my $result = falling_factorial $x
# or in a pipeline:
@list |> map falling_factorial |> p
# falsy_count
falsy_count — counters (batch 4) builtin.
my $result = falsy_count $x
# or in a pipeline:
@list |> map falsy_count |> p
# faraday
faraday_constant (alias faraday) — F ≈ 96485 C/mol. Charge per mole of electrons.
p faraday # 96485.33212
# fb
fb — algorithms / puzzles builtin. Alias for fizzbuzz.
my $result = fb $x
# or in a pipeline:
@list |> map fb |> p
# fcntl
fcntl — ipc builtin.
my $result = fcntl $x
# or in a pipeline:
@list |> map fcntl |> p
# fcp
fcp — extended stdlib builtin. Alias for from_code_point.
my $result = fcp $x
# or in a pipeline:
@list |> map fcp |> p
# fdivop
fdivop — extended stdlib builtin. Alias for floor_div_op.
my $result = fdivop $x
# or in a pipeline:
@list |> map fdivop |> p
# feet_to_m
feet_to_m — unit conversions builtin.
my $result = feet_to_m $input
# feiga
feiga — math constants builtin. Alias for feigenbaum_alpha.
my $result = feiga $x
# or in a pipeline:
@list |> map feiga |> p
# feigd
feigenbaum_delta (alias feigd) — Feigenbaum constant δ ≈ 4.669. Universal constant in chaos theory.
p feigd # 4.669201609102990
# feigenbaum_alpha
feigenbaum_alpha — math constants builtin.
my $result = feigenbaum_alpha $x
# or in a pipeline:
@list |> map feigenbaum_alpha |> p
# fetch_val
fetch_val — python/ruby stdlib builtin.
my $result = fetch_val $x
# or in a pipeline:
@list |> map fetch_val |> p
# ffact
ffact — math formulas builtin. Alias for falling_factorial.
my $result = ffact $x
# or in a pipeline:
@list |> map ffact |> p
# ffirst
ffirst — algebraic match builtin.
my $result = ffirst $x
# or in a pipeline:
@list |> map ffirst |> p
# ffs
ffs — algebraic match builtin. Alias for ffirst.
my $result = ffs $x
# or in a pipeline:
@list |> map ffs |> p
# fft_magnitude
fft_magnitude — math / numeric (uncategorized batch) builtin.
my $result = fft_magnitude $x
# or in a pipeline:
@list |> map fft_magnitude |> p
# fftmag
fftmag — math / numeric (uncategorized batch) builtin. Alias for fft_magnitude.
my $result = fftmag $x
# or in a pipeline:
@list |> map fftmag |> p
# fib
fib — trivial numeric / predicate builtins builtin. Alias for fibonacci.
my $result = fib $x
# or in a pipeline:
@list |> map fib |> p
# fibonacci
fibonacci — trivial numeric / predicate builtins builtin.
my $result = fibonacci $x
# or in a pipeline:
@list |> map fibonacci |> p
# fibonacci_seq
fibonacci_seq — sequences builtin.
my $result = fibonacci_seq $x
# or in a pipeline:
@list |> map fibonacci_seq |> p
# fidx
fidx — python/ruby stdlib builtin. Alias for find_index_fn.
my $result = fidx $x
# or in a pipeline:
@list |> map fidx |> p
# file_atime
file_atime — file stat / path builtin.
my $result = file_atime $x
# or in a pipeline:
@list |> map file_atime |> p
# file_ctime
file_ctime — file stat / path builtin.
my $result = file_ctime $x
# or in a pipeline:
@list |> map file_ctime |> p
# file_mtime
file_mtime — file stat / path builtin.
my $result = file_mtime $x
# or in a pipeline:
@list |> map file_mtime |> p
# file_size
file_size — file stat / path builtin.
my $result = file_size $x
# or in a pipeline:
@list |> map file_size |> p
# files
files — filesystem extensions builtin.
my $result = files $x
# or in a pipeline:
@list |> map files |> p
# filesf
filesf — filesystem extensions builtin.
my $result = filesf $x
# or in a pipeline:
@list |> map filesf |> p
# fill_arr
fill_arr — javascript array/object methods builtin.
my $result = fill_arr $x
# or in a pipeline:
@list |> map fill_arr |> p
# filla
filla — javascript array/object methods builtin. Alias for fill_arr.
my $result = filla $x
# or in a pipeline:
@list |> map filla |> p
# filter_chars
filter_chars — string helpers (batch 4) builtin.
my $result = filter_chars $x
# or in a pipeline:
@list |> map filter_chars |> p
# filter_indexed
filter_indexed — go/general functional utilities builtin.
my $result = filter_indexed $x
# or in a pipeline:
@list |> map filter_indexed |> p
# filter_map
filter_map — rust iterator methods builtin.
my $result = filter_map $x
# or in a pipeline:
@list |> map filter_map |> p
# filter_ts
ts_filter — linear convolution filter. Like R's filter(method='convolution').
my @smooth = @{ts_filter([1,5,2,8,3], [0.25,0.5,0.25])}
# filterfalse
filterfalse — python/ruby stdlib builtin.
my $result = filterfalse $x
# or in a pipeline:
@list |> map filterfalse |> p
# find
find — functional / iterator builtin.
my $result = find $x
# or in a pipeline:
@list |> map find |> p
# findInterval
find_interval — for each x, find which interval in breaks it falls into. Like R's findInterval().
p findInterval([1.5, 3.5, 7.5], [0, 2, 5, 10]) # [1, 2, 3]
# find_all
find_all — functional / iterator builtin.
my $result = find_all $x
# or in a pipeline:
@list |> map find_all |> p
# find_all_indices
find_all_indices — extended stdlib builtin.
my $result = find_all_indices $x
# or in a pipeline:
@list |> map find_all_indices |> p
# find_first
find_first — list helpers (batch 4) builtin.
my $result = find_first $x
# or in a pipeline:
@list |> map find_first |> p
# find_index
find_index — functional / iterator builtin.
my $result = find_index $x
# or in a pipeline:
@list |> map find_index |> p
# find_index_fn
find_index_fn — python/ruby stdlib builtin.
my $result = find_index_fn $x
# or in a pipeline:
@list |> map find_index_fn |> p
# find_indices
find_indices — additional missing stdlib functions builtin.
my $result = find_indices $x
# or in a pipeline:
@list |> map find_indices |> p
# find_last
find_last — javascript array/object methods builtin.
my $result = find_last $x
# or in a pipeline:
@list |> map find_last |> p
# find_last_index
find_last_index — javascript array/object methods builtin.
my $result = find_last_index $x
# or in a pipeline:
@list |> map find_last_index |> p
# find_map
find_map — rust iterator methods builtin.
my $result = find_map $x
# or in a pipeline:
@list |> map find_map |> p
# first_arg
first_arg — functional primitives builtin.
my $result = first_arg $x
# or in a pipeline:
@list |> map first_arg |> p
# first_elem
first_elem — list helpers (batch 4) builtin.
my $result = first_elem $x
# or in a pipeline:
@list |> map first_elem |> p
# first_eq
first_eq — collection (batch 2) builtin.
my $result = first_eq $x
# or in a pipeline:
@list |> map first_eq |> p
# first_word
first_word — string (batch 2) builtin.
my $result = first_word $x
# or in a pipeline:
@list |> map first_word |> p
# five_number_summary
five_number_summary(@data) (alias fivenum) — returns [min, Q1, median, Q3, max], the classic five-number summary used for box plots. Provides a quick view of data distribution.
my @data = 1:100
my $f = fivenum(@data)
p "min=$f->[0] Q1=$f->[1] med=$f->[2] Q3=$f->[3] max=$f->[4]"
# fizzbuzz
fizzbuzz — algorithms / puzzles builtin.
my $result = fizzbuzz $x
# or in a pipeline:
@list |> map fizzbuzz |> p
# flat_depth
flat_depth — javascript array/object methods builtin.
my $result = flat_depth $x
# or in a pipeline:
@list |> map flat_depth |> p
# flat_map
flat_map — functional / iterator builtin.
my $result = flat_map $x
# or in a pipeline:
@list |> map flat_map |> p
# flat_map_fn
flat_map_fn — python/ruby stdlib builtin.
my $result = flat_map_fn $x
# or in a pipeline:
@list |> map flat_map_fn |> p
# flat_maps
flat_maps { BLOCK } LIST — a lazy streaming flat-map that evaluates the block for each element and flattens the resulting lists into a single iterator. Where maps expects the block to return one value, flat_maps handles blocks that return zero or more values per element and concatenates them seamlessly. This is the streaming equivalent of calling map with a multi-value block. Use it in |> chains when each input element fans out into multiple outputs and you want lazy evaluation.
1:3 |> flat_maps { (_, _ * 10) } |> e p
# 1 10 2 20 3 30
@nested |> flat_maps { @_ } |> e p # flatten array-of-arrays
# flatten_deep
flatten_deep — collection more builtin.
my $result = flatten_deep $x
# or in a pipeline:
@list |> map flatten_deep |> p
# flatten_once
flatten_once — list helpers (batch 4) builtin.
my $result = flatten_once $x
# or in a pipeline:
@list |> map flatten_once |> p
# fldr
fldr — rust iterator methods builtin. Alias for fold_right.
my $result = fldr $x
# or in a pipeline:
@list |> map fldr |> p
# flip_args
flip_args — functional primitives builtin.
my $result = flip_args $x
# or in a pipeline:
@list |> map flip_args |> p
# float_bits
float_bits — math functions builtin.
my $result = float_bits $x
# or in a pipeline:
@list |> map float_bits |> p
# floor
floor — trivial numeric / predicate builtins builtin.
my $result = floor $x
# or in a pipeline:
@list |> map floor |> p
# floor_div
floor_div — trig / math (batch 2) builtin.
my $result = floor_div $x
# or in a pipeline:
@list |> map floor_div |> p
# floor_div_op
floor_div_op — extended stdlib builtin.
my $result = floor_div_op $x
# or in a pipeline:
@list |> map floor_div_op |> p
# floor_each
floor_each — trivial numeric helpers (batch 4) builtin.
my $result = floor_each $x
# or in a pipeline:
@list |> map floor_each |> p
# floor_mod
floor_mod — extended stdlib builtin.
my $result = floor_mod $x
# or in a pipeline:
@list |> map floor_mod |> p
# fltd
fltd — javascript array/object methods builtin. Alias for flat_depth.
my $result = fltd $x
# or in a pipeline:
@list |> map fltd |> p
# flti
flti — go/general functional utilities builtin. Alias for filter_indexed.
my $result = flti $x
# or in a pipeline:
@list |> map flti |> p
# fltm
fltm — rust iterator methods builtin. Alias for filter_map.
my $result = fltm $x
# or in a pipeline:
@list |> map fltm |> p
# fma
fma — math functions builtin.
my $result = fma $x
# or in a pipeline:
@list |> map fma |> p
# fmadd
fmadd — extended stdlib builtin. Alias for fused_mul_add.
my $result = fmadd $x
# or in a pipeline:
@list |> map fmadd |> p
# fmf
fmf — python/ruby stdlib builtin. Alias for flat_map_fn.
my $result = fmf $x
# or in a pipeline:
@list |> map fmf |> p
# fmod
fmod — extended stdlib builtin. Alias for floor_mod.
my $result = fmod $x
# or in a pipeline:
@list |> map fmod |> p
# fndalli
fndalli — extended stdlib builtin. Alias for find_all_indices.
my $result = fndalli $x
# or in a pipeline:
@list |> map fndalli |> p
# fndidxs
fndidxs — additional missing stdlib functions builtin. Alias for find_indices.
my $result = fndidxs $x
# or in a pipeline:
@list |> map fndidxs |> p
# fndl
fndl — javascript array/object methods builtin. Alias for find_last.
my $result = fndl $x
# or in a pipeline:
@list |> map fndl |> p
# fndli
fndli — javascript array/object methods builtin. Alias for find_last_index.
my $result = fndli $x
# or in a pipeline:
@list |> map fndli |> p
# fndm
fndm — rust iterator methods builtin. Alias for find_map.
my $result = fndm $x
# or in a pipeline:
@list |> map fndm |> p
# fne
fne — algebraic match builtin. Alias for fnext.
my $result = fne $x
# or in a pipeline:
@list |> map fne |> p
# fnext
fnext — algebraic match builtin.
my $result = fnext $x
# or in a pipeline:
@list |> map fnext |> p
# fnv1a
fnv1a — extended stdlib builtin.
my $result = fnv1a $x
# or in a pipeline:
@list |> map fnv1a |> p
# fold_left
fold_left — list helpers (batch 4) builtin.
my $result = fold_left $x
# or in a pipeline:
@list |> map fold_left |> p
# fold_right
fold_right — rust iterator methods builtin.
my $result = fold_right $x
# or in a pipeline:
@list |> map fold_right |> p
# force_mass_acc
force_mass_acc — physics formulas builtin.
my $result = force_mass_acc $x
# or in a pipeline:
@list |> map force_mass_acc |> p
# format_bytes
format_bytes — file stat / path builtin.
my $result = format_bytes $x
# or in a pipeline:
@list |> map format_bytes |> p
# format_duration
format_duration — file stat / path builtin.
my $result = format_duration $x
# or in a pipeline:
@list |> map format_duration |> p
# format_number
format_number — file stat / path builtin.
my $result = format_number $x
# or in a pipeline:
@list |> map format_number |> p
# format_percent
format_percent — file stat / path builtin.
my $result = format_percent $x
# or in a pipeline:
@list |> map format_percent |> p
# fr
fr — filesystem extensions builtin.
my $result = fr $x
# or in a pipeline:
@list |> map fr |> p
# frac_part
frac_part — extended stdlib builtin.
my $result = frac_part $x
# or in a pipeline:
@list |> map frac_part |> p
# fracp
fracp — extended stdlib builtin. Alias for frac_part.
my $result = fracp $x
# or in a pipeline:
@list |> map fracp |> p
# freq_wavelength
freq_wavelength — physics formulas builtin.
my $result = freq_wavelength $x
# or in a pipeline:
@list |> map freq_wavelength |> p
# from_base
from_base — base conversion builtin.
my $result = from_base $x
# or in a pipeline:
@list |> map from_base |> p
# from_bin
from_bin — base conversion builtin.
my $result = from_bin $x
# or in a pipeline:
@list |> map from_bin |> p
# from_code_point
from_code_point — extended stdlib builtin.
my $result = from_code_point $x
# or in a pipeline:
@list |> map from_code_point |> p
# from_csv_line
from_csv_line — string helpers (batch 4) builtin.
my $result = from_csv_line $x
# or in a pipeline:
@list |> map from_csv_line |> p
# from_digits
from_digits — list helpers (batch 4) builtin.
my $result = from_digits $x
# or in a pipeline:
@list |> map from_digits |> p
# from_hex
from_hex — base conversion builtin.
my $result = from_hex $x
# or in a pipeline:
@list |> map from_hex |> p
# from_oct
from_oct — base conversion builtin.
my $result = from_oct $x
# or in a pipeline:
@list |> map from_oct |> p
# from_pairs
from_pairs — list helpers (batch 4) builtin.
my $result = from_pairs $x
# or in a pipeline:
@list |> map from_pairs |> p
# frustum_volume
frustum_volume($r1, $r2, $h) — computes the volume of a conical frustum (truncated cone) with base radii r1 and r2 and height h.
p frustum_volume(5, 3, 10) # ~513
# frustvol
frustvol — geometry (extended) builtin. Alias for frustum_volume.
my $result = frustvol $x
# or in a pipeline:
@list |> map frustvol |> p
# fsize
fsize — file stat / path builtin. Alias for file_size.
my $result = fsize $x
# or in a pipeline:
@list |> map fsize |> p
# fst
fst — internal builtin. Alias for __stryke_rust_compile.
my $result = fst $x
# or in a pipeline:
@list |> map fst |> p
# ft
ft — data / network builtin. Alias for fetch.
my $result = ft $x
# or in a pipeline:
@list |> map ft |> p
# fta
fta — data / network builtin. Alias for fetch_async.
my $result = fta $x
# or in a pipeline:
@list |> map fta |> p
# ftaj
ftaj — data / network builtin. Alias for fetch_async_json.
my $result = ftaj $x
# or in a pipeline:
@list |> map ftaj |> p
# ftj
ftj — data / network builtin. Alias for fetch_json.
my $result = ftj $x
# or in a pipeline:
@list |> map ftj |> p
# fused_mul_add
fused_mul_add — extended stdlib builtin.
my $result = fused_mul_add $x
# or in a pipeline:
@list |> map fused_mul_add |> p
# future_value
future_value — physics formulas builtin.
my $result = future_value $x
# or in a pipeline:
@list |> map future_value |> p
# fv
fv — python/ruby stdlib builtin. Alias for fetch_val.
my $result = fv $x
# or in a pipeline:
@list |> map fv |> p
# g_to_oz
g_to_oz — unit conversions builtin.
my $result = g_to_oz $input
# gallons_to_liters
gallons_to_liters — file stat / path builtin.
my $result = gallons_to_liters $input
# game_of_life_step
game_of_life_step — algorithms / puzzles builtin.
my $result = game_of_life_step $x
# or in a pipeline:
@list |> map game_of_life_step |> p
# gamma_approx
gamma_approx($z) — Gamma function Γ(z) using Lanczos approximation. Extends factorial: Γ(n) = (n-1)!
p gamma(5) # 24 (same as 4!)
p gamma(0.5) # ~1.772 (√π)
# gamma_pdf
gamma_pdf (alias gammapdf) evaluates the Gamma distribution PDF at x with shape k and scale theta.
p gammapdf(2.0, 2, 1) # Gamma(2,1) at x=2
# gas_constant
gas_constant (alias rgas) — R ≈ 8.314 J/(mol⋅K). Universal gas constant.
p rgas # 8.314462618
# gasp
ideal_gas_pressure($n, $V, $T) (alias gasp) — pressure P = nRT/V. n moles, V volume (m³), T temperature (K).
p gasp(1, 0.0224, 273.15) # ~101325 Pa (1 mol at STP)
# gasv
gasv — physics formulas builtin. Alias for ideal_gas_volume.
my $result = gasv $x
# or in a pipeline:
@list |> map gasv |> p
# gb_to_bytes
gb_to_bytes — unit conversions builtin.
my $result = gb_to_bytes $input
# gbf
gbf — go/general functional utilities builtin. Alias for group_by_fn.
my $result = gbf $x
# or in a pipeline:
@list |> map gbf |> p
# gbi
gbi — python/ruby stdlib builtin. Alias for groupby_iter.
my $result = gbi $x
# or in a pipeline:
@list |> map gbi |> p
# gcby
gcby — matrix operations (uncategorized batch) builtin. Alias for group_consecutive_by.
my $result = gcby $x
# or in a pipeline:
@list |> map gcby |> p
# gcd
gcd — trivial numeric / predicate builtins builtin.
my $result = gcd $x
# or in a pipeline:
@list |> map gcd |> p
# gconst
gconst — constants builtin. Alias for gravitational_constant.
my $result = gconst $x
# or in a pipeline:
@list |> map gconst |> p
# gelu
gelu applies the Gaussian Error Linear Unit, used in BERT/GPT transformers.
p gelu(1) # 0.8412
p gelu(-1) # -0.1588
# geometric_mean
geometric_mean — file stat / path builtin.
my $result = geometric_mean $x
# or in a pipeline:
@list |> map geometric_mean |> p
# geometric_series
geometric_series($a1, $r, $n) (alias geomser) — sum of n terms of geometric sequence. Formula: a1×(1-rⁿ)/(1-r). If r=1, returns a1×n.
p geomser(1, 2, 10) # 1023 (1+2+4+...+512)
p geomser(1, 0.5, 10) # ~1.998 (converging to 2)
# get_in
get_in — algebraic match builtin.
my $result = get_in $x
# or in a pipeline:
@list |> map get_in |> p
# gethostent
gethostent — posix metadata builtin.
my $result = gethostent $x
# or in a pipeline:
@list |> map gethostent |> p
# getnetbyname
getnetbyname — posix metadata builtin.
my $result = getnetbyname $x
# or in a pipeline:
@list |> map getnetbyname |> p
# getnetent
getnetent — posix metadata builtin.
my $result = getnetent $x
# or in a pipeline:
@list |> map getnetent |> p
# getprotoent
getprotoent — posix metadata builtin.
my $result = getprotoent $x
# or in a pipeline:
@list |> map getprotoent |> p
# getservent
getservent — posix metadata builtin.
my $result = getservent $x
# or in a pipeline:
@list |> map getservent |> p
# gforce
gravitational_force($m1, $m2, $r) (alias gforce) — Newton's law of gravitation: F = Gm₁m₂/r².
p gforce(5.972e24, 1000, 6.371e6) # ~9820 N (1 ton at Earth surface)
# gid
gid — system introspection builtin.
my $result = gid $x
# or in a pipeline:
@list |> map gid |> p
# gin
gin — algebraic match builtin. Alias for get_in.
my $result = gin $x
# or in a pipeline:
@list |> map gin |> p
# gini
gini(@data) (alias gini_coefficient) — computes the Gini coefficient measuring inequality in a distribution. Returns a value from 0 (perfect equality) to 1 (perfect inequality). Commonly used for income distribution analysis.
p gini(1, 1, 1, 1) # 0 (perfect equality)
p gini(0, 0, 0, 100) # ~0.75 (high inequality)
# glaisher
glaisher — math constants builtin. Alias for glaisher_constant.
my $result = glaisher $x
# or in a pipeline:
@list |> map glaisher |> p
# glaisher_constant
glaisher_constant — math constants builtin.
my $result = glaisher_constant $x
# or in a pipeline:
@list |> map glaisher_constant |> p
# glob_to_regex
glob_to_regex — more regex builtin.
my $result = glob_to_regex $input
# goertzel
goertzel computes the magnitude of a single DFT frequency bin using the Goertzel algorithm. Much faster than full FFT when you need one frequency.
my $mag = goertzel(\@signal, 440, 44100) # 440 Hz component
# goldb
goldb — math / numeric (uncategorized batch) builtin. Alias for goldbach.
my $result = goldb $x
# or in a pipeline:
@list |> map goldb |> p
# goldbach
goldbach — math / numeric (uncategorized batch) builtin.
my $result = goldbach $x
# or in a pipeline:
@list |> map goldbach |> p
# golden
golden_section (aliases golden, gss) finds the minimum of f on [a,b] via golden-section search.
my $xmin = golden(fn { ($_[0]-3)**2 }, 0, 10) # 3.0
# golden_ratio
golden_ratio (alias phi) — φ = (1+√5)/2 ≈ 1.618. The golden ratio, appears throughout nature and art.
p phi # 1.618033988749895
# Fibonacci limit: fib(n)/fib(n-1) → φ
# golstep
golstep — algorithms / puzzles builtin. Alias for game_of_life_step.
my $result = golstep $x
# or in a pipeline:
@list |> map golstep |> p
# goto
goto — control flow builtin.
my $result = goto $x
# or in a pipeline:
@list |> map goto |> p
# gravitational_constant
gravitational_constant — constants builtin.
my $result = gravitational_constant $x
# or in a pipeline:
@list |> map gravitational_constant |> p
# gravity
gravity — math / physics constants builtin.
my $result = gravity $x
# or in a pipeline:
@list |> map gravity |> p
# gray
gray — color / ansi builtin. Alias for red.
my $result = gray $x
# or in a pipeline:
@list |> map gray |> p
# gray2b
gray2b — base / gray code builtin. Alias for gray_to_binary.
my $result = gray2b $x
# or in a pipeline:
@list |> map gray2b |> p
# gray_code_sequence
gray_code_sequence — base / gray code builtin.
my $result = gray_code_sequence $x
# or in a pipeline:
@list |> map gray_code_sequence |> p
# gray_to_binary
gray_to_binary — base / gray code builtin.
my $result = gray_to_binary $input
# grayseq
grayseq — base / gray code builtin. Alias for gray_code_sequence.
my $result = grayseq $x
# or in a pipeline:
@list |> map grayseq |> p
# green
green — color / ansi builtin. Alias for red.
my $result = green $x
# or in a pipeline:
@list |> map green |> p
# green_bold
green_bold — color / ansi builtin. Alias for red.
my $result = green_bold $x
# or in a pipeline:
@list |> map green_bold |> p
# grey
grey — color / ansi builtin. Alias for red.
my $result = grey $x
# or in a pipeline:
@list |> map grey |> p
# group_by
group_by — functional / iterator builtin.
my $result = group_by $x
# or in a pipeline:
@list |> map group_by |> p
# group_by_fn
group_by_fn — go/general functional utilities builtin.
my $result = group_by_fn $x
# or in a pipeline:
@list |> map group_by_fn |> p
# group_by_size
group_by_size — list helpers (batch 4) builtin.
my $result = group_by_size $x
# or in a pipeline:
@list |> map group_by_size |> p
# group_consecutive
group_consecutive — functional combinators builtin.
my $result = group_consecutive $x
# or in a pipeline:
@list |> map group_consecutive |> p
# group_consecutive_by
group_consecutive_by — matrix operations (uncategorized batch) builtin.
my $result = group_consecutive_by $x
# or in a pipeline:
@list |> map group_consecutive_by |> p
# group_number
group_number — file stat / path builtin. Alias for format_number.
my $result = group_number $x
# or in a pipeline:
@list |> map group_number |> p
# group_of_n
group_of_n — collection (batch 2) builtin.
my $result = group_of_n $x
# or in a pipeline:
@list |> map group_of_n |> p
# group_runs
group_runs — haskell list functions builtin.
my $result = group_runs $x
# or in a pipeline:
@list |> map group_runs |> p
# groupby_iter
groupby_iter — python/ruby stdlib builtin.
my $result = groupby_iter $x
# or in a pipeline:
@list |> map groupby_iter |> p
# gruns
gruns — haskell list functions builtin. Alias for group_runs.
my $result = gruns $x
# or in a pipeline:
@list |> map gruns |> p
# gz
gz — crypto / encoding builtin. Alias for gzip.
my $result = gz $x
# or in a pipeline:
@list |> map gz |> p
# h0
h0 — physics constants builtin. Alias for hubble_constant.
my $result = h0 $x
# or in a pipeline:
@list |> map h0 |> p
# half
half — trivial numeric / predicate builtins builtin.
my $result = half $x
# or in a pipeline:
@list |> map half |> p
# half_each
half_each — trivial numeric helpers (batch 4) builtin.
my $result = half_each $x
# or in a pipeline:
@list |> map half_each |> p
# hamdist
hamdist — extended stdlib batch 3 builtin.
my $result = hamdist $x
# or in a pipeline:
@list |> map hamdist |> p
# hamming
window_hamming($n) (alias hamming) — generates a Hamming window of length n. Similar to Hann but with slightly different coefficients, optimized for speech processing.
my $w = hamming(1024)
# hamming_distance
hamming_distance — string (batch 2) builtin.
my $result = hamming_distance $x
# or in a pipeline:
@list |> map hamming_distance |> p
# hann
window_hann($n) (alias hann) — generates a Hann (raised cosine) window of length n. Common window function for spectral analysis that reduces spectral leakage.
my $w = hann(1024)
# hanoi
hanoi — algorithms / puzzles builtin. Alias for tower_of_hanoi.
my $result = hanoi $x
# or in a pipeline:
@list |> map hanoi |> p
# hard_sigmoid
hard_sigmoid — ml activation functions builtin.
my $result = hard_sigmoid $x
# or in a pipeline:
@list |> map hard_sigmoid |> p
# hard_swish
hard_swish — ml activation functions builtin.
my $result = hard_swish $x
# or in a pipeline:
@list |> map hard_swish |> p
# hardsigmoid
hardsigmoid — ml activation functions builtin. Alias for hard_sigmoid.
my $result = hardsigmoid $x
# or in a pipeline:
@list |> map hardsigmoid |> p
# hardswish
hardswish — ml activation functions builtin. Alias for hard_swish.
my $result = hardswish $x
# or in a pipeline:
@list |> map hardswish |> p
# harmonic
harmonic_number (alias harmonic) computes the nth harmonic number H_n = 1 + 1/2 + 1/3 + ... + 1/n.
p harmonic(1) # 1.0
p harmonic(10) # 2.9290
p harmonic(100) # 5.1874
# harmonic_mean
harmonic_mean — file stat / path builtin.
my $result = harmonic_mean $x
# or in a pipeline:
@list |> map harmonic_mean |> p
# has_all_keys
has_all_keys — hash helpers builtin.
my $result = has_all_keys $x
# or in a pipeline:
@list |> map has_all_keys |> p
# has_any_key
has_any_key — hash helpers builtin.
my $result = has_any_key $x
# or in a pipeline:
@list |> map has_any_key |> p
# has_cycle_graph
has_cycle_graph — extended stdlib builtin.
my $result = has_cycle_graph $x
# or in a pipeline:
@list |> map has_cycle_graph |> p
# has_duplicates
has_duplicates — more list helpers builtin.
my $result = has_duplicates $x
# or in a pipeline:
@list |> map has_duplicates |> p
# has_key
has_key — hash helpers builtin.
my $result = has_key $x
# or in a pipeline:
@list |> map has_key |> p
# has_stderr_tty
has_stderr_tty — process / env builtin.
my $result = has_stderr_tty $x
# or in a pipeline:
@list |> map has_stderr_tty |> p
# has_stdin_tty
has_stdin_tty — process / env builtin.
my $result = has_stdin_tty $x
# or in a pipeline:
@list |> map has_stdin_tty |> p
# has_stdout_tty
has_stdout_tty — process / env builtin.
my $result = has_stdout_tty $x
# or in a pipeline:
@list |> map has_stdout_tty |> p
# hascyc
hascyc — extended stdlib builtin. Alias for has_cycle_graph.
my $result = hascyc $x
# or in a pipeline:
@list |> map hascyc |> p
# hash_delete
hash_delete — file stat / path builtin.
my $result = hash_delete $x
# or in a pipeline:
@list |> map hash_delete |> p
# hash_eq
hash_eq — hash ops (batch 2) builtin.
my $result = hash_eq $x
# or in a pipeline:
@list |> map hash_eq |> p
# hash_filter_keys
hash_filter_keys — list helpers (batch 4) builtin.
my $result = hash_filter_keys $x
# or in a pipeline:
@list |> map hash_filter_keys |> p
# hash_from_list
hash_from_list — list helpers (batch 4) builtin.
my $result = hash_from_list $x
# or in a pipeline:
@list |> map hash_from_list |> p
# hash_from_pairs
hash_from_pairs — hash ops (batch 2) builtin.
my $result = hash_from_pairs $x
# or in a pipeline:
@list |> map hash_from_pairs |> p
# hash_insert
hash_insert — file stat / path builtin.
my $result = hash_insert $x
# or in a pipeline:
@list |> map hash_insert |> p
# hash_map_values
hash_map_values — list helpers (batch 4) builtin.
my $result = hash_map_values $x
# or in a pipeline:
@list |> map hash_map_values |> p
# hash_merge_deep
hash_merge_deep — list helpers (batch 4) builtin.
my $result = hash_merge_deep $x
# or in a pipeline:
@list |> map hash_merge_deep |> p
# hash_size
hash_size — hash ops (batch 2) builtin.
my $result = hash_size $x
# or in a pipeline:
@list |> map hash_size |> p
# hash_to_list
hash_to_list — list helpers (batch 4) builtin.
my $result = hash_to_list $input
# hash_update
hash_update — file stat / path builtin.
my $result = hash_update $x
# or in a pipeline:
@list |> map hash_update |> p
# hash_zip
hash_zip — list helpers (batch 4) builtin.
my $result = hash_zip $x
# or in a pipeline:
@list |> map hash_zip |> p
# havdist
havdist — geometry (extended) builtin. Alias for haversine_distance.
my $result = havdist $x
# or in a pipeline:
@list |> map havdist |> p
# haversine
haversine_distance($lat1, $lon1, $lat2, $lon2) (alias haversine) — computes the great-circle distance between two points on Earth given latitude/longitude in degrees. Returns distance in kilometers.
# NYC to LA
p haversine(40.7128, -74.0060, 34.0522, -118.2437)
# ~3940 km
# hclust
hclust — hierarchical clustering (average linkage). Takes a distance matrix. Returns merge list [[i,j,height],...]. Like R's hclust().
my $merges = hclust(dist_mat([[0,0],[1,0],[10,10]]))
# head_lines
head_lines — file stat / path builtin.
my $result = head_lines $x
# or in a pipeline:
@list |> map head_lines |> p
# head_n
head_n — list helpers (batch 4) builtin.
my $result = head_n $x
# or in a pipeline:
@list |> map head_n |> p
# head_str
head_str — string (batch 2) builtin. Alias for left_str.
my $result = head_str $x
# or in a pipeline:
@list |> map head_str |> p
# heat_index
heat_index — physics formulas builtin.
my $result = heat_index $x
# or in a pipeline:
@list |> map heat_index |> p
# heron
heron — geometry / physics builtin. Alias for heron_area.
my $result = heron $x
# or in a pipeline:
@list |> map heron |> p
# heron_area
heron_area — geometry / physics builtin.
my $result = heron_area $x
# or in a pipeline:
@list |> map heron_area |> p
# hex_lower
hex_lower — file stat / path builtin.
my $result = hex_lower $x
# or in a pipeline:
@list |> map hex_lower |> p
# hex_of
hex_of — base conversion builtin. Alias for to_hex.
my $result = hex_of $x
# or in a pipeline:
@list |> map hex_of |> p
# hex_to_bytes
hex_to_bytes — string helpers (batch 4) builtin.
my $result = hex_to_bytes $input
# hex_to_rgb
hex_to_rgb — color / ansi builtin.
my $result = hex_to_rgb $input
# hex_upper
hex_upper — file stat / path builtin.
my $result = hex_upper $x
# or in a pipeline:
@list |> map hex_upper |> p
# hidden
hidden — color / ansi builtin. Alias for red.
my $result = hidden $x
# or in a pipeline:
@list |> map hidden |> p
# highpass_filter
highpass_filter(\@signal, $cutoff) (alias hpf) — applies a simple high-pass filter to remove low-frequency components (DC offset, drift). Signal = original - lowpass.
my @with_dc = map { 5 + sin(_/10) } 1:100
my $ac_only = hpf(\@with_dc, 0.1)
# hist
hist — matrix operations (uncategorized batch) builtin. Alias for histogram.
my $result = hist $x
# or in a pipeline:
@list |> map hist |> p
# histogram
histogram — matrix operations (uncategorized batch) builtin.
my $result = histogram $x
# or in a pipeline:
@list |> map histogram |> p
# histogram_bins
histogram_bins — list helpers (batch 4) builtin.
my $result = histogram_bins $x
# or in a pipeline:
@list |> map histogram_bins |> p
# hk
hk — hash helpers builtin. Alias for has_key.
my $result = hk $x
# or in a pipeline:
@list |> map hk |> p
# home_dir
home_dir — system introspection builtin.
my $result = home_dir $x
# or in a pipeline:
@list |> map home_dir |> p
# hooke
hooke — physics formulas builtin. Alias for spring_force.
my $result = hooke $x
# or in a pipeline:
@list |> map hooke |> p
# hostname_str
hostname_str — more process / system builtin.
my $result = hostname_str $x
# or in a pipeline:
@list |> map hostname_str |> p
# hours_to_days
hours_to_days — unit conversions builtin.
my $result = hours_to_days $input
# hours_to_minutes
hours_to_minutes — unit conversions builtin.
my $result = hours_to_minutes $input
# hours_to_seconds
hours_to_seconds — unit conversions builtin.
my $result = hours_to_seconds $input
# hp_to_watts
hp_to_watts — file stat / path builtin.
my $result = hp_to_watts $input
# hr
hr — data / network builtin. Alias for http_request.
my $result = hr $x
# or in a pipeline:
@list |> map hr |> p
# hsl2rgb
hsl2rgb — color operations builtin. Alias for hsl_to_rgb.
my $result = hsl2rgb $x
# or in a pipeline:
@list |> map hsl2rgb |> p
# hsl_to_rgb
hsl_to_rgb — color operations builtin.
my $result = hsl_to_rgb $input
# hsv2rgb
hsv2rgb — color operations builtin. Alias for hsv_to_rgb.
my $result = hsv2rgb $x
# or in a pipeline:
@list |> map hsv2rgb |> p
# hsv_to_rgb
hsv_to_rgb — color operations builtin.
my $result = hsv_to_rgb $input
# html_decode
html_decode — extended stdlib builtin.
my $result = html_decode $x
# or in a pipeline:
@list |> map html_decode |> p
# html_encode
html_encode — extended stdlib builtin.
my $result = html_encode $x
# or in a pipeline:
@list |> map html_encode |> p
# htmld
htmld — extended stdlib builtin. Alias for html_decode.
my $result = htmld $x
# or in a pipeline:
@list |> map htmld |> p
# htmle
htmle — extended stdlib builtin. Alias for html_encode.
my $result = htmle $x
# or in a pipeline:
@list |> map htmle |> p
# hubble_constant
hubble_constant — physics constants builtin.
my $result = hubble_constant $x
# or in a pipeline:
@list |> map hubble_constant |> p
# human_bytes
human_bytes — file stat / path builtin. Alias for format_bytes.
my $result = human_bytes $x
# or in a pipeline:
@list |> map human_bytes |> p
# human_duration
human_duration — file stat / path builtin. Alias for format_duration.
my $result = human_duration $x
# or in a pipeline:
@list |> map human_duration |> p
# hxd
hxd — crypto / encoding builtin. Alias for hex_decode.
my $result = hxd $x
# or in a pipeline:
@list |> map hxd |> p
# hxe
hxe — crypto / encoding builtin. Alias for hex_encode.
my $result = hxe $x
# or in a pipeline:
@list |> map hxe |> p
# hyp
hyp — geometry / physics builtin. Alias for triangle_hypotenuse.
my $result = hyp $x
# or in a pipeline:
@list |> map hyp |> p
# hypot
hypot — trivial numeric / predicate builtins builtin.
my $result = hypot $x
# or in a pipeline:
@list |> map hypot |> p
# i64_max
i64_max — math / numeric (uncategorized batch) builtin.
my $result = i64_max $x
# or in a pipeline:
@list |> map i64_max |> p
# i64_min
i64_min — math / numeric (uncategorized batch) builtin.
my $result = i64_min $x
# or in a pipeline:
@list |> map i64_min |> p
# ical
ical — haskell list functions builtin. Alias for intercalate.
my $result = ical $x
# or in a pipeline:
@list |> map ical |> p
# id
id — trivial numeric / predicate builtins builtin. Alias for identity.
my $result = id $x
# or in a pipeline:
@list |> map id |> p
# idct
idct computes the inverse DCT (Type-III). Reconstructs a signal from DCT coefficients.
my @signal = @{idct(dct([1,2,3,4]))}
# ideal_gas
ideal_gas (alias pv_nrt) solves PV=nRT for the unknown (pass 0 for the value to solve). Args: P, V, n, T.
p pv_nrt(0, 0.0224, 1, 273.15) # pressure at STP
p pv_nrt(101325, 0, 1, 273.15) # volume at STP
# ideal_gas_volume
ideal_gas_volume — physics formulas builtin.
my $result = ideal_gas_volume $x
# or in a pipeline:
@list |> map ideal_gas_volume |> p
# identity
identity — trivial numeric / predicate builtins builtin.
my $result = identity $x
# or in a pipeline:
@list |> map identity |> p
# identity_matrix
identity_matrix — matrix / linear algebra builtin.
my $result = identity_matrix $x
# or in a pipeline:
@list |> map identity_matrix |> p
# idft
idft(\@spectrum) — computes the Inverse Discrete Fourier Transform. Takes arrayref of [re, im] pairs and returns the time-domain signal.
my $spectrum = dft(\@signal)
my $reconstructed = idft($spectrum)
# idt
idt — extended stdlib builtin. Alias for indent.
my $result = idt $x
# or in a pipeline:
@list |> map idt |> p
# idxb
idxb — go/general functional utilities builtin. Alias for index_by.
my $result = idxb $x
# or in a pipeline:
@list |> map idxb |> p
# if_else
if_else — functional combinators builtin.
my $result = if_else $x
# or in a pipeline:
@list |> map if_else |> p
# ilerp
ilerp — extended stdlib builtin. Alias for inv_lerp.
my $result = ilerp $x
# or in a pipeline:
@list |> map ilerp |> p
# impedance_rlc
impedance_rlc — physics formulas builtin.
my $result = impedance_rlc $x
# or in a pipeline:
@list |> map impedance_rlc |> p
# impulse
impulse($force, $time) — compute impulse J = F×t (N⋅s). Change in momentum.
p impulse(100, 0.5) # 50 N⋅s
# in_range
in_range — extended stdlib builtin.
my $result = in_range $x
# or in a pipeline:
@list |> map in_range |> p
# inc
inc — pipeline / string helpers builtin.
my $result = inc $x
# or in a pipeline:
@list |> map inc |> p
# inc_each
inc_each — trivial numeric helpers (batch 4) builtin.
my $result = inc_each $x
# or in a pipeline:
@list |> map inc_each |> p
# inches_to_cm
inches_to_cm — unit conversions builtin.
my $result = inches_to_cm $input
# includes_val
includes_val — javascript array/object methods builtin.
my $result = includes_val $x
# or in a pipeline:
@list |> map includes_val |> p
# incv
incv — javascript array/object methods builtin. Alias for includes_val.
my $result = incv $x
# or in a pipeline:
@list |> map incv |> p
# indenergy
indenergy — physics formulas builtin. Alias for inductor_energy.
my $result = indenergy $x
# or in a pipeline:
@list |> map indenergy |> p
# indent
indent — extended stdlib builtin.
my $result = indent $x
# or in a pipeline:
@list |> map indent |> p
# indent_text
indent_text — string processing (uncategorized batch) builtin.
my $result = indent_text $x
# or in a pipeline:
@list |> map indent_text |> p
# index_by
index_by — go/general functional utilities builtin.
my $result = index_by $x
# or in a pipeline:
@list |> map index_by |> p
# index_of
index_of — collection (batch 2) builtin.
my $result = index_of $x
# or in a pipeline:
@list |> map index_of |> p
# index_of_elem
index_of_elem — list helpers (batch 4) builtin.
my $result = index_of_elem $x
# or in a pipeline:
@list |> map index_of_elem |> p
# indexes_of
indexes_of — string (batch 2) builtin.
my $result = indexes_of $x
# or in a pipeline:
@list |> map indexes_of |> p
# inductor_energy
inductor_energy — physics formulas builtin.
my $result = inductor_energy $x
# or in a pipeline:
@list |> map inductor_energy |> p
# init_list
init_list — list helpers (batch 4) builtin.
my $result = init_list $x
# or in a pipeline:
@list |> map init_list |> p
# initials
initials — string processing (uncategorized batch) builtin.
my $result = initials $x
# or in a pipeline:
@list |> map initials |> p
# inits
inits — additional missing stdlib functions builtin.
my $result = inits $x
# or in a pipeline:
@list |> map inits |> p
# inits_str
inits_str — string processing (uncategorized batch) builtin. Alias for initials.
my $result = inits_str $x
# or in a pipeline:
@list |> map inits_str |> p
# inject
inject — functional / iterator builtin.
my $result = inject $x
# or in a pipeline:
@list |> map inject |> p
# inrng
inrng — extended stdlib builtin. Alias for in_range.
my $result = inrng $x
# or in a pipeline:
@list |> map inrng |> p
# insa
insa — go/general functional utilities builtin. Alias for insert_at.
my $result = insa $x
# or in a pipeline:
@list |> map insa |> p
# insert_at
insert_at — go/general functional utilities builtin.
my $result = insert_at $x
# or in a pipeline:
@list |> map insert_at |> p
# insert_sorted
insert_sorted — additional missing stdlib functions builtin.
my $result = insert_sorted $x
# or in a pipeline:
@list |> map insert_sorted |> p
# insert_str
insert_str — string helpers (batch 4) builtin.
my $result = insert_str $x
# or in a pipeline:
@list |> map insert_str |> p
# insp
insp — rust iterator methods builtin. Alias for inspect.
my $result = insp $x
# or in a pipeline:
@list |> map insp |> p
# inspect
inspect — rust iterator methods builtin.
my $result = inspect $x
# or in a pipeline:
@list |> map inspect |> p
# inssrt
inssrt — additional missing stdlib functions builtin. Alias for insert_sorted.
my $result = inssrt $x
# or in a pipeline:
@list |> map inssrt |> p
# int_bits
int_bits — math functions builtin.
my $result = int_bits $x
# or in a pipeline:
@list |> map int_bits |> p
# int_to_ipv4
int_to_ipv4 — network / validation builtin.
my $result = int_to_ipv4 $input
# int_to_roman
int_to_roman — roman numerals builtin.
my $result = int_to_roman $input
# intercalate
intercalate — haskell list functions builtin.
my $result = intercalate $x
# or in a pipeline:
@list |> map intercalate |> p
# interleave_lists
interleave_lists — list helpers (batch 4) builtin.
my $result = interleave_lists $x
# or in a pipeline:
@list |> map interleave_lists |> p
# interpose
interpose — go/general functional utilities builtin.
my $result = interpose $x
# or in a pipeline:
@list |> map interpose |> p
# intersect_list
intersect_list — additional missing stdlib functions builtin.
my $result = intersect_list $x
# or in a pipeline:
@list |> map intersect_list |> p
# intersperse
intersperse — collection helpers (trivial) builtin. Alias for riffle.
my $result = intersperse $x
# or in a pipeline:
@list |> map intersperse |> p
# intersperse_char
intersperse_char — string helpers (batch 4) builtin.
my $result = intersperse_char $x
# or in a pipeline:
@list |> map intersperse_char |> p
# intersperse_val
intersperse_val — haskell list functions builtin.
my $result = intersperse_val $x
# or in a pipeline:
@list |> map intersperse_val |> p
# intersperse_with
intersperse_with — additional missing stdlib functions builtin.
my $result = intersperse_with $x
# or in a pipeline:
@list |> map intersperse_with |> p
# intl
intl — additional missing stdlib functions builtin. Alias for intersect_list.
my $result = intl $x
# or in a pipeline:
@list |> map intl |> p
# into
into — algebraic match builtin.
my $result = into $x
# or in a pipeline:
@list |> map into |> p
# inv_lerp
inv_lerp — extended stdlib builtin.
my $result = inv_lerp $x
# or in a pipeline:
@list |> map inv_lerp |> p
# inverse
inverse — trivial numeric / predicate builtins builtin.
my $result = inverse $x
# or in a pipeline:
@list |> map inverse |> p
# inverse_lerp
inverse_lerp — math formulas builtin.
my $result = inverse_lerp $x
# or in a pipeline:
@list |> map inverse_lerp |> p
# invert
invert — hash helpers builtin.
my $result = invert $x
# or in a pipeline:
@list |> map invert |> p
# ioctl
ioctl — ipc builtin.
my $result = ioctl $x
# or in a pipeline:
@list |> map ioctl |> p
# ipos
ipos — go/general functional utilities builtin. Alias for interpose.
my $result = ipos $x
# or in a pipeline:
@list |> map ipos |> p
# ipv4_to_int
ipv4_to_int — network / validation builtin.
my $result = ipv4_to_int $input
# iqr
iqr — extended stdlib builtin.
my $result = iqr $x
# or in a pipeline:
@list |> map iqr |> p
# irr
irr(@cashflows) — computes the Internal Rate of Return for a series of cash flows. First value is typically negative (initial investment). Uses Newton-Raphson iteration.
my @cf = (-1000, 300, 420, 680)
p irr(@cf) # ~0.166 (16.6%)
# is_abundant
is_abundant — number theory / primes builtin.
my $result = is_abundant $x
# or in a pipeline:
@list |> map is_abundant |> p
# is_alnum
is_alnum — trivial string ops builtin.
my $result = is_alnum $x
# or in a pipeline:
@list |> map is_alnum |> p
# is_alpha
is_alpha — trivial string ops builtin.
my $result = is_alpha $x
# or in a pipeline:
@list |> map is_alpha |> p
# is_anagram
is_anagram — dsp / signal (extended) builtin.
my $result = is_anagram $x
# or in a pipeline:
@list |> map is_anagram |> p
# is_array
is_array — trivial type predicates builtin.
my $result = is_array $x
# or in a pipeline:
@list |> map is_array |> p
# is_arrayref
is_arrayref — trivial type predicates builtin. Alias for is_array.
my $result = is_arrayref $x
# or in a pipeline:
@list |> map is_arrayref |> p
# is_asc
is_asc — predicates (batch 2) builtin. Alias for is_sorted.
my $result = is_asc $x
# or in a pipeline:
@list |> map is_asc |> p
# is_ascii
is_ascii — extended stdlib builtin.
my $result = is_ascii $x
# or in a pipeline:
@list |> map is_ascii |> p
# is_balanced_parens
is_balanced_parens — dsp / signal (extended) builtin.
my $result = is_balanced_parens $x
# or in a pipeline:
@list |> map is_balanced_parens |> p
# is_base64
is_base64 — extended stdlib builtin.
my $result = is_base64 $x
# or in a pipeline:
@list |> map is_base64 |> p
# is_between
is_between — predicates (batch 4) builtin.
my $result = is_between $x
# or in a pipeline:
@list |> map is_between |> p
# is_binary_str
is_binary_str — extended stdlib builtin.
my $result = is_binary_str $x
# or in a pipeline:
@list |> map is_binary_str |> p
# is_bipartite_graph
is_bipartite_graph — extended stdlib builtin.
my $result = is_bipartite_graph $x
# or in a pipeline:
@list |> map is_bipartite_graph |> p
# is_blank
is_blank — trivial string ops builtin.
my $result = is_blank $x
# or in a pipeline:
@list |> map is_blank |> p
# is_blank_or_nil
is_blank_or_nil — predicates (batch 4) builtin.
my $result = is_blank_or_nil $x
# or in a pipeline:
@list |> map is_blank_or_nil |> p
# is_callable
is_callable — functional combinators builtin.
my $result = is_callable $x
# or in a pipeline:
@list |> map is_callable |> p
# is_code
is_code — trivial type predicates builtin.
my $result = is_code $x
# or in a pipeline:
@list |> map is_code |> p
# is_coderef
is_coderef — trivial type predicates builtin. Alias for is_code.
my $result = is_coderef $x
# or in a pipeline:
@list |> map is_coderef |> p
# is_consonant
is_consonant — string (batch 2) builtin.
my $result = is_consonant $x
# or in a pipeline:
@list |> map is_consonant |> p
# is_control
is_control — dsp / signal (extended) builtin.
my $result = is_control $x
# or in a pipeline:
@list |> map is_control |> p
# is_coprime
is_coprime — extended stdlib batch 3 builtin.
my $result = is_coprime $x
# or in a pipeline:
@list |> map is_coprime |> p
# is_credit_card
is_credit_card — extended stdlib builtin.
my $result = is_credit_card $x
# or in a pipeline:
@list |> map is_credit_card |> p
# is_def
is_def — trivial type predicates builtin. Alias for is_defined.
my $result = is_def $x
# or in a pipeline:
@list |> map is_def |> p
# is_deficient
is_deficient — number theory / primes builtin.
my $result = is_deficient $x
# or in a pipeline:
@list |> map is_deficient |> p
# is_defined
is_defined — trivial type predicates builtin.
my $result = is_defined $x
# or in a pipeline:
@list |> map is_defined |> p
# is_desc
is_desc — predicates (batch 2) builtin. Alias for is_sorted_desc.
my $result = is_desc $x
# or in a pipeline:
@list |> map is_desc |> p
# is_digit
is_digit — trivial string ops builtin.
my $result = is_digit $x
# or in a pipeline:
@list |> map is_digit |> p
# is_divisible_by
is_divisible_by — predicates (batch 4) builtin.
my $result = is_divisible_by $x
# or in a pipeline:
@list |> map is_divisible_by |> p
# is_email
is_email — predicates (batch 4) builtin.
my $result = is_email $x
# or in a pipeline:
@list |> map is_email |> p
# is_empty
is_empty — trivial string ops builtin.
my $result = is_empty $x
# or in a pipeline:
@list |> map is_empty |> p
# is_empty_arr
is_empty_arr — predicates (batch 2) builtin.
my $result = is_empty_arr $x
# or in a pipeline:
@list |> map is_empty_arr |> p
# is_empty_hash
is_empty_hash — predicates (batch 2) builtin.
my $result = is_empty_hash $x
# or in a pipeline:
@list |> map is_empty_hash |> p
# is_even
is_even — predicates (batch 4) builtin.
my $result = is_even $x
# or in a pipeline:
@list |> map is_even |> p
# is_even_num
is_even_num — extended stdlib builtin.
my $result = is_even_num $x
# or in a pipeline:
@list |> map is_even_num |> p
# is_executable
is_executable — file stat / path builtin.
my $result = is_executable $x
# or in a pipeline:
@list |> map is_executable |> p
# is_falsy
is_falsy — predicates (batch 4) builtin.
my $result = is_falsy $x
# or in a pipeline:
@list |> map is_falsy |> p
# is_fibonacci
is_fibonacci — predicates (batch 4) builtin.
my $result = is_fibonacci $x
# or in a pipeline:
@list |> map is_fibonacci |> p
# is_finite
is_finite — trig / math (batch 2) builtin.
my $result = is_finite $x
# or in a pipeline:
@list |> map is_finite |> p
# is_float
is_float — trivial type predicates builtin.
my $result = is_float $x
# or in a pipeline:
@list |> map is_float |> p
# is_harshad
is_harshad — extended stdlib batch 3 builtin.
my $result = is_harshad $x
# or in a pipeline:
@list |> map is_harshad |> p
# is_hash
is_hash — trivial type predicates builtin.
my $result = is_hash $x
# or in a pipeline:
@list |> map is_hash |> p
# is_hashref
is_hashref — trivial type predicates builtin. Alias for is_hash.
my $result = is_hashref $x
# or in a pipeline:
@list |> map is_hashref |> p
# is_heterogram
is_heterogram — extended stdlib batch 3 builtin.
my $result = is_heterogram $x
# or in a pipeline:
@list |> map is_heterogram |> p
# is_hex_color
is_hex_color — predicates (batch 4) builtin.
my $result = is_hex_color $x
# or in a pipeline:
@list |> map is_hex_color |> p
# is_hex_str
is_hex_str — extended stdlib builtin.
my $result = is_hex_str $x
# or in a pipeline:
@list |> map is_hex_str |> p
# is_hostname_valid
is_hostname_valid — extended stdlib builtin.
my $result = is_hostname_valid $x
# or in a pipeline:
@list |> map is_hostname_valid |> p
# is_iban
is_iban — extended stdlib builtin.
my $result = is_iban $x
# or in a pipeline:
@list |> map is_iban |> p
# is_in_range
is_in_range — predicates (batch 4) builtin.
my $result = is_in_range $x
# or in a pipeline:
@list |> map is_in_range |> p
# is_inf
is_inf — trig / math (batch 2) builtin. Alias for is_infinite.
my $result = is_inf $x
# or in a pipeline:
@list |> map is_inf |> p
# is_infinite
is_infinite — trig / math (batch 2) builtin.
my $result = is_infinite $x
# or in a pipeline:
@list |> map is_infinite |> p
# is_int
is_int — trivial type predicates builtin.
my $result = is_int $x
# or in a pipeline:
@list |> map is_int |> p
# is_integer
is_integer — trivial type predicates builtin. Alias for is_int.
my $result = is_integer $x
# or in a pipeline:
@list |> map is_integer |> p
# is_ipv4
is_ipv4 — predicates (batch 4) builtin.
my $result = is_ipv4 $x
# or in a pipeline:
@list |> map is_ipv4 |> p
# is_ipv4_addr
is_ipv4_addr — extended stdlib builtin.
my $result = is_ipv4_addr $x
# or in a pipeline:
@list |> map is_ipv4_addr |> p
# is_ipv6_addr
is_ipv6_addr — extended stdlib builtin.
my $result = is_ipv6_addr $x
# or in a pipeline:
@list |> map is_ipv6_addr |> p
# is_isbn10
is_isbn10 — extended stdlib builtin.
my $result = is_isbn10 $x
# or in a pipeline:
@list |> map is_isbn10 |> p
# is_isbn13
is_isbn13 — extended stdlib builtin.
my $result = is_isbn13 $x
# or in a pipeline:
@list |> map is_isbn13 |> p
# is_iso_date
is_iso_date — extended stdlib builtin.
my $result = is_iso_date $x
# or in a pipeline:
@list |> map is_iso_date |> p
# is_iso_datetime
is_iso_datetime — extended stdlib builtin.
my $result = is_iso_datetime $x
# or in a pipeline:
@list |> map is_iso_datetime |> p
# is_iso_time
is_iso_time — extended stdlib builtin.
my $result = is_iso_time $x
# or in a pipeline:
@list |> map is_iso_time |> p
# is_isogram
is_isogram — extended stdlib batch 3 builtin.
my $result = is_isogram $x
# or in a pipeline:
@list |> map is_isogram |> p
# is_json
is_json — extended stdlib builtin.
my $result = is_json $x
# or in a pipeline:
@list |> map is_json |> p
# is_kaprekar
is_kaprekar — extended stdlib batch 3 builtin.
my $result = is_kaprekar $x
# or in a pipeline:
@list |> map is_kaprekar |> p
# is_leap
is_leap — date helpers builtin. Alias for is_leap_year.
my $result = is_leap $x
# or in a pipeline:
@list |> map is_leap |> p
# is_leap_year
is_leap_year — date helpers builtin.
my $result = is_leap_year $x
# or in a pipeline:
@list |> map is_leap_year |> p
# is_lower
is_lower — trivial string ops builtin.
my $result = is_lower $x
# or in a pipeline:
@list |> map is_lower |> p
# is_mac_addr
is_mac_addr — extended stdlib builtin.
my $result = is_mac_addr $x
# or in a pipeline:
@list |> map is_mac_addr |> p
# is_match
is_match — extended stdlib builtin.
my $result = is_match $x
# or in a pipeline:
@list |> map is_match |> p
# is_monotonic
is_monotonic — extended stdlib batch 3 builtin.
my $result = is_monotonic $x
# or in a pipeline:
@list |> map is_monotonic |> p
# is_multiple_of
is_multiple_of — predicates (batch 4) builtin.
my $result = is_multiple_of $x
# or in a pipeline:
@list |> map is_multiple_of |> p
# is_nan
is_nan — trig / math (batch 2) builtin.
my $result = is_nan $x
# or in a pipeline:
@list |> map is_nan |> p
# is_narcissistic
is_narcissistic — extended stdlib batch 3 builtin.
my $result = is_narcissistic $x
# or in a pipeline:
@list |> map is_narcissistic |> p
# is_negative
is_negative — predicates (batch 4) builtin.
my $result = is_negative $x
# or in a pipeline:
@list |> map is_negative |> p
# is_negative_num
is_negative_num — extended stdlib builtin.
my $result = is_negative_num $x
# or in a pipeline:
@list |> map is_negative_num |> p
# is_nil
is_nil — predicates (batch 4) builtin.
my $result = is_nil $x
# or in a pipeline:
@list |> map is_nil |> p
# is_nonzero
is_nonzero — predicates (batch 4) builtin.
my $result = is_nonzero $x
# or in a pipeline:
@list |> map is_nonzero |> p
# is_numeric
is_numeric — trivial string ops builtin.
my $result = is_numeric $x
# or in a pipeline:
@list |> map is_numeric |> p
# is_numeric_string
is_numeric_string — dsp / signal (extended) builtin.
my $result = is_numeric_string $x
# or in a pipeline:
@list |> map is_numeric_string |> p
# is_octal_str
is_octal_str — extended stdlib builtin.
my $result = is_octal_str $x
# or in a pipeline:
@list |> map is_octal_str |> p
# is_odd
is_odd — predicates (batch 4) builtin.
my $result = is_odd $x
# or in a pipeline:
@list |> map is_odd |> p
# is_odd_num
is_odd_num — extended stdlib builtin.
my $result = is_odd_num $x
# or in a pipeline:
@list |> map is_odd_num |> p
# is_pair
is_pair — predicates (batch 2) builtin.
my $result = is_pair $x
# or in a pipeline:
@list |> map is_pair |> p
# is_palindrome
is_palindrome — string (batch 2) builtin.
my $result = is_palindrome $x
# or in a pipeline:
@list |> map is_palindrome |> p
# is_pangram
is_pangram — dsp / signal (extended) builtin.
my $result = is_pangram $x
# or in a pipeline:
@list |> map is_pangram |> p
# is_pentagonal
is_pentagonal — number theory / primes builtin.
my $result = is_pentagonal $x
# or in a pipeline:
@list |> map is_pentagonal |> p
# is_perfect
is_perfect — number theory / primes builtin.
my $result = is_perfect $x
# or in a pipeline:
@list |> map is_perfect |> p
# is_perfect_square
is_perfect_square — predicates (batch 4) builtin.
my $result = is_perfect_square $x
# or in a pipeline:
@list |> map is_perfect_square |> p
# is_permutation
is_permutation — predicates (batch 2) builtin.
my $result = is_permutation $x
# or in a pipeline:
@list |> map is_permutation |> p
# is_phone_num
is_phone_num — extended stdlib builtin.
my $result = is_phone_num $x
# or in a pipeline:
@list |> map is_phone_num |> p
# is_port_num
is_port_num — extended stdlib builtin.
my $result = is_port_num $x
# or in a pipeline:
@list |> map is_port_num |> p
# is_positive
is_positive — predicates (batch 4) builtin.
my $result = is_positive $x
# or in a pipeline:
@list |> map is_positive |> p
# is_positive_num
is_positive_num — extended stdlib builtin.
my $result = is_positive_num $x
# or in a pipeline:
@list |> map is_positive_num |> p
# is_pow2
is_pow2 — trivial numeric / predicate builtins builtin. Alias for is_power_of_two.
my $result = is_pow2 $x
# or in a pipeline:
@list |> map is_pow2 |> p
# is_power_of
is_power_of — predicates (batch 4) builtin.
my $result = is_power_of $x
# or in a pipeline:
@list |> map is_power_of |> p
# is_power_of_two
is_power_of_two — trivial numeric / predicate builtins builtin.
my $result = is_power_of_two $x
# or in a pipeline:
@list |> map is_power_of_two |> p
# is_prefix
is_prefix — predicates (batch 4) builtin.
my $result = is_prefix $x
# or in a pipeline:
@list |> map is_prefix |> p
# is_present
is_present — predicates (batch 4) builtin.
my $result = is_present $x
# or in a pipeline:
@list |> map is_present |> p
# is_prime
is_prime — trivial numeric / predicate builtins builtin.
my $result = is_prime $x
# or in a pipeline:
@list |> map is_prime |> p
# is_printable
is_printable — dsp / signal (extended) builtin.
my $result = is_printable $x
# or in a pipeline:
@list |> map is_printable |> p
# is_probable_prime
miller_rabin (aliases millerrabin, is_probable_prime) performs a probabilistic primality test with k rounds (default 20).
p millerrabin(104729) # 1 (prime)
p millerrabin(104730) # 0 (composite)
# is_readable
is_readable — file stat / path builtin.
my $result = is_readable $x
# or in a pipeline:
@list |> map is_readable |> p
# is_ref
is_ref — trivial type predicates builtin.
my $result = is_ref $x
# or in a pipeline:
@list |> map is_ref |> p
# is_regex_valid
is_regex_valid — more regex builtin.
my $result = is_regex_valid $x
# or in a pipeline:
@list |> map is_regex_valid |> p
# is_root
is_root — more process / system builtin.
my $result = is_root $x
# or in a pipeline:
@list |> map is_root |> p
# is_semver
is_semver — extended stdlib builtin.
my $result = is_semver $x
# or in a pipeline:
@list |> map is_semver |> p
# is_slug
is_slug — extended stdlib builtin.
my $result = is_slug $x
# or in a pipeline:
@list |> map is_slug |> p
# is_smith
is_smith — number theory / primes builtin.
my $result = is_smith $x
# or in a pipeline:
@list |> map is_smith |> p
# is_sorted
is_sorted — predicates (batch 2) builtin.
my $result = is_sorted $x
# or in a pipeline:
@list |> map is_sorted |> p
# is_sorted_by
is_sorted_by — additional missing stdlib functions builtin.
my $result = is_sorted_by $x
# or in a pipeline:
@list |> map is_sorted_by |> p
# is_sorted_desc
is_sorted_desc — predicates (batch 2) builtin.
my $result = is_sorted_desc $x
# or in a pipeline:
@list |> map is_sorted_desc |> p
# is_space
is_space — trivial string ops builtin.
my $result = is_space $x
# or in a pipeline:
@list |> map is_space |> p
# is_square
is_square — trivial numeric / predicate builtins builtin.
my $result = is_square $x
# or in a pipeline:
@list |> map is_square |> p
# is_squarefree
is_squarefree — extended stdlib batch 3 builtin.
my $result = is_squarefree $x
# or in a pipeline:
@list |> map is_squarefree |> p
# is_str
is_str — trivial type predicates builtin. Alias for is_string.
my $result = is_str $x
# or in a pipeline:
@list |> map is_str |> p
# is_strictly_decreasing
is_strictly_decreasing — predicates (batch 4) builtin.
my $result = is_strictly_decreasing $x
# or in a pipeline:
@list |> map is_strictly_decreasing |> p
# is_strictly_increasing
is_strictly_increasing — predicates (batch 4) builtin.
my $result = is_strictly_increasing $x
# or in a pipeline:
@list |> map is_strictly_increasing |> p
# is_string
is_string — trivial type predicates builtin.
my $result = is_string $x
# or in a pipeline:
@list |> map is_string |> p
# is_subset
is_subset — predicates (batch 2) builtin.
my $result = is_subset $x
# or in a pipeline:
@list |> map is_subset |> p
# is_suffix
is_suffix — predicates (batch 4) builtin.
my $result = is_suffix $x
# or in a pipeline:
@list |> map is_suffix |> p
# is_superset
is_superset — predicates (batch 2) builtin.
my $result = is_superset $x
# or in a pipeline:
@list |> map is_superset |> p
# is_symlink
is_symlink — file stat / path builtin.
my $result = is_symlink $x
# or in a pipeline:
@list |> map is_symlink |> p
# is_triangular
is_triangular — predicates (batch 4) builtin.
my $result = is_triangular $x
# or in a pipeline:
@list |> map is_triangular |> p
# is_triple
is_triple — predicates (batch 2) builtin.
my $result = is_triple $x
# or in a pipeline:
@list |> map is_triple |> p
# is_truthy
is_truthy — predicates (batch 4) builtin.
my $result = is_truthy $x
# or in a pipeline:
@list |> map is_truthy |> p
# is_tty
is_tty — more process / system builtin.
my $result = is_tty $x
# or in a pipeline:
@list |> map is_tty |> p
# is_undef
is_undef — trivial type predicates builtin.
my $result = is_undef $x
# or in a pipeline:
@list |> map is_undef |> p
# is_upper
is_upper — trivial string ops builtin.
my $result = is_upper $x
# or in a pipeline:
@list |> map is_upper |> p
# is_url
is_url — predicates (batch 4) builtin.
my $result = is_url $x
# or in a pipeline:
@list |> map is_url |> p
# is_us_zip
is_us_zip — extended stdlib builtin.
my $result = is_us_zip $x
# or in a pipeline:
@list |> map is_us_zip |> p
# is_uuid
is_uuid — id helpers builtin.
my $result = is_uuid $x
# or in a pipeline:
@list |> map is_uuid |> p
# is_valid_cidr
is_valid_cidr — dsp / signal (extended) builtin.
my $result = is_valid_cidr $x
# or in a pipeline:
@list |> map is_valid_cidr |> p
# is_valid_cron
is_valid_cron — dsp / signal (extended) builtin.
my $result = is_valid_cron $x
# or in a pipeline:
@list |> map is_valid_cron |> p
# is_valid_date
is_valid_date — extended stdlib batch 3 builtin.
my $result = is_valid_date $x
# or in a pipeline:
@list |> map is_valid_date |> p
# is_valid_email
is_valid_email — network / validation builtin.
my $result = is_valid_email $x
# or in a pipeline:
@list |> map is_valid_email |> p
# is_valid_hex
is_valid_hex — file stat / path builtin.
my $result = is_valid_hex $x
# or in a pipeline:
@list |> map is_valid_hex |> p
# is_valid_hex_color
is_valid_hex_color — dsp / signal (extended) builtin.
my $result = is_valid_hex_color $x
# or in a pipeline:
@list |> map is_valid_hex_color |> p
# is_valid_ipv4
is_valid_ipv4 — network / validation builtin.
my $result = is_valid_ipv4 $x
# or in a pipeline:
@list |> map is_valid_ipv4 |> p
# is_valid_ipv6
is_valid_ipv6 — network / validation builtin.
my $result = is_valid_ipv6 $x
# or in a pipeline:
@list |> map is_valid_ipv6 |> p
# is_valid_latitude
is_valid_latitude — dsp / signal (extended) builtin.
my $result = is_valid_latitude $x
# or in a pipeline:
@list |> map is_valid_latitude |> p
# is_valid_longitude
is_valid_longitude — dsp / signal (extended) builtin.
my $result = is_valid_longitude $x
# or in a pipeline:
@list |> map is_valid_longitude |> p
# is_valid_mime
is_valid_mime — dsp / signal (extended) builtin.
my $result = is_valid_mime $x
# or in a pipeline:
@list |> map is_valid_mime |> p
# is_valid_url
is_valid_url — network / validation builtin.
my $result = is_valid_url $x
# or in a pipeline:
@list |> map is_valid_url |> p
# is_vowel
is_vowel — string (batch 2) builtin.
my $result = is_vowel $x
# or in a pipeline:
@list |> map is_vowel |> p
# is_weekday
is_weekday — date (batch 2) builtin.
my $result = is_weekday $x
# or in a pipeline:
@list |> map is_weekday |> p
# is_weekend
is_weekend — date (batch 2) builtin.
my $result = is_weekend $x
# or in a pipeline:
@list |> map is_weekend |> p
# is_whitespace
is_whitespace — trivial string ops builtin. Alias for is_space.
my $result = is_whitespace $x
# or in a pipeline:
@list |> map is_whitespace |> p
# is_whole
is_whole — predicates (batch 4) builtin.
my $result = is_whole $x
# or in a pipeline:
@list |> map is_whole |> p
# is_whole_num
is_whole_num — extended stdlib builtin.
my $result = is_whole_num $x
# or in a pipeline:
@list |> map is_whole_num |> p
# is_writable
is_writable — file stat / path builtin.
my $result = is_writable $x
# or in a pipeline:
@list |> map is_writable |> p
# is_zero
is_zero — predicates (batch 4) builtin.
my $result = is_zero $x
# or in a pipeline:
@list |> map is_zero |> p
# is_zero_num
is_zero_num — extended stdlib builtin.
my $result = is_zero_num $x
# or in a pipeline:
@list |> map is_zero_num |> p
# isabun
isabun — number theory / primes builtin. Alias for is_abundant.
my $result = isabun $x
# or in a pipeline:
@list |> map isabun |> p
# isanag
isanag — dsp / signal (extended) builtin. Alias for is_anagram.
my $result = isanag $x
# or in a pipeline:
@list |> map isanag |> p
# isasc
isasc — extended stdlib builtin. Alias for is_ascii.
my $result = isasc $x
# or in a pipeline:
@list |> map isasc |> p
# isb64
isb64 — extended stdlib builtin. Alias for is_base64.
my $result = isb64 $x
# or in a pipeline:
@list |> map isb64 |> p
# isbalp
isbalp — dsp / signal (extended) builtin. Alias for is_balanced_parens.
my $result = isbalp $x
# or in a pipeline:
@list |> map isbalp |> p
# isbin
isbin — extended stdlib builtin. Alias for is_binary_str.
my $result = isbin $x
# or in a pipeline:
@list |> map isbin |> p
# isbip
isbip — extended stdlib builtin. Alias for is_bipartite_graph.
my $result = isbip $x
# or in a pipeline:
@list |> map isbip |> p
# isbn10
isbn10 — extended stdlib builtin. Alias for is_isbn10.
my $result = isbn10 $x
# or in a pipeline:
@list |> map isbn10 |> p
# isbn13
isbn13 — extended stdlib builtin. Alias for is_isbn13.
my $result = isbn13 $x
# or in a pipeline:
@list |> map isbn13 |> p
# iscc
iscc — extended stdlib builtin. Alias for is_credit_card.
my $result = iscc $x
# or in a pipeline:
@list |> map iscc |> p
# iscidr
iscidr — dsp / signal (extended) builtin. Alias for is_valid_cidr.
my $result = iscidr $x
# or in a pipeline:
@list |> map iscidr |> p
# iscopr
iscopr — extended stdlib batch 3 builtin. Alias for is_coprime.
my $result = iscopr $x
# or in a pipeline:
@list |> map iscopr |> p
# iscron
iscron — dsp / signal (extended) builtin. Alias for is_valid_cron.
my $result = iscron $x
# or in a pipeline:
@list |> map iscron |> p
# isctrl
isctrl — dsp / signal (extended) builtin. Alias for is_control.
my $result = isctrl $x
# or in a pipeline:
@list |> map isctrl |> p
# isdefi
isdefi — number theory / primes builtin. Alias for is_deficient.
my $result = isdefi $x
# or in a pipeline:
@list |> map isdefi |> p
# iseven
iseven — extended stdlib builtin. Alias for is_even_num.
my $result = iseven $x
# or in a pipeline:
@list |> map iseven |> p
# isharsh
isharsh — extended stdlib batch 3 builtin. Alias for is_harshad.
my $result = isharsh $x
# or in a pipeline:
@list |> map isharsh |> p
# ishet
ishet — extended stdlib batch 3 builtin. Alias for is_heterogram.
my $result = ishet $x
# or in a pipeline:
@list |> map ishet |> p
# ishex
ishex — extended stdlib builtin. Alias for is_hex_str.
my $result = ishex $x
# or in a pipeline:
@list |> map ishex |> p
# ishexc
ishexc — dsp / signal (extended) builtin. Alias for is_valid_hex_color.
my $result = ishexc $x
# or in a pipeline:
@list |> map ishexc |> p
# ishost
ishost — extended stdlib builtin. Alias for is_hostname_valid.
my $result = ishost $x
# or in a pipeline:
@list |> map ishost |> p
# isiban
isiban — extended stdlib builtin. Alias for is_iban.
my $result = isiban $x
# or in a pipeline:
@list |> map isiban |> p
# isip4
isip4 — extended stdlib builtin. Alias for is_ipv4_addr.
my $result = isip4 $x
# or in a pipeline:
@list |> map isip4 |> p
# isip6
isip6 — extended stdlib builtin. Alias for is_ipv6_addr.
my $result = isip6 $x
# or in a pipeline:
@list |> map isip6 |> p
# isiso
isiso — extended stdlib batch 3 builtin. Alias for is_isogram.
my $result = isiso $x
# or in a pipeline:
@list |> map isiso |> p
# isisodt
isisodt — extended stdlib builtin. Alias for is_iso_date.
my $result = isisodt $x
# or in a pipeline:
@list |> map isisodt |> p
# isisodtm
isisodtm — extended stdlib builtin. Alias for is_iso_datetime.
my $result = isisodtm $x
# or in a pipeline:
@list |> map isisodtm |> p
# isisotm
isisotm — extended stdlib builtin. Alias for is_iso_time.
my $result = isisotm $x
# or in a pipeline:
@list |> map isisotm |> p
# isjson
isjson — extended stdlib builtin. Alias for is_json.
my $result = isjson $x
# or in a pipeline:
@list |> map isjson |> p
# iskap
iskap — extended stdlib batch 3 builtin. Alias for is_kaprekar.
my $result = iskap $x
# or in a pipeline:
@list |> map iskap |> p
# isl
isl — python/ruby stdlib builtin. Alias for islice.
my $result = isl $x
# or in a pipeline:
@list |> map isl |> p
# islat
islat — dsp / signal (extended) builtin. Alias for is_valid_latitude.
my $result = islat $x
# or in a pipeline:
@list |> map islat |> p
# islice
islice — python/ruby stdlib builtin.
my $result = islice $x
# or in a pipeline:
@list |> map islice |> p
# islon
islon — dsp / signal (extended) builtin. Alias for is_valid_longitude.
my $result = islon $x
# or in a pipeline:
@list |> map islon |> p
# ism
ism — extended stdlib builtin. Alias for is_match.
my $result = ism $x
# or in a pipeline:
@list |> map ism |> p
# ismac
ismac — extended stdlib builtin. Alias for is_mac_addr.
my $result = ismac $x
# or in a pipeline:
@list |> map ismac |> p
# ismime
ismime — dsp / signal (extended) builtin. Alias for is_valid_mime.
my $result = ismime $x
# or in a pipeline:
@list |> map ismime |> p
# ismono
ismono — extended stdlib batch 3 builtin. Alias for is_monotonic.
my $result = ismono $x
# or in a pipeline:
@list |> map ismono |> p
# isnarc
isnarc — extended stdlib batch 3 builtin. Alias for is_narcissistic.
my $result = isnarc $x
# or in a pipeline:
@list |> map isnarc |> p
# isneg
isneg — extended stdlib builtin. Alias for is_negative_num.
my $result = isneg $x
# or in a pipeline:
@list |> map isneg |> p
# isnumstr
isnumstr — dsp / signal (extended) builtin. Alias for is_numeric_string.
my $result = isnumstr $x
# or in a pipeline:
@list |> map isnumstr |> p
# isoct
isoct — extended stdlib builtin. Alias for is_octal_str.
my $result = isoct $x
# or in a pipeline:
@list |> map isoct |> p
# isodd
isodd — extended stdlib builtin. Alias for is_odd_num.
my $result = isodd $x
# or in a pipeline:
@list |> map isodd |> p
# isp
isp — haskell list functions builtin. Alias for intersperse_val.
my $result = isp $x
# or in a pipeline:
@list |> map isp |> p
# ispang
ispang — dsp / signal (extended) builtin. Alias for is_pangram.
my $result = ispang $x
# or in a pipeline:
@list |> map ispang |> p
# ispent
ispent — number theory / primes builtin. Alias for is_pentagonal.
my $result = ispent $x
# or in a pipeline:
@list |> map ispent |> p
# isperf
isperf — number theory / primes builtin. Alias for is_perfect.
my $result = isperf $x
# or in a pipeline:
@list |> map isperf |> p
# isphone
isphone — extended stdlib builtin. Alias for is_phone_num.
my $result = isphone $x
# or in a pipeline:
@list |> map isphone |> p
# isport
isport — extended stdlib builtin. Alias for is_port_num.
my $result = isport $x
# or in a pipeline:
@list |> map isport |> p
# ispos
ispos — extended stdlib builtin. Alias for is_positive_num.
my $result = ispos $x
# or in a pipeline:
@list |> map ispos |> p
# isprint
isprint — dsp / signal (extended) builtin. Alias for is_printable.
my $result = isprint $x
# or in a pipeline:
@list |> map isprint |> p
# ispw
ispw — additional missing stdlib functions builtin. Alias for intersperse_with.
my $result = ispw $x
# or in a pipeline:
@list |> map ispw |> p
# isslug
isslug — extended stdlib builtin. Alias for is_slug.
my $result = isslug $x
# or in a pipeline:
@list |> map isslug |> p
# issmith
issmith — number theory / primes builtin. Alias for is_smith.
my $result = issmith $x
# or in a pipeline:
@list |> map issmith |> p
# issqfr
issqfr — extended stdlib batch 3 builtin. Alias for is_squarefree.
my $result = issqfr $x
# or in a pipeline:
@list |> map issqfr |> p
# issrtb
issrtb — additional missing stdlib functions builtin. Alias for is_sorted_by.
my $result = issrtb $x
# or in a pipeline:
@list |> map issrtb |> p
# issv
issv — extended stdlib builtin. Alias for is_semver.
my $result = issv $x
# or in a pipeline:
@list |> map issv |> p
# isvdate
isvdate — extended stdlib batch 3 builtin. Alias for is_valid_date.
my $result = isvdate $x
# or in a pipeline:
@list |> map isvdate |> p
# iswhole
iswhole — extended stdlib builtin. Alias for is_whole_num.
my $result = iswhole $x
# or in a pipeline:
@list |> map iswhole |> p
# iszero
iszero — extended stdlib builtin. Alias for is_zero_num.
my $result = iszero $x
# or in a pipeline:
@list |> map iszero |> p
# iszip
iszip — extended stdlib builtin. Alias for is_us_zip.
my $result = iszip $x
# or in a pipeline:
@list |> map iszip |> p
# italic
italic — color / ansi builtin. Alias for red.
my $result = italic $x
# or in a pipeline:
@list |> map italic |> p
# iter
iter — algebraic match builtin. Alias for iterate.
my $result = iter $x
# or in a pipeline:
@list |> map iter |> p
# iterate
iterate — algebraic match builtin.
my $result = iterate $x
# or in a pipeline:
@list |> map iterate |> p
# iterate_n
iterate_n — functional combinators builtin.
my $result = iterate_n $x
# or in a pipeline:
@list |> map iterate_n |> p
# jaccard
jaccard — extended stdlib batch 3 builtin. Alias for jaccard_index.
my $result = jaccard $x
# or in a pipeline:
@list |> map jaccard |> p
# jaccard_index
jaccard_index — extended stdlib batch 3 builtin.
my $result = jaccard_index $x
# or in a pipeline:
@list |> map jaccard_index |> p
# jaccard_similarity
jaccard_similarity — math functions builtin.
my $result = jaccard_similarity $x
# or in a pipeline:
@list |> map jaccard_similarity |> p
# jaro_similarity
jaro_similarity — extended stdlib batch 3 builtin.
my $result = jaro_similarity $x
# or in a pipeline:
@list |> map jaro_similarity |> p
# jarosim
jarosim — extended stdlib batch 3 builtin. Alias for jaro_similarity.
my $result = jarosim $x
# or in a pipeline:
@list |> map jarosim |> p
# jd
jd — data / network builtin. Alias for json_decode.
my $result = jd $x
# or in a pipeline:
@list |> map jd |> p
# je
je — data / network builtin. Alias for json_encode.
my $result = je $x
# or in a pipeline:
@list |> map je |> p
# join_colons
join_colons — conversion / utility (batch 4) builtin.
my $result = join_colons $x
# or in a pipeline:
@list |> map join_colons |> p
# join_commas
join_commas — conversion / utility (batch 4) builtin.
my $result = join_commas $x
# or in a pipeline:
@list |> map join_commas |> p
# join_dashes
join_dashes — conversion / utility (batch 4) builtin.
my $result = join_dashes $x
# or in a pipeline:
@list |> map join_dashes |> p
# join_dots
join_dots — conversion / utility (batch 4) builtin.
my $result = join_dots $x
# or in a pipeline:
@list |> map join_dots |> p
# join_lines
join_lines — conversion / utility (batch 4) builtin.
my $result = join_lines $x
# or in a pipeline:
@list |> map join_lines |> p
# join_pipes
join_pipes — conversion / utility (batch 4) builtin.
my $result = join_pipes $x
# or in a pipeline:
@list |> map join_pipes |> p
# join_slashes
join_slashes — conversion / utility (batch 4) builtin.
my $result = join_slashes $x
# or in a pipeline:
@list |> map join_slashes |> p
# join_spaces
join_spaces — conversion / utility (batch 4) builtin.
my $result = join_spaces $x
# or in a pipeline:
@list |> map join_spaces |> p
# join_tabs
join_tabs — conversion / utility (batch 4) builtin.
my $result = join_tabs $x
# or in a pipeline:
@list |> map join_tabs |> p
# joules_to_cal
joules_to_cal — file stat / path builtin.
my $result = joules_to_cal $input
# json_escape
json_escape — json helpers builtin. Alias for escape_json.
my $result = json_escape $x
# or in a pipeline:
@list |> map json_escape |> p
# json_minify
json_minify — json helpers builtin.
my $result = json_minify $x
# or in a pipeline:
@list |> map json_minify |> p
# json_pretty
json_pretty — json helpers builtin.
my $result = json_pretty $x
# or in a pipeline:
@list |> map json_pretty |> p
# juxt2
juxt2 — functional combinators builtin.
my $result = juxt2 $x
# or in a pipeline:
@list |> map juxt2 |> p
# juxt3
juxt3 — functional combinators builtin.
my $result = juxt3 $x
# or in a pipeline:
@list |> map juxt3 |> p
# k_to_c
k_to_c — unit conversions builtin.
my $result = k_to_c $input
# k_to_f
k_to_f — unit conversions builtin.
my $result = k_to_f $input
# kaiser
window_kaiser($n, $beta) (alias kaiser) — generates a Kaiser window with parameter beta controlling the tradeoff between main lobe width and sidelobe level. Beta=0 is rectangular, beta~5 is similar to Hamming.
my $w = kaiser(1024, 5.0)
# kb_to_b
kb_to_b — unit conversions builtin. Alias for kb_to_bytes.
my $result = kb_to_b $input
# kb_to_bytes
kb_to_bytes — unit conversions builtin.
my $result = kb_to_bytes $input
# kb_to_mb
kb_to_mb — unit conversions builtin.
my $result = kb_to_mb $input
# kcoulomb
kcoulomb — physics constants builtin. Alias for coulomb_constant.
my $result = kcoulomb $x
# or in a pipeline:
@list |> map kcoulomb |> p
# keep
keep — algebraic match builtin.
my $result = keep $x
# or in a pipeline:
@list |> map keep |> p
# keep_if
keep_if — functional combinators builtin.
my $result = keep_if $x
# or in a pipeline:
@list |> map keep_if |> p
# kendall
kendall_tau (aliases kendall, ktau) computes Kendall's rank correlation coefficient (tau-b).
p ktau([1,2,3,4], [1,2,4,3]) # 0.67
# keys_sorted
keys_sorted — hash ops (batch 2) builtin.
my $result = keys_sorted $x
# or in a pipeline:
@list |> map keys_sorted |> p
# kg_to_lbs
kg_to_lbs — unit conversions builtin.
my $result = kg_to_lbs $input
# kg_to_stone
kg_to_stone — unit conversions builtin.
my $result = kg_to_stone $input
# khinchin
khinchin — math constants builtin. Alias for khinchin_constant.
my $result = khinchin $x
# or in a pipeline:
@list |> map khinchin |> p
# khinchin_constant
khinchin_constant — math constants builtin.
my $result = khinchin_constant $x
# or in a pipeline:
@list |> map khinchin_constant |> p
# kinetic_energy
kinetic_energy — physics formulas builtin.
my $result = kinetic_energy $x
# or in a pipeline:
@list |> map kinetic_energy |> p
# km_to_miles
km_to_miles — unit conversions builtin.
my $result = km_to_miles $input
# kmeans
kmeans — k-means clustering (Lloyd's algorithm). Takes array of points and k. Returns cluster assignments. Like R's kmeans().
my @clusters = @{kmeans([[0,0],[1,0],[10,10],[11,10]], 2)}
# [0,0,1,1] — two clusters
# kp
kp — algebraic match builtin. Alias for keep.
my $result = kp $x
# or in a pipeline:
@list |> map kp |> p
# ks
ks_test (alias ks) — two-sample Kolmogorov-Smirnov test. Returns D statistic (max CDF difference). Like R's ks.test().
my $D = ks([1,2,3,4,5], [2,3,4,5,6]) # small D = similar
# kth_largest
kth_largest — extended stdlib batch 3 builtin.
my $result = kth_largest $x
# or in a pipeline:
@list |> map kth_largest |> p
# kth_smallest
kth_smallest — extended stdlib batch 3 builtin.
my $result = kth_smallest $x
# or in a pipeline:
@list |> map kth_smallest |> p
# kthl
kthl — extended stdlib batch 3 builtin. Alias for kth_largest.
my $result = kthl $x
# or in a pipeline:
@list |> map kthl |> p
# kths
kths — extended stdlib batch 3 builtin. Alias for kth_smallest.
my $result = kths $x
# or in a pipeline:
@list |> map kths |> p
# kurt
kurt — math / numeric (uncategorized batch) builtin. Alias for kurtosis.
my $result = kurt $x
# or in a pipeline:
@list |> map kurt |> p
# kurtosis
kurtosis — math / numeric (uncategorized batch) builtin.
my $result = kurtosis $x
# or in a pipeline:
@list |> map kurtosis |> p
# lagrange
lagrange_interp (aliases lagrange, linterp) performs Lagrange polynomial interpolation. Takes xs, ys, and a query point x.
p lagrange([0,1,2], [0,1,4], 1.5) # 2.25
# lambert_w
lambert_w (aliases lambertw, productlog) computes the Lambert W function (principal branch): the inverse of f(w) = w·e^w.
p lambertw(1) # 0.5671 (Omega constant)
p lambertw(exp(1)) # 1.0
# laplace_pdf
laplace_pdf (alias laplacepdf) evaluates the Laplace distribution PDF at x with location mu and scale b.
p laplacepdf(0, 0, 1) # 0.5 (peak)
# last_arg
last_arg — functional primitives builtin.
my $result = last_arg $x
# or in a pipeline:
@list |> map last_arg |> p
# last_clj
last_clj — algebraic match builtin.
my $result = last_clj $x
# or in a pipeline:
@list |> map last_clj |> p
# last_elem
last_elem — list helpers (batch 4) builtin.
my $result = last_elem $x
# or in a pipeline:
@list |> map last_elem |> p
# last_eq
last_eq — collection (batch 2) builtin.
my $result = last_eq $x
# or in a pipeline:
@list |> map last_eq |> p
# last_index_of
last_index_of — collection (batch 2) builtin.
my $result = last_index_of $x
# or in a pipeline:
@list |> map last_index_of |> p
# last_word
last_word — string (batch 2) builtin.
my $result = last_word $x
# or in a pipeline:
@list |> map last_word |> p
# lastc
lastc — algebraic match builtin. Alias for last_clj.
my $result = lastc $x
# or in a pipeline:
@list |> map lastc |> p
# lbf_to_newtons
lbf_to_newtons — file stat / path builtin.
my $result = lbf_to_newtons $input
# lbound
lbound — extended stdlib builtin. Alias for lower_bound.
my $result = lbound $x
# or in a pipeline:
@list |> map lbound |> p
# lbs_to_kg
lbs_to_kg — unit conversions builtin.
my $result = lbs_to_kg $input
# lc_lines
lc_lines — trivial string ops builtin. Alias for line_count.
my $result = lc_lines $x
# or in a pipeline:
@list |> map lc_lines |> p
# lcm
lcm — trivial numeric / predicate builtins builtin.
my $result = lcm $x
# or in a pipeline:
@list |> map lcm |> p
# lcontract
length_contraction($proper_length, $velocity) (alias lcontract) — contracted length L = L₀ × √(1-v²/c²).
p lcontract(1, 0.99 * 3e8) # ~0.14 m (1m at 99% c)
# lcount
lcount — extended stdlib batch 3 builtin. Alias for count_lines.
my $result = lcount $x
# or in a pipeline:
@list |> map lcount |> p
# lcp
lcp — string (batch 2) builtin. Alias for longest_common_prefix.
my $result = lcp $x
# or in a pipeline:
@list |> map lcp |> p
# lcseq
lcseq — extended stdlib batch 3 builtin. Alias for longest_common_subsequence.
my $result = lcseq $x
# or in a pipeline:
@list |> map lcseq |> p
# lcsub
lcsub — extended stdlib batch 3 builtin. Alias for longest_common_substring.
my $result = lcsub $x
# or in a pipeline:
@list |> map lcsub |> p
# ldec
ldec — extended stdlib batch 3 builtin. Alias for longest_decreasing.
my $result = ldec $x
# or in a pipeline:
@list |> map ldec |> p
# leading_zeros
leading_zeros — base conversion builtin.
my $result = leading_zeros $x
# or in a pipeline:
@list |> map leading_zeros |> p
# leaky_relu
leaky_relu (alias lrelu) applies Leaky ReLU: x if x≥0, alpha*x otherwise (default alpha=0.01).
p lrelu(5) # 5
p lrelu(-5) # -0.05
p lrelu(-5, 0.1) # -0.5
# least_common
least_common — list helpers (batch 4) builtin.
my $result = least_common $x
# or in a pipeline:
@list |> map least_common |> p
# leet
leet — string processing (uncategorized batch) builtin. Alias for leetspeak.
my $result = leet $x
# or in a pipeline:
@list |> map leet |> p
# leetspeak
leetspeak — string processing (uncategorized batch) builtin.
my $result = leetspeak $x
# or in a pipeline:
@list |> map leetspeak |> p
# left_str
left_str — string (batch 2) builtin.
my $result = left_str $x
# or in a pipeline:
@list |> map left_str |> p
# length_each
length_each — trivial numeric helpers (batch 4) builtin.
my $result = length_each $x
# or in a pipeline:
@list |> map length_each |> p
# lens_power
lens_power — physics formulas builtin.
my $result = lens_power $x
# or in a pipeline:
@list |> map lens_power |> p
# lerp
lerp($a, $b, $t) — linear interpolation between a and b. When t=0 returns a, t=1 returns b, t=0.5 returns midpoint.
p lerp(0, 100, 0.5) # 50
p lerp(10, 20, 0.25) # 12.5
# Animation: smoothly transition between values
for my $t (0:10) { p lerp($start, $end, $t/10) }
# less
LIST |> pager / pager LIST — pipe each element (one per line) into the user's $PAGER (default less -R; falls back to more, then plain stdout). Bypasses the pager when stdout isn't a TTY so pipelines like stryke '... |> pager' | grep still compose.
Blocks until the user quits the pager; returns undef.
Aliases: pager, pg, less.
# browse every callable spelling interactively
keys %all |> sort |> pager
# filter the reference for parallel ops
keys %b |> grep { $b{_} eq "parallel" } |> pager
# whole file, one screen at a time
slurp("README.md") |> pager
# letters_lc
letters_lc extracts only lowercase letters from a string.
p join "", letters_lc("Hello World 123") # elloorld
# letters_uc
letters_uc extracts only uppercase letters from a string.
p join "", letters_uc("Hello World 123") # HW
# lev
lev — extended stdlib builtin. Alias for levenshtein.
my $result = lev $x
# or in a pipeline:
@list |> map lev |> p
# levenshtein
levenshtein — extended stdlib builtin.
my $result = levenshtein $x
# or in a pipeline:
@list |> map levenshtein |> p
# lfrm
lfrm — go/general functional utilities builtin. Alias for lines_from.
my $result = lfrm $x
# or in a pipeline:
@list |> map lfrm |> p
# light_year
light_year (alias ly) — ly ≈ 9.461×10¹⁵ m. Distance light travels in one year.
p ly # 9.4607304725808e15 m
p ly / au # ~63241 AU
# linc
linc — extended stdlib batch 3 builtin. Alias for longest_increasing.
my $result = linc $x
# or in a pipeline:
@list |> map linc |> p
# line_count
line_count — trivial string ops builtin.
my $result = line_count $x
# or in a pipeline:
@list |> map line_count |> p
# line_intersection
line_intersection($x1, $y1, $x2, $y2, $x3, $y3, $x4, $y4) — finds the intersection point of two lines defined by points (x1,y1)-(x2,y2) and (x3,y3)-(x4,y4). Returns [$x, $y] or undef if parallel.
my $pt = line_intersection(0, 0, 1, 1, 0, 1, 1, 0)
p @$pt # (0.5, 0.5)
# linear_regression
linear_regression — math / numeric (uncategorized batch) builtin.
my $result = linear_regression $x
# or in a pipeline:
@list |> map linear_regression |> p
# linear_search
linear_search — collection (batch 2) builtin.
my $result = linear_search $x
# or in a pipeline:
@list |> map linear_search |> p
# lineintr
lineintr — geometry (extended) builtin. Alias for line_intersection.
my $result = lineintr $x
# or in a pipeline:
@list |> map lineintr |> p
# lines_from
lines_from — go/general functional utilities builtin.
my $result = lines_from $x
# or in a pipeline:
@list |> map lines_from |> p
# linreg
linreg — math / numeric (uncategorized batch) builtin. Alias for linear_regression.
my $result = linreg $x
# or in a pipeline:
@list |> map linreg |> p
# linspace
linspace — matrix / linear algebra builtin.
my $result = linspace $x
# or in a pipeline:
@list |> map linspace |> p
# list_compact
list_compact — list helpers (batch 4) builtin.
my $result = list_compact $x
# or in a pipeline:
@list |> map list_compact |> p
# list_count
list_count (alias list_size) returns the total number of elements after flattening a nested list structure. Unlike count which returns the top-level element count, list_count recursively descends into array references and counts only leaf values. This is useful when you have a list of lists and need to know the total number of individual items rather than the number of sublists.
my @nested = ([1, 2], [3, 4, 5], [6])
p list_count @nested # 6
my @deep = ([1, [2, 3]], [4])
p list_size @deep # 4
p list_count 1, 2, 3 # 3 (flat list works too)
# list_difference
list_difference — collection (batch 2) builtin. Alias for array_difference.
my $result = list_difference $x
# or in a pipeline:
@list |> map list_difference |> p
# list_eq
list_eq — list helpers (batch 4) builtin.
my $result = list_eq $x
# or in a pipeline:
@list |> map list_eq |> p
# list_flatten_deep
list_flatten_deep — list helpers (batch 4) builtin.
my $result = list_flatten_deep $x
# or in a pipeline:
@list |> map list_flatten_deep |> p
# list_intersection
list_intersection — collection (batch 2) builtin. Alias for array_intersection.
my $result = list_intersection $x
# or in a pipeline:
@list |> map list_intersection |> p
# list_reverse
list_reverse — file stat / path builtin. Alias for reverse_list.
my $result = list_reverse $x
# or in a pipeline:
@list |> map list_reverse |> p
# list_union
list_union — collection (batch 2) builtin. Alias for array_union.
my $result = list_union $x
# or in a pipeline:
@list |> map list_union |> p
# liters_to_gallons
liters_to_gallons — file stat / path builtin.
my $result = liters_to_gallons $input
# liters_to_ml
liters_to_ml — file stat / path builtin.
my $result = liters_to_ml $input
# ljt
ljt — extended stdlib builtin. Alias for ljust_text.
my $result = ljt $x
# or in a pipeline:
@list |> map ljt |> p
# ljust
ljust — string helpers (batch 4) builtin.
my $result = ljust $x
# or in a pipeline:
@list |> map ljust |> p
# ljust_text
ljust_text — extended stdlib builtin.
my $result = ljust_text $x
# or in a pipeline:
@list |> map ljust_text |> p
# lkpa
lkpa — haskell list functions builtin. Alias for lookup_assoc.
my $result = lkpa $x
# or in a pipeline:
@list |> map lkpa |> p
# lm
lm_fit (alias lm) — simple linear regression. Returns hash with intercept, slope, r_squared, residuals, fitted. Like R's lm().
my %m = %{lm([1,2,3,4,5], [2,4,5,4,5])}
p $m{slope} # slope
p $m{r_squared} # R²
# ln10
ln10 — math / physics constants builtin.
my $result = ln10 $x
# or in a pipeline:
@list |> map ln10 |> p
# ln2
ln2 — math / physics constants builtin.
my $result = ln2 $x
# or in a pipeline:
@list |> map ln2 |> p
# lnormpdf
lognormal_pdf (alias lnormpdf) evaluates the log-normal distribution PDF at x with parameters mu and sigma.
p lnormpdf(1.0, 0, 1) # LogN(0,1) at x=1
# lns
lns — math / numeric (uncategorized batch) builtin. Alias for look_and_say.
my $result = lns $x
# or in a pipeline:
@list |> map lns |> p
# load_avg
load_avg — system load averages as a 3-element arrayref [1min, 5min, 15min]. Uses getloadavg() on unix. Returns undef on unsupported platforms.
my $la = load_avg
p "1m=$la->[0] 5m=$la->[1] 15m=$la->[2]"
load_avg |> spark |> p # sparkline of load
# loess
lowess (alias loess) — locally-weighted scatterplot smoothing (LOWESS/LOESS). Returns smoothed Y values with tricube weighting.
my @smooth = @{lowess([1,2,3,4,5], [2,1,4,3,5])}
# log10
log10 — trivial numeric / predicate builtins builtin.
my $result = log10 $x
# or in a pipeline:
@list |> map log10 |> p
# log2
log2 — trivial numeric / predicate builtins builtin.
my $result = log2 $x
# or in a pipeline:
@list |> map log2 |> p
# log_base
log_base — math functions builtin.
my $result = log_base $x
# or in a pipeline:
@list |> map log_base |> p
# log_with_base
log_with_base — extended stdlib builtin.
my $result = log_with_base $x
# or in a pipeline:
@list |> map log_with_base |> p
# logb
logb — extended stdlib builtin. Alias for log_with_base.
my $result = logb $x
# or in a pipeline:
@list |> map logb |> p
# longest
longest — collection (batch 2) builtin.
my $result = longest $x
# or in a pipeline:
@list |> map longest |> p
# longest_common_prefix
longest_common_prefix — string (batch 2) builtin.
my $result = longest_common_prefix $x
# or in a pipeline:
@list |> map longest_common_prefix |> p
# longest_common_subsequence
longest_common_subsequence — extended stdlib batch 3 builtin.
my $result = longest_common_subsequence $x
# or in a pipeline:
@list |> map longest_common_subsequence |> p
# longest_common_substring
longest_common_substring — extended stdlib batch 3 builtin.
my $result = longest_common_substring $x
# or in a pipeline:
@list |> map longest_common_substring |> p
# longest_decreasing
longest_decreasing — extended stdlib batch 3 builtin.
my $result = longest_decreasing $x
# or in a pipeline:
@list |> map longest_decreasing |> p
# longest_increasing
longest_increasing — extended stdlib batch 3 builtin.
my $result = longest_increasing $x
# or in a pipeline:
@list |> map longest_increasing |> p
# longest_run
longest_run — extended stdlib batch 3 builtin.
my $result = longest_run $x
# or in a pipeline:
@list |> map longest_run |> p
# look_and_say
look_and_say — math / numeric (uncategorized batch) builtin.
my $result = look_and_say $x
# or in a pipeline:
@list |> map look_and_say |> p
# lookup_assoc
lookup_assoc — haskell list functions builtin.
my $result = lookup_assoc $x
# or in a pipeline:
@list |> map lookup_assoc |> p
# lorentz
lorentz_factor($velocity) (alias lorentz) — relativistic gamma factor γ = 1/√(1-v²/c²). Returns infinity at v ≥ c.
p lorentz(0) # 1 (at rest)
p lorentz(0.9 * 3e8) # ~2.29 (at 90% speed of light)
# lorenz
lorenz_curve(@data) (alias lorenz) — computes the Lorenz curve as an arrayref of [cumulative_share_of_population, cumulative_share_of_wealth] pairs. Used to visualize inequality. The diagonal represents perfect equality.
my $curve = lorenz(10, 20, 30, 40)
for my $pt (@$curve) {
p "$pt->[0], $pt->[1]"
}
# lower_bound
lower_bound — extended stdlib builtin.
my $result = lower_bound $x
# or in a pipeline:
@list |> map lower_bound |> p
# lowercase
lowercase — string (batch 2) builtin.
my $result = lowercase $x
# or in a pipeline:
@list |> map lowercase |> p
# lowpass_filter
lowpass_filter(\@signal, $cutoff) (alias lpf) — applies a simple low-pass filter to remove high-frequency components. Cutoff is normalized (0-1). Uses exponential moving average.
my @noisy = map { sin(_/10) + rand(0.2) } 1:100
my $smooth = lpf(\@noisy, 0.1)
# lpad
lpad — trivial string ops builtin. Alias for pad_left.
my $result = lpad $x
# or in a pipeline:
@list |> map lpad |> p
# lplanck
planck_length (alias lplanck) — lP ≈ 1.616×10⁻³⁵ m. Smallest meaningful length in quantum mechanics.
p lplanck # 1.616255e-35 m
# lru_new
lru_new — data structure helpers builtin.
my $result = lru_new $x
# or in a pipeline:
@list |> map lru_new |> p
# lrun
lrun — extended stdlib batch 3 builtin. Alias for longest_run.
my $result = lrun $x
# or in a pipeline:
@list |> map lrun |> p
# lsearch
lsearch — collection (batch 2) builtin. Alias for linear_search.
my $result = lsearch $x
# or in a pipeline:
@list |> map lsearch |> p
# lstat
lstat — filesystem builtin.
my $result = lstat $x
# or in a pipeline:
@list |> map lstat |> p
# lucas
lucas — math / numeric (uncategorized batch) builtin.
my $result = lucas $x
# or in a pipeline:
@list |> map lucas |> p
# luhn
luhn — math / numeric (uncategorized batch) builtin. Alias for luhn_check.
my $result = luhn $x
# or in a pipeline:
@list |> map luhn |> p
# luhn_check
luhn_check — math / numeric (uncategorized batch) builtin.
my $result = luhn_check $x
# or in a pipeline:
@list |> map luhn_check |> p
# lz
lz — base conversion builtin. Alias for leading_zeros.
my $result = lz $x
# or in a pipeline:
@list |> map lz |> p
# m5
m5 — crypto / encoding builtin. Alias for md5.
my $result = m5 $x
# or in a pipeline:
@list |> map m5 |> p
# m_to_feet
m_to_feet — unit conversions builtin.
my $result = m_to_feet $input
# m_to_miles
m_to_miles — unit conversions builtin.
my $result = m_to_miles $input
# m_to_s
m_to_s — unit conversions builtin. Alias for minutes_to_seconds.
my $result = m_to_s $input
# m_to_yards
m_to_yards — unit conversions builtin.
my $result = m_to_yards $input
# mac_duration
bond_duration (alias mac_duration) computes Macaulay duration — the weighted-average time to receive cash flows.
my $dur = bond_duration([5,5,5,105], 0.05) # ≈ 3.72 years
# macdur
macdur — finance (extended) builtin. Alias for duration.
my $result = macdur $x
# or in a pipeline:
@list |> map macdur |> p
# mad
mad — math / numeric (uncategorized batch) builtin. Alias for median_absolute_deviation.
my $result = mad $x
# or in a pipeline:
@list |> map mad |> p
# madd
madd — extended stdlib builtin. Alias for matrix_add.
my $result = madd $x
# or in a pipeline:
@list |> map madd |> p
# mae
mae — math functions builtin.
my $result = mae $x
# or in a pipeline:
@list |> map mae |> p
# mag
mag — extended stdlib builtin. Alias for magnitude.
my $result = mag $x
# or in a pipeline:
@list |> map mag |> p
# magenta
magenta — color / ansi builtin. Alias for red.
my $result = magenta $x
# or in a pipeline:
@list |> map magenta |> p
# magenta_bold
magenta_bold — color / ansi builtin. Alias for red.
my $result = magenta_bold $x
# or in a pipeline:
@list |> map magenta_bold |> p
# maglens
maglens — physics formulas builtin. Alias for magnification_lens.
my $result = maglens $x
# or in a pipeline:
@list |> map maglens |> p
# magnification_lens
magnification_lens — physics formulas builtin.
my $result = magnification_lens $x
# or in a pipeline:
@list |> map magnification_lens |> p
# magnitude
magnitude — extended stdlib builtin.
my $result = magnitude $x
# or in a pipeline:
@list |> map magnitude |> p
# mahal
mahalanobis — Mahalanobis distance. Args: data, center, inverse_covariance. Like R's mahalanobis().
my @d = @{mahal([[1,2],[3,4]], [2,3], [[1,0],[0,1]])}
# majority
majority — extended stdlib batch 3 builtin. Alias for majority_element.
my $result = majority $x
# or in a pipeline:
@list |> map majority |> p
# majority_element
majority_element — extended stdlib batch 3 builtin.
my $result = majority_element $x
# or in a pipeline:
@list |> map majority_element |> p
# mall
mall — extended stdlib builtin. Alias for match_all.
my $result = mall $x
# or in a pipeline:
@list |> map mall |> p
# mandel
mandel — algorithms / puzzles builtin. Alias for mandelbrot_char.
my $result = mandel $x
# or in a pipeline:
@list |> map mandel |> p
# mandelbrot_char
mandelbrot_char — algorithms / puzzles builtin.
my $result = mandelbrot_char $x
# or in a pipeline:
@list |> map mandelbrot_char |> p
# manhattan_distance
manhattan_distance — extended stdlib builtin.
my $result = manhattan_distance $x
# or in a pipeline:
@list |> map manhattan_distance |> p
# mann_whitney
wilcox_test (aliases wilcox, mann_whitney) — Wilcoxon rank-sum test (Mann-Whitney U). Returns U statistic. Like R's wilcox.test().
my $U = wilcox([1,2,3], [4,5,6]) # 0 (no overlap)
# map_chars
map_chars — string helpers (batch 4) builtin.
my $result = map_chars $x
# or in a pipeline:
@list |> map map_chars |> p
# map_indexed
map_indexed — go/general functional utilities builtin.
my $result = map_indexed $x
# or in a pipeline:
@list |> map map_indexed |> p
# map_keys_fn
map_keys_fn — hash ops (batch 2) builtin.
my $result = map_keys_fn $x
# or in a pipeline:
@list |> map map_keys_fn |> p
# map_range
map_range($value, $in_min, $in_max, $out_min, $out_max) (alias remap) — remap a value from one range to another.
p remap(50, 0, 100, 0, 1) # 0.5
p remap(75, 0, 100, 0, 255) # 191.25 (percent to byte)
# map_values_fn
map_values_fn — hash ops (batch 2) builtin.
my $result = map_values_fn $x
# or in a pipeline:
@list |> map map_values_fn |> p
# map_while
map_while — rust iterator methods builtin.
my $result = map_while $x
# or in a pipeline:
@list |> map map_while |> p
# mapcat
mapcat — algebraic match builtin.
my $result = mapcat $x
# or in a pipeline:
@list |> map mapcat |> p
# mapi
mapi — go/general functional utilities builtin. Alias for map_indexed.
my $result = mapi $x
# or in a pipeline:
@list |> map mapi |> p
# mapw
mapw — rust iterator methods builtin. Alias for map_while.
my $result = mapw $x
# or in a pipeline:
@list |> map mapw |> p
# margin
margin — finance builtin.
my $result = margin $x
# or in a pipeline:
@list |> map margin |> p
# margin_price
margin_price — physics formulas builtin.
my $result = margin_price $x
# or in a pipeline:
@list |> map margin_price |> p
# markup
markup — finance builtin.
my $result = markup $x
# or in a pipeline:
@list |> map markup |> p
# markup_price
markup_price — physics formulas builtin.
my $result = markup_price $x
# or in a pipeline:
@list |> map markup_price |> p
# mask
mask — string processing (uncategorized batch) builtin. Alias for mask_string.
my $result = mask $x
# or in a pipeline:
@list |> map mask |> p
# mask_string
mask_string — string processing (uncategorized batch) builtin.
my $result = mask_string $x
# or in a pipeline:
@list |> map mask_string |> p
# mat_mul
mat_mul — matrix / linear algebra builtin. Alias for matrix_multiply.
my $result = mat_mul $x
# or in a pipeline:
@list |> map mat_mul |> p
# mat_scale
mat_scale — extended stdlib builtin. Alias for matrix_scale.
my $result = mat_scale $x
# or in a pipeline:
@list |> map mat_scale |> p
# match_all
match_all — extended stdlib builtin.
my $result = match_all $x
# or in a pipeline:
@list |> map match_all |> p
# matches_regex
matches_regex — file stat / path builtin.
my $result = matches_regex $x
# or in a pipeline:
@list |> map matches_regex |> p
# matmul
matmul — extended stdlib builtin. Alias for matrix_mul.
my $result = matmul $x
# or in a pipeline:
@list |> map matmul |> p
# matrix_add
matrix_add — extended stdlib builtin.
my $result = matrix_add $x
# or in a pipeline:
@list |> map matrix_add |> p
# matrix_col
matrix_col — extended stdlib builtin.
my $result = matrix_col $x
# or in a pipeline:
@list |> map matrix_col |> p
# matrix_det
matrix_det — extended stdlib builtin.
my $result = matrix_det $x
# or in a pipeline:
@list |> map matrix_det |> p
# matrix_diag
matrix_diag — extended stdlib builtin.
my $result = matrix_diag $x
# or in a pipeline:
@list |> map matrix_diag |> p
# matrix_flatten
matrix_flatten — matrix operations (uncategorized batch) builtin.
my $result = matrix_flatten $x
# or in a pipeline:
@list |> map matrix_flatten |> p
# matrix_from_rows
matrix_from_rows — matrix operations (uncategorized batch) builtin.
my $result = matrix_from_rows $x
# or in a pipeline:
@list |> map matrix_from_rows |> p
# matrix_hadamard
matrix_hadamard — matrix operations (uncategorized batch) builtin.
my $result = matrix_hadamard $x
# or in a pipeline:
@list |> map matrix_hadamard |> p
# matrix_identity
matrix_identity — extended stdlib builtin.
my $result = matrix_identity $x
# or in a pipeline:
@list |> map matrix_identity |> p
# matrix_inverse
matrix_inverse — matrix operations (uncategorized batch) builtin.
my $result = matrix_inverse $x
# or in a pipeline:
@list |> map matrix_inverse |> p
# matrix_lu
matrix_lu (alias mlu) computes the LU decomposition with partial pivoting. Returns [L, U, P] where PA = LU.
my ($L, $U, $P) = @{mlu([[4,3],[6,3]])}
# matrix_map
matrix_map — matrix operations (uncategorized batch) builtin.
my $result = matrix_map $x
# or in a pipeline:
@list |> map matrix_map |> p
# matrix_max
matrix_max — matrix operations (uncategorized batch) builtin.
my $result = matrix_max $x
# or in a pipeline:
@list |> map matrix_max |> p
# matrix_min
matrix_min — matrix operations (uncategorized batch) builtin.
my $result = matrix_min $x
# or in a pipeline:
@list |> map matrix_min |> p
# matrix_mul
matrix_mul — extended stdlib builtin.
my $result = matrix_mul $x
# or in a pipeline:
@list |> map matrix_mul |> p
# matrix_mult
matrix_mult — extended stdlib builtin.
my $result = matrix_mult $x
# or in a pipeline:
@list |> map matrix_mult |> p
# matrix_multiply
matrix_multiply — matrix / linear algebra builtin.
my $result = matrix_multiply $x
# or in a pipeline:
@list |> map matrix_multiply |> p
# matrix_norm
matrix_norm (alias mnorm) computes a matrix norm. Default is Frobenius; pass 1 for max-column-sum, Inf for max-row-sum.
p mnorm([[3,4]]) # 5 (Frobenius)
p mnorm([[1,2],[3,4]], 1) # 6 (1-norm)
# matrix_ones
matrix_ones — extended stdlib builtin.
my $result = matrix_ones $x
# or in a pipeline:
@list |> map matrix_ones |> p
# matrix_pinv
matrix_pinv (aliases mpinv, pinv) computes the Moore-Penrose pseudo-inverse via (A^T A)^{-1} A^T.
my $A_plus = pinv([[1,2],[3,4],[5,6]])
# matrix_power
matrix_power — matrix operations (uncategorized batch) builtin.
my $result = matrix_power $x
# or in a pipeline:
@list |> map matrix_power |> p
# matrix_qr
matrix_qr (alias mqr) computes the QR decomposition via Gram-Schmidt orthogonalization. Returns [Q, R] where A = QR.
my ($Q, $R) = @{mqr([[1,1],[1,-1]])}
# matrix_row
matrix_row — extended stdlib builtin.
my $result = matrix_row $x
# or in a pipeline:
@list |> map matrix_row |> p
# matrix_scalar
matrix_scalar — extended stdlib builtin.
my $result = matrix_scalar $x
# or in a pipeline:
@list |> map matrix_scalar |> p
# matrix_scale
matrix_scale — extended stdlib builtin.
my $result = matrix_scale $x
# or in a pipeline:
@list |> map matrix_scale |> p
# matrix_shape
matrix_shape — extended stdlib builtin.
my $result = matrix_shape $x
# or in a pipeline:
@list |> map matrix_shape |> p
# matrix_solve
matrix_solve (aliases msolve, solve) solves the linear system Ax=b via Gaussian elimination with partial pivoting. Returns the solution vector x.
my $A = [[2,1],[-1,1]]
my $b = [5,2]
my $x = solve($A, $b) # [1, 3]
# matrix_sub
matrix_sub — extended stdlib builtin.
my $result = matrix_sub $x
# or in a pipeline:
@list |> map matrix_sub |> p
# matrix_sum
matrix_sum — matrix operations (uncategorized batch) builtin.
my $result = matrix_sum $x
# or in a pipeline:
@list |> map matrix_sum |> p
# matrix_trace
matrix_trace — extended stdlib builtin.
my $result = matrix_trace $x
# or in a pipeline:
@list |> map matrix_trace |> p
# matrix_transpose
matrix_transpose — matrix operations (uncategorized batch) builtin.
my $result = matrix_transpose $x
# or in a pipeline:
@list |> map matrix_transpose |> p
# matrix_zeros
matrix_zeros — extended stdlib builtin.
my $result = matrix_zeros $x
# or in a pipeline:
@list |> map matrix_zeros |> p
# max2
max2 — trivial numeric / predicate builtins builtin.
my $result = max2 $x
# or in a pipeline:
@list |> map max2 |> p
# max_abs
max_abs — trig / math (batch 2) builtin.
my $result = max_abs $x
# or in a pipeline:
@list |> map max_abs |> p
# max_by
max_by — pipeline / string helpers builtin. Alias for drop.
my $result = max_by $x
# or in a pipeline:
@list |> map max_by |> p
# max_drawdown
max_drawdown(@equity_curve) (alias mdd) — computes the maximum peak-to-trough decline in a series of values. Returns as a decimal (0.2 = 20% drawdown). Key risk metric.
my @equity = (100, 120, 90, 110, 85, 130)
p mdd(@equity) # ~0.29 (29% max drawdown)
# max_float
max_float — conversion / utility (batch 4) builtin.
my $result = max_float $x
# or in a pipeline:
@list |> map max_float |> p
# max_list
max_list — list helpers (batch 4) builtin.
my $result = max_list $x
# or in a pipeline:
@list |> map max_list |> p
# max_of
max_of — more list helpers builtin.
my $result = max_of $x
# or in a pipeline:
@list |> map max_of |> p
# max_sum_subarray
max_sum_subarray — extended stdlib batch 3 builtin.
my $result = max_sum_subarray $x
# or in a pipeline:
@list |> map max_sum_subarray |> p
# maxby
maxby — additional missing stdlib functions builtin. Alias for maximum_by.
my $result = maxby $x
# or in a pipeline:
@list |> map maxby |> p
# maxdd
maxdd — finance (extended) builtin. Alias for max_drawdown.
my $result = maxdd $x
# or in a pipeline:
@list |> map maxdd |> p
# maximum_by
maximum_by — additional missing stdlib functions builtin.
my $result = maximum_by $x
# or in a pipeline:
@list |> map maximum_by |> p
# maxsub
maxsub — extended stdlib batch 3 builtin. Alias for max_sum_subarray.
my $result = maxsub $x
# or in a pipeline:
@list |> map maxsub |> p
# mb_to_bytes
mb_to_bytes — unit conversions builtin.
my $result = mb_to_bytes $input
# mb_to_gb
mb_to_gb — unit conversions builtin.
my $result = mb_to_gb $input
# mcat
mcat — algebraic match builtin. Alias for mapcat.
my $result = mcat $x
# or in a pipeline:
@list |> map mcat |> p
# mcol
mcol — extended stdlib builtin. Alias for matrix_col.
my $result = mcol $x
# or in a pipeline:
@list |> map mcol |> p
# md5
md5 — crypto / encoding builtin.
my $result = md5 $x
# or in a pipeline:
@list |> map md5 |> p
# mdet
mdet — extended stdlib builtin. Alias for matrix_det.
my $result = mdet $x
# or in a pipeline:
@list |> map mdet |> p
# mdiag
mdiag — extended stdlib builtin. Alias for matrix_diag.
my $result = mdiag $x
# or in a pipeline:
@list |> map mdiag |> p
# mdist
mdist — extended stdlib builtin. Alias for manhattan_distance.
my $result = mdist $x
# or in a pipeline:
@list |> map mdist |> p
# mean_absolute_error
mean_absolute_error — math / numeric (uncategorized batch) builtin.
my $result = mean_absolute_error $x
# or in a pipeline:
@list |> map mean_absolute_error |> p
# mean_list
mean_list — list helpers (batch 4) builtin.
my $result = mean_list $x
# or in a pipeline:
@list |> map mean_list |> p
# mean_squared_error
mean_squared_error — math / numeric (uncategorized batch) builtin.
my $result = mean_squared_error $x
# or in a pipeline:
@list |> map mean_squared_error |> p
# measure
measure — conversion / utility (batch 4) builtin.
my $result = measure $x
# or in a pipeline:
@list |> map measure |> p
# medfilt
median_filter(\@signal, $window_size) (alias medfilt) — applies a median filter for noise removal. Each output is the median of the surrounding window. Excellent for removing impulse noise while preserving edges.
my @spiky = (1, 2, 100, 3, 4) # 100 is spike
my $clean = medfilt(\@spiky, 3)
p @$clean # spike removed
# median_absolute_deviation
median_absolute_deviation — math / numeric (uncategorized batch) builtin.
my $result = median_absolute_deviation $x
# or in a pipeline:
@list |> map median_absolute_deviation |> p
# mem_free
mem_free — free/available physical RAM in bytes. On Linux reads MemAvailable from /proc/meminfo (falls back to MemFree). On macOS uses vm.page_free_count via sysctl. Returns undef on unsupported platforms.
p mem_free # 3821666304
p format_bytes(mem_free) # 3.6 GiB
my $pct = int(mem_free / mem_total * 100)
p "$pct% free"
# mem_total
mem_total — total physical RAM in bytes. Uses /proc/meminfo on Linux, sysctlbyname("hw.memsize") on macOS. Returns undef on unsupported platforms.
p mem_total # 68719476736
p format_bytes(mem_total) # 64.0 GiB
# mem_used
mem_used — used physical RAM in bytes (total - free). Returns undef if either mem_total or mem_free is unavailable.
p format_bytes(mem_used) # 60.4 GiB
gauge(mem_used / mem_total) |> p # memory usage gauge
# merge_hash
merge_hash — hash helpers builtin.
my $result = merge_hash $x
# or in a pipeline:
@list |> map merge_hash |> p
# merge_sorted
merge_sorted — matrix operations (uncategorized batch) builtin.
my $result = merge_sorted $x
# or in a pipeline:
@list |> map merge_sorted |> p
# metaphone
metaphone — encoding / phonetics builtin.
my $result = metaphone $x
# or in a pipeline:
@list |> map metaphone |> p
# metph
metph — encoding / phonetics builtin. Alias for metaphone.
my $result = metph $x
# or in a pipeline:
@list |> map metph |> p
# mflat
mflat — matrix operations (uncategorized batch) builtin. Alias for matrix_flatten.
my $result = mflat $x
# or in a pipeline:
@list |> map mflat |> p
# mfromr
mfromr — matrix operations (uncategorized batch) builtin. Alias for matrix_from_rows.
my $result = mfromr $x
# or in a pipeline:
@list |> map mfromr |> p
# mhad
mhad — matrix operations (uncategorized batch) builtin. Alias for matrix_hadamard.
my $result = mhad $x
# or in a pipeline:
@list |> map mhad |> p
# mid_str
mid_str — string (batch 2) builtin.
my $result = mid_str $x
# or in a pipeline:
@list |> map mid_str |> p
# mident
mident — extended stdlib builtin. Alias for matrix_identity.
my $result = mident $x
# or in a pipeline:
@list |> map mident |> p
# midpnt
midpnt — geometry / physics builtin. Alias for midpoint.
my $result = midpnt $x
# or in a pipeline:
@list |> map midpnt |> p
# midpoint
midpoint — geometry / physics builtin.
my $result = midpoint $x
# or in a pipeline:
@list |> map midpoint |> p
# midpoint_of
midpoint_of — extended stdlib builtin.
my $result = midpoint_of $x
# or in a pipeline:
@list |> map midpoint_of |> p
# midpt
midpt — extended stdlib builtin. Alias for midpoint_of.
my $result = midpt $x
# or in a pipeline:
@list |> map midpt |> p
# miles_to_km
miles_to_km — unit conversions builtin.
my $result = miles_to_km $input
# miles_to_m
miles_to_m — unit conversions builtin.
my $result = miles_to_m $input
# min2
min2 — trivial numeric / predicate builtins builtin.
my $result = min2 $x
# or in a pipeline:
@list |> map min2 |> p
# min_abs
min_abs — trig / math (batch 2) builtin.
my $result = min_abs $x
# or in a pipeline:
@list |> map min_abs |> p
# min_by
min_by — pipeline / string helpers builtin. Alias for drop.
my $result = min_by $x
# or in a pipeline:
@list |> map min_by |> p
# min_float
min_float — conversion / utility (batch 4) builtin.
my $result = min_float $x
# or in a pipeline:
@list |> map min_float |> p
# min_list
min_list — list helpers (batch 4) builtin.
my $result = min_list $x
# or in a pipeline:
@list |> map min_list |> p
# min_max
min_max — file stat / path builtin.
my $result = min_max $x
# or in a pipeline:
@list |> map min_max |> p
# min_of
min_of — more list helpers builtin.
my $result = min_of $x
# or in a pipeline:
@list |> map min_of |> p
# minby
minby — additional missing stdlib functions builtin. Alias for minimum_by.
my $result = minby $x
# or in a pipeline:
@list |> map minby |> p
# minimum_by
minimum_by — additional missing stdlib functions builtin.
my $result = minimum_by $x
# or in a pipeline:
@list |> map minimum_by |> p
# minkdist
minkdist — math / numeric (uncategorized batch) builtin. Alias for minkowski_distance.
my $result = minkdist $x
# or in a pipeline:
@list |> map minkdist |> p
# minkowski_distance
minkowski_distance — math / numeric (uncategorized batch) builtin.
my $result = minkowski_distance $x
# or in a pipeline:
@list |> map minkowski_distance |> p
# minmax
minmax — python/ruby stdlib builtin.
my $result = minmax $x
# or in a pipeline:
@list |> map minmax |> p
# minmax_by
minmax_by — python/ruby stdlib builtin.
my $result = minmax_by $x
# or in a pipeline:
@list |> map minmax_by |> p
# minutes_to_hours
minutes_to_hours — unit conversions builtin.
my $result = minutes_to_hours $input
# minutes_to_seconds
minutes_to_seconds — unit conversions builtin.
my $result = minutes_to_seconds $input
# minv
minv — matrix operations (uncategorized batch) builtin. Alias for matrix_inverse.
my $result = minv $x
# or in a pipeline:
@list |> map minv |> p
# mirror_string
mirror_string — string helpers (batch 4) builtin.
my $result = mirror_string $x
# or in a pipeline:
@list |> map mirror_string |> p
# mish
mish applies the Mish activation: x·tanh(softplus(x)). Often outperforms ReLU/Swish.
p mish(1) # 0.8651
p mish(-1) # -0.3034
# ml_to_cups
ml_to_cups — file stat / path builtin.
my $result = ml_to_cups $input
# ml_to_liters
ml_to_liters — file stat / path builtin.
my $result = ml_to_liters $input
# mm
mm — extended stdlib builtin. Alias for matrix_mul.
my $result = mm $x
# or in a pipeline:
@list |> map mm |> p
# mmap
mmap — matrix operations (uncategorized batch) builtin. Alias for matrix_map.
my $result = mmap $x
# or in a pipeline:
@list |> map mmap |> p
# mmax
mmax — matrix operations (uncategorized batch) builtin. Alias for matrix_max.
my $result = mmax $x
# or in a pipeline:
@list |> map mmax |> p
# mmin
mmin — matrix operations (uncategorized batch) builtin. Alias for matrix_min.
my $result = mmin $x
# or in a pipeline:
@list |> map mmin |> p
# mmult
mmult — extended stdlib builtin. Alias for matrix_mult.
my $result = mmult $x
# or in a pipeline:
@list |> map mmult |> p
# mmx
mmx — python/ruby stdlib builtin. Alias for minmax.
my $result = mmx $x
# or in a pipeline:
@list |> map mmx |> p
# mmxb
mmxb — python/ruby stdlib builtin. Alias for minmax_by.
my $result = mmxb $x
# or in a pipeline:
@list |> map mmxb |> p
# mob
mob — extended stdlib batch 3 builtin. Alias for mobius.
my $result = mob $x
# or in a pipeline:
@list |> map mob |> p
# mobius
mobius — extended stdlib batch 3 builtin.
my $result = mobius $x
# or in a pipeline:
@list |> map mobius |> p
# mod_exp
mod_exp (aliases modexp, powmod) computes modular exponentiation: base^exp mod m, using fast binary exponentiation.
p powmod(2, 10, 1000) # 24 (2^10 mod 1000)
p powmod(3, 13, 50) # 7
# mod_inv
mod_inv (alias modinv) computes the modular multiplicative inverse via extended Euclidean algorithm. Errors if no inverse exists.
p modinv(3, 7) # 5 (3*5 ≡ 1 mod 7)
# mod_op
mod_op — trig / math (batch 2) builtin.
my $result = mod_op $x
# or in a pipeline:
@list |> map mod_op |> p
# moddur
moddur — finance (extended) builtin. Alias for modified_duration.
my $result = moddur $x
# or in a pipeline:
@list |> map moddur |> p
# mode_list
mode_list — list helpers (batch 4) builtin.
my $result = mode_list $x
# or in a pipeline:
@list |> map mode_list |> p
# mode_stat
mode_stat — extended stdlib builtin.
my $result = mode_stat $x
# or in a pipeline:
@list |> map mode_stat |> p
# mode_val
mode_val — trivial numeric / predicate builtins builtin.
my $result = mode_val $x
# or in a pipeline:
@list |> map mode_val |> p
# modified_duration
modified_duration($face, $coupon_rate, $ytm, $periods) (alias mod_dur) — computes modified duration, which directly measures price sensitivity to yield changes. Equal to Macaulay duration / (1 + ytm).
p mod_dur(1000, 0.05, 0.05, 10) # ~7.3
# momentum
momentum($mass, $velocity) — compute momentum p = mv (kg⋅m/s).
p momentum(10, 5) # 50 kg⋅m/s
# mones
mones — extended stdlib builtin. Alias for matrix_ones.
my $result = mones $x
# or in a pipeline:
@list |> map mones |> p
# month_name
month_name — date helpers builtin.
my $result = month_name $x
# or in a pipeline:
@list |> map month_name |> p
# month_short
month_short — date helpers builtin.
my $result = month_short $x
# or in a pipeline:
@list |> map month_short |> p
# morse
morse — encoding / phonetics builtin. Alias for morse_encode.
my $result = morse $x
# or in a pipeline:
@list |> map morse |> p
# morse_decode
morse_decode — encoding / phonetics builtin.
my $result = morse_decode $x
# or in a pipeline:
@list |> map morse_decode |> p
# morse_encode
morse_encode — encoding / phonetics builtin.
my $result = morse_encode $x
# or in a pipeline:
@list |> map morse_encode |> p
# mortgage_payment
mortgage_payment — physics formulas builtin.
my $result = mortgage_payment $x
# or in a pipeline:
@list |> map mortgage_payment |> p
# most_common
most_common — list helpers (batch 4) builtin.
my $result = most_common $x
# or in a pipeline:
@list |> map most_common |> p
# movavg
movavg — math / numeric (uncategorized batch) builtin. Alias for moving_average.
my $result = movavg $x
# or in a pipeline:
@list |> map movavg |> p
# moving_average
moving_average — math / numeric (uncategorized batch) builtin.
my $result = moving_average $x
# or in a pipeline:
@list |> map moving_average |> p
# mplanck
mplanck — physics constants builtin. Alias for planck_mass.
my $result = mplanck $x
# or in a pipeline:
@list |> map mplanck |> p
# mpow
mpow — matrix operations (uncategorized batch) builtin. Alias for matrix_power.
my $result = mpow $x
# or in a pipeline:
@list |> map mpow |> p
# mrow
mrow — extended stdlib builtin. Alias for matrix_row.
my $result = mrow $x
# or in a pipeline:
@list |> map mrow |> p
# ms_to_ns
ms_to_ns — file stat / path builtin.
my $result = ms_to_ns $input
# ms_to_s
ms_to_s — file stat / path builtin.
my $result = ms_to_s $input
# mscal
mscal — extended stdlib builtin. Alias for matrix_scalar.
my $result = mscal $x
# or in a pipeline:
@list |> map mscal |> p
# mse
mse — math functions builtin.
my $result = mse $x
# or in a pipeline:
@list |> map mse |> p
# msgctl
msgctl — sysv ipc builtin.
my $result = msgctl $x
# or in a pipeline:
@list |> map msgctl |> p
# msgget
msgget — sysv ipc builtin.
my $result = msgget $x
# or in a pipeline:
@list |> map msgget |> p
# msgrcv
msgrcv — sysv ipc builtin.
my $result = msgrcv $x
# or in a pipeline:
@list |> map msgrcv |> p
# msgsnd
msgsnd — sysv ipc builtin.
my $result = msgsnd $x
# or in a pipeline:
@list |> map msgsnd |> p
# mshape
mshape — extended stdlib builtin. Alias for matrix_shape.
my $result = mshape $x
# or in a pipeline:
@list |> map mshape |> p
# msorted
msorted — matrix operations (uncategorized batch) builtin. Alias for merge_sorted.
my $result = msorted $x
# or in a pipeline:
@list |> map msorted |> p
# mst
prim_mst (aliases mst, prim) computes the minimum spanning tree weight via Prim's algorithm. Takes an adjacency matrix.
p mst([[0,2,0],[2,0,3],[0,3,0]]) # 5
# mstat
mstat — extended stdlib builtin. Alias for mode_stat.
my $result = mstat $x
# or in a pipeline:
@list |> map mstat |> p
# msub
msub — extended stdlib builtin. Alias for matrix_sub.
my $result = msub $x
# or in a pipeline:
@list |> map msub |> p
# msum
msum — matrix operations (uncategorized batch) builtin. Alias for matrix_sum.
my $result = msum $x
# or in a pipeline:
@list |> map msum |> p
# msun
sun_mass (alias msun) — M☉ ≈ 1.989×10³⁰ kg. Mass of Sun (solar mass).
p msun # 1.98892e30 kg
# mtime
mtime — file stat / path builtin. Alias for file_mtime.
my $result = mtime $x
# or in a pipeline:
@list |> map mtime |> p
# mtrace
mtrace — extended stdlib builtin. Alias for matrix_trace.
my $result = mtrace $x
# or in a pipeline:
@list |> map mtrace |> p
# mtrans
mtrans — matrix operations (uncategorized batch) builtin. Alias for matrix_transpose.
my $result = mtrans $x
# or in a pipeline:
@list |> map mtrans |> p
# mu0
mu0 — physics constants builtin. Alias for vacuum_permeability.
my $result = mu0 $x
# or in a pipeline:
@list |> map mu0 |> p
# mub
mub — physics constants builtin. Alias for bohr_magneton.
my $result = mub $x
# or in a pipeline:
@list |> map mub |> p
# multinom
multinom — math / numeric (uncategorized batch) builtin. Alias for multinomial.
my $result = multinom $x
# or in a pipeline:
@list |> map multinom |> p
# multinomial
multinomial — math / numeric (uncategorized batch) builtin.
my $result = multinomial $x
# or in a pipeline:
@list |> map multinomial |> p
# mun
mun — physics constants builtin. Alias for nuclear_magneton.
my $result = mun $x
# or in a pipeline:
@list |> map mun |> p
# mzeros
mzeros — extended stdlib builtin. Alias for matrix_zeros.
my $result = mzeros $x
# or in a pipeline:
@list |> map mzeros |> p
# nanoid
nanoid — id helpers builtin.
my $result = nanoid $x
# or in a pipeline:
@list |> map nanoid |> p
# nato
nato — encoding / phonetics builtin. Alias for nato_phonetic.
my $result = nato $x
# or in a pipeline:
@list |> map nato |> p
# nato_phonetic
nato_phonetic — encoding / phonetics builtin.
my $result = nato_phonetic $input
# ncol
ncol — number of columns in a matrix.
p ncol([[1,2,3],[4,5,6]]) # 3
# ndivs
ndivs — math / numeric (uncategorized batch) builtin. Alias for num_divisors.
my $result = ndivs $x
# or in a pipeline:
@list |> map ndivs |> p
# neg_inf
neg_inf — math / numeric (uncategorized batch) builtin.
my $result = neg_inf $x
# or in a pipeline:
@list |> map neg_inf |> p
# neg_n
neg_n — trivial numeric / predicate builtins builtin. Alias for negative.
my $result = neg_n $x
# or in a pipeline:
@list |> map neg_n |> p
# negate
negate — trivial numeric / predicate builtins builtin.
my $result = negate $x
# or in a pipeline:
@list |> map negate |> p
# negate_each
negate_each — trivial numeric helpers (batch 4) builtin.
my $result = negate_each $x
# or in a pipeline:
@list |> map negate_each |> p
# negative
negative — trivial numeric / predicate builtins builtin.
my $result = negative $x
# or in a pipeline:
@list |> map negative |> p
# neither
neither — boolean combinators builtin.
my $result = neither $x
# or in a pipeline:
@list |> map neither |> p
# neutron_mass
neutron_mass — physics constants builtin.
my $result = neutron_mass $x
# or in a pipeline:
@list |> map neutron_mass |> p
# newton
newton_method (aliases newton, newton_raphson) finds a root via Newton-Raphson. Takes f, f', x0, and optional tolerance.
my $root = newton(fn { $_[0]**2 - 2 }, fn { 2*$_[0] }, 1.5) # √2
# newtons_to_lbf
newtons_to_lbf — file stat / path builtin.
my $result = newtons_to_lbf $input
# next_permutation
next_permutation — matrix operations (uncategorized batch) builtin.
my $result = next_permutation $x
# or in a pipeline:
@list |> map next_permutation |> p
# next_prime
next_prime — number theory / primes builtin.
my $result = next_prime $x
# or in a pipeline:
@list |> map next_prime |> p
# nfirst
nfirst — algebraic match builtin.
my $result = nfirst $x
# or in a pipeline:
@list |> map nfirst |> p
# nfs
nfs — algebraic match builtin. Alias for nfirst.
my $result = nfs $x
# or in a pipeline:
@list |> map nfs |> p
# ngram
ngram — string processing (uncategorized batch) builtin. Alias for ngrams.
my $result = ngram $x
# or in a pipeline:
@list |> map ngram |> p
# ngrams
ngrams — string processing (uncategorized batch) builtin.
my $result = ngrams $x
# or in a pipeline:
@list |> map ngrams |> p
# nmass
nmass — physics constants builtin. Alias for neutron_mass.
my $result = nmass $x
# or in a pipeline:
@list |> map nmass |> p
# nne
nne — algebraic match builtin. Alias for nnext.
my $result = nne $x
# or in a pipeline:
@list |> map nne |> p
# nnext
nnext — algebraic match builtin.
my $result = nnext $x
# or in a pipeline:
@list |> map nnext |> p
# nohtml
nohtml — string processing (uncategorized batch) builtin. Alias for strip_html.
my $result = nohtml $x
# or in a pipeline:
@list |> map nohtml |> p
# none_match
none_match — python/ruby stdlib builtin.
my $result = none_match $x
# or in a pipeline:
@list |> map none_match |> p
# nonem
nonem — python/ruby stdlib builtin. Alias for none_match.
my $result = nonem $x
# or in a pipeline:
@list |> map nonem |> p
# nonempty_count
nonempty_count — counters (batch 4) builtin.
my $result = nonempty_count $x
# or in a pipeline:
@list |> map nonempty_count |> p
# nonzero
nonzero — trivial numeric / predicate builtins builtin.
my $result = nonzero $x
# or in a pipeline:
@list |> map nonzero |> p
# noop_val
noop_val — conversion / utility (batch 4) builtin.
my $result = noop_val $x
# or in a pipeline:
@list |> map noop_val |> p
# nop
nop — conversion / utility (batch 4) builtin.
my $result = nop $x
# or in a pipeline:
@list |> map nop |> p
# normal_cdf
normal_cdf($x, $mu, $sigma) (alias normcdf) — cumulative distribution function. Returns probability that a value is ≤ x.
p normcdf(0) # 0.5 (half below mean)
p normcdf(1.96) # ~0.975 (95% confidence bound)
# normal_pdf
normal_pdf($x, $mu, $sigma) (alias normpdf) — normal/Gaussian distribution probability density function. Default: μ=0, σ=1 (standard normal).
p normpdf(0) # ~0.399 (peak of standard normal)
p normpdf(0, 100, 15) # PDF at IQ=100, mean=100, stddev=15
# normalize_array
normalize_array — matrix operations (uncategorized batch) builtin.
my $result = normalize_array $x
# or in a pipeline:
@list |> map normalize_array |> p
# normalize_list
normalize_list — functional combinators builtin.
my $result = normalize_list $x
# or in a pipeline:
@list |> map normalize_list |> p
# normalize_range
normalize_range — matrix operations (uncategorized batch) builtin.
my $result = normalize_range $x
# or in a pipeline:
@list |> map normalize_range |> p
# normalize_signal
normalize_signal(\@signal) (alias normsig) — scales signal to range [-1, 1] based on its peak absolute value. Useful for audio processing.
my $norm = normsig(\@audio)
p max(map { abs } @$norm) # 1
# normalize_spaces
normalize_spaces — extended stdlib builtin.
my $result = normalize_spaces $x
# or in a pipeline:
@list |> map normalize_spaces |> p
# normalize_vec
normalize_vec — extended stdlib builtin.
my $result = normalize_vec $x
# or in a pipeline:
@list |> map normalize_vec |> p
# normalize_whitespace
normalize_whitespace — string helpers (batch 4) builtin.
my $result = normalize_whitespace $x
# or in a pipeline:
@list |> map normalize_whitespace |> p
# normarr
normarr — matrix operations (uncategorized batch) builtin. Alias for normalize_array.
my $result = normarr $x
# or in a pipeline:
@list |> map normarr |> p
# not_any
not_any — algebraic match builtin.
my $result = not_any $x
# or in a pipeline:
@list |> map not_any |> p
# not_each
not_each — trivial numeric helpers (batch 4) builtin.
my $result = not_each $x
# or in a pipeline:
@list |> map not_each |> p
# not_elem
not_elem — haskell list functions builtin.
my $result = not_elem $x
# or in a pipeline:
@list |> map not_elem |> p
# not_every
not_every — algebraic match builtin.
my $result = not_every $x
# or in a pipeline:
@list |> map not_every |> p
# now
now — date / time builtin. Alias for datetime_now_tz.
my $result = now $x
# or in a pipeline:
@list |> map now |> p
# now_ms
now_ms — now / timestamp builtin.
my $result = now_ms $x
# or in a pipeline:
@list |> map now_ms |> p
# now_ns
now_ns — now / timestamp builtin.
my $result = now_ns $x
# or in a pipeline:
@list |> map now_ns |> p
# now_us
now_us — now / timestamp builtin.
my $result = now_us $x
# or in a pipeline:
@list |> map now_us |> p
# nper
nper($rate, $pmt, $pv) (alias num_periods) — computes the number of periods needed to pay off a loan given rate, payment, and principal.
p nper(0.05/12, 500, 50000) # ~127 months
# npv
npv — math / numeric (uncategorized batch) builtin.
my $result = npv $x
# or in a pipeline:
@list |> map npv |> p
# nrmrng
nrmrng — matrix operations (uncategorized batch) builtin. Alias for normalize_range.
my $result = nrmrng $x
# or in a pipeline:
@list |> map nrmrng |> p
# nrmsp
nrmsp — extended stdlib builtin. Alias for normalize_spaces.
my $result = nrmsp $x
# or in a pipeline:
@list |> map nrmsp |> p
# nrmv
nrmv — extended stdlib builtin. Alias for normalize_vec.
my $result = nrmv $x
# or in a pipeline:
@list |> map nrmv |> p
# nroot
nroot — extended stdlib builtin. Alias for nth_root_of.
my $result = nroot $x
# or in a pipeline:
@list |> map nroot |> p
# nrow
nrow — number of rows in a matrix.
p nrow([[1,2],[3,4],[5,6]]) # 3
# ns_to_ms
ns_to_ms — file stat / path builtin.
my $result = ns_to_ms $input
# ns_to_us
ns_to_us — file stat / path builtin.
my $result = ns_to_us $input
# ntelm
ntelm — haskell list functions builtin. Alias for not_elem.
my $result = ntelm $x
# or in a pipeline:
@list |> map ntelm |> p
# nth_prime
nth_prime — number theory / primes builtin.
my $result = nth_prime $x
# or in a pipeline:
@list |> map nth_prime |> p
# nth_root
nth_root — math functions builtin.
my $result = nth_root $x
# or in a pipeline:
@list |> map nth_root |> p
# nth_root_of
nth_root_of — extended stdlib builtin.
my $result = nth_root_of $x
# or in a pipeline:
@list |> map nth_root_of |> p
# nth_word
nth_word — file stat / path builtin.
my $result = nth_word $x
# or in a pipeline:
@list |> map nth_word |> p
# nthp
nthp — number theory / primes builtin. Alias for nth_prime.
my $result = nthp $x
# or in a pipeline:
@list |> map nthp |> p
# nub
nub — haskell list functions builtin.
my $result = nub $x
# or in a pipeline:
@list |> map nub |> p
# nub_by
nub_by — additional missing stdlib functions builtin.
my $result = nub_by $x
# or in a pipeline:
@list |> map nub_by |> p
# nubb
nubb — additional missing stdlib functions builtin. Alias for nub_by.
my $result = nubb $x
# or in a pipeline:
@list |> map nubb |> p
# nuclear_magneton
nuclear_magneton — physics constants builtin.
my $result = nuclear_magneton $x
# or in a pipeline:
@list |> map nuclear_magneton |> p
# num_cpus
num_cpus — system introspection builtin.
my $result = num_cpus $x
# or in a pipeline:
@list |> map num_cpus |> p
# num_divisors
num_divisors — math / numeric (uncategorized batch) builtin.
my $result = num_divisors $x
# or in a pipeline:
@list |> map num_divisors |> p
# numeric_count
numeric_count — counters (batch 4) builtin.
my $result = numeric_count $x
# or in a pipeline:
@list |> map numeric_count |> p
# nxtp
nxtp — number theory / primes builtin. Alias for next_prime.
my $result = nxtp $x
# or in a pipeline:
@list |> map nxtp |> p
# nxtperm
nxtperm — matrix operations (uncategorized batch) builtin. Alias for next_permutation.
my $result = nxtperm $x
# or in a pipeline:
@list |> map nxtperm |> p
# object_entries
object_entries — javascript array/object methods builtin.
my $result = object_entries $x
# or in a pipeline:
@list |> map object_entries |> p
# object_from_entries
object_from_entries — javascript array/object methods builtin.
my $result = object_from_entries $x
# or in a pipeline:
@list |> map object_from_entries |> p
# object_keys
object_keys — javascript array/object methods builtin.
my $result = object_keys $x
# or in a pipeline:
@list |> map object_keys |> p
# object_values
object_values — javascript array/object methods builtin.
my $result = object_values $x
# or in a pipeline:
@list |> map object_values |> p
# oct_of
oct_of — base conversion builtin. Alias for to_oct.
my $result = oct_of $x
# or in a pipeline:
@list |> map oct_of |> p
# odd
odd — trivial numeric / predicate builtins builtin.
my $result = odd $x
# or in a pipeline:
@list |> map odd |> p
# oents
oents — javascript array/object methods builtin. Alias for object_entries.
my $result = oents $x
# or in a pipeline:
@list |> map oents |> p
# ofents
ofents — javascript array/object methods builtin. Alias for object_from_entries.
my $result = ofents $x
# or in a pipeline:
@list |> map ofents |> p
# off
off — color / ansi builtin. Alias for red.
my $result = off $x
# or in a pipeline:
@list |> map off |> p
# offset_each
offset_each — trivial numeric helpers (batch 4) builtin.
my $result = offset_each $x
# or in a pipeline:
@list |> map offset_each |> p
# ohms_law_i
ohms_law_i — physics formulas builtin.
my $result = ohms_law_i $x
# or in a pipeline:
@list |> map ohms_law_i |> p
# ohms_law_r
ohms_law_r — physics formulas builtin.
my $result = ohms_law_r $x
# or in a pipeline:
@list |> map ohms_law_r |> p
# ohms_law_v
ohms_law_v — physics formulas builtin.
my $result = ohms_law_v $x
# or in a pipeline:
@list |> map ohms_law_v |> p
# okeys
okeys — javascript array/object methods builtin. Alias for object_keys.
my $result = okeys $x
# or in a pipeline:
@list |> map okeys |> p
# omit
omit — hash ops (batch 2) builtin. Alias for omit_keys.
my $result = omit $x
# or in a pipeline:
@list |> map omit |> p
# omit_keys
omit_keys — hash ops (batch 2) builtin.
my $result = omit_keys $x
# or in a pipeline:
@list |> map omit_keys |> p
# one
one — python/ruby stdlib builtin.
my $result = one $x
# or in a pipeline:
@list |> map one |> p
# ones
ones — matrix / linear algebra builtin.
my $result = ones $x
# or in a pipeline:
@list |> map ones |> p
# ones_mat
ones_mat — matrix / linear algebra builtin. Alias for ones_matrix.
my $result = ones_mat $x
# or in a pipeline:
@list |> map ones_mat |> p
# ones_matrix
ones_matrix — matrix / linear algebra builtin.
my $result = ones_matrix $x
# or in a pipeline:
@list |> map ones_matrix |> p
# only_alnum
only_alnum — string helpers (batch 4) builtin.
my $result = only_alnum $x
# or in a pipeline:
@list |> map only_alnum |> p
# only_alpha
only_alpha — string helpers (batch 4) builtin.
my $result = only_alpha $x
# or in a pipeline:
@list |> map only_alpha |> p
# only_ascii
only_ascii — string helpers (batch 4) builtin.
my $result = only_ascii $x
# or in a pipeline:
@list |> map only_ascii |> p
# only_digits
only_digits — string helpers (batch 4) builtin.
my $result = only_digits $x
# or in a pipeline:
@list |> map only_digits |> p
# or
or — control flow builtin.
my $result = or $x
# or in a pipeline:
@list |> map or |> p
# or_list
or_list — additional missing stdlib functions builtin.
my $result = or_list $x
# or in a pipeline:
@list |> map or_list |> p
# orbital_period
orbital_period($mass, $radius) (alias orbper) — period for circular orbit: T = 2π√(r³/GM). Returns seconds.
my $t = orbper # ~5560 s (ISS orbital period)
p $t / 60 # ~93 minutes
# orbital_velocity
orbital_velocity($mass, $radius) (alias orbvel) — velocity for circular orbit: v = √(GM/r). Defaults to LEO around Earth.
p orbvel # ~7672 m/s (ISS orbital speed)
# ordered_set
ordered_set — data structure helpers builtin.
my $result = ordered_set $x
# or in a pipeline:
@list |> map ordered_set |> p
# ordinalize
ordinalize — extended stdlib builtin.
my $result = ordinalize $x
# or in a pipeline:
@list |> map ordinalize |> p
# ordn
ordn — extended stdlib builtin. Alias for ordinalize.
my $result = ordn $x
# or in a pipeline:
@list |> map ordn |> p
# orl
orl — additional missing stdlib functions builtin. Alias for or_list.
my $result = orl $x
# or in a pipeline:
@list |> map orl |> p
# os_arch
os_arch — system introspection builtin.
my $result = os_arch $x
# or in a pipeline:
@list |> map os_arch |> p
# os_family
os_family — OS family string: "unix" or "windows". From std::env::consts::FAMILY.
p os_family # unix
die "unix only" unless os_family eq "unix"
# os_name
os_name — system introspection builtin.
my $result = os_name $x
# or in a pipeline:
@list |> map os_name |> p
# os_version
os_version — OS kernel version/release string from uname. Returns undef on non-unix.
p os_version # 25.4.0
p "kernel: " . os_version
# outer
outer — outer product of two vectors. Returns matrix where M[i][j] = v1[i] * v2[j].
my $m = outer([1,2,3], [10,20]) # [[10,20],[20,40],[30,60]]
# outliers
outliers — statistics (extended) builtin. Alias for outliers_iqr.
my $result = outliers $x
# or in a pipeline:
@list |> map outliers |> p
# outliers_iqr
outliers_iqr(@data) — identifies outliers using the IQR method (1.5 × IQR beyond Q1/Q3). Returns an arrayref of outlier values. Standard approach for detecting unusual data points.
my @data = (1, 2, 3, 4, 5, 100)
my $out = outliers_iqr(@data)
p @$out # (100)
# ovals
ovals — javascript array/object methods builtin. Alias for object_values.
my $result = ovals $x
# or in a pipeline:
@list |> map ovals |> p
# overlap_coefficient
overlap_coefficient — extended stdlib batch 3 builtin.
my $result = overlap_coefficient $x
# or in a pipeline:
@list |> map overlap_coefficient |> p
# overlapcoef
overlapcoef — extended stdlib batch 3 builtin. Alias for overlap_coefficient.
my $result = overlapcoef $x
# or in a pipeline:
@list |> map overlapcoef |> p
# overline
overline — color / ansi builtin. Alias for red.
my $result = overline $x
# or in a pipeline:
@list |> map overline |> p
# oz_to_g
oz_to_g — unit conversions builtin.
my $result = oz_to_g $input
# pacf
pacf_fn (alias pacf) — partial autocorrelation function via Durbin-Levinson. Like R's pacf().
my @pa = @{pacf([1,3,2,4,3,5], 3)}
# pad_left
pad_left — trivial string ops builtin.
my $result = pad_left $x
# or in a pipeline:
@list |> map pad_left |> p
# pad_number
pad_number — file stat / path builtin.
my $result = pad_number $x
# or in a pipeline:
@list |> map pad_number |> p
# pad_right
pad_right — trivial string ops builtin.
my $result = pad_right $x
# or in a pipeline:
@list |> map pad_right |> p
# page_size
page_size — memory page size in bytes. Uses sysconf(_SC_PAGESIZE) on unix.
p page_size # 16384 (Apple Silicon)
p page_size # 4096 (x86_64)
# paired_ttest
paired_ttest (alias pairedt) performs a paired t-test on two matched samples. Returns [t-statistic, degrees of freedom].
my ($t, $df) = @{pairedt([85,90,78], [88,92,80])}
# pairs_from_hash
pairs_from_hash — hash ops (batch 2) builtin.
my $result = pairs_from_hash $x
# or in a pipeline:
@list |> map pairs_from_hash |> p
# pairwise
pairwise — file stat / path builtin.
my $result = pairwise $x
# or in a pipeline:
@list |> map pairwise |> p
# pairwise_iter
pairwise_iter — python/ruby stdlib builtin.
my $result = pairwise_iter $x
# or in a pipeline:
@list |> map pairwise_iter |> p
# pall
pall — algebraic match builtin. Alias for partition_all.
my $result = pall $x
# or in a pipeline:
@list |> map pall |> p
# parenthesize
parenthesize — string helpers (batch 4) builtin.
my $result = parenthesize $x
# or in a pipeline:
@list |> map parenthesize |> p
# pareto_pdf
pareto_pdf (alias paretopdf) evaluates the Pareto distribution PDF at x with minimum xm and shape alpha.
p paretopdf(2, 1, 3) # Pareto(1,3) at x=2
# parse_bool
parse_bool — extended stdlib builtin.
my $result = parse_bool $x
# or in a pipeline:
@list |> map parse_bool |> p
# parse_float
parse_float — extended stdlib builtin.
my $result = parse_float $x
# or in a pipeline:
@list |> map parse_float |> p
# parse_int
parse_int — extended stdlib builtin.
my $result = parse_int $x
# or in a pipeline:
@list |> map parse_int |> p
# parsec
parsec (alias pc) — pc ≈ 3.086×10¹⁶ m ≈ 3.26 ly. Common astronomical distance unit.
p pc # 3.0856775814913673e16 m
p pc / ly # ~3.26 light years
# partition_all
partition_all — algebraic match builtin.
my $result = partition_all $x
# or in a pipeline:
@list |> map partition_all |> p
# partition_by
partition_by — algebraic match builtin.
my $result = partition_by $x
# or in a pipeline:
@list |> map partition_by |> p
# partition_either
partition_either — rust iterator methods builtin.
my $result = partition_either $x
# or in a pipeline:
@list |> map partition_either |> p
# partition_n
partition_n — go/general functional utilities builtin.
my $result = partition_n $x
# or in a pipeline:
@list |> map partition_n |> p
# partition_number
partition_number — math / numeric (uncategorized batch) builtin.
my $result = partition_number $x
# or in a pipeline:
@list |> map partition_number |> p
# partition_point
partition_point — extended stdlib builtin.
my $result = partition_point $x
# or in a pipeline:
@list |> map partition_point |> p
# partition_two
partition_two — list helpers (batch 4) builtin.
my $result = partition_two $x
# or in a pipeline:
@list |> map partition_two |> p
# partn
partn — go/general functional utilities builtin. Alias for partition_n.
my $result = partn $x
# or in a pipeline:
@list |> map partn |> p
# partn_num
partn_num — math / numeric (uncategorized batch) builtin. Alias for partition_number.
my $result = partn_num $x
# or in a pipeline:
@list |> map partn_num |> p
# pascal_case
pascal_case — string (batch 2) builtin.
my $result = pascal_case $x
# or in a pipeline:
@list |> map pascal_case |> p
# pascal_row
pascal_row — extended stdlib batch 3 builtin.
my $result = pascal_row $x
# or in a pipeline:
@list |> map pascal_row |> p
# pascals_to_bar
pascals_to_bar — file stat / path builtin.
my $result = pascals_to_bar $input
# pascals_to_psi
pascals_to_psi — file stat / path builtin.
my $result = pascals_to_psi $input
# pascals_triangle
pascals_triangle — math / numeric (uncategorized batch) builtin.
my $result = pascals_triangle $x
# or in a pipeline:
@list |> map pascals_triangle |> p
# pascrow
pascrow — extended stdlib batch 3 builtin. Alias for pascal_row.
my $result = pascrow $x
# or in a pipeline:
@list |> map pascrow |> p
# pasctri
pasctri — math / numeric (uncategorized batch) builtin. Alias for pascals_triangle.
my $result = pasctri $x
# or in a pipeline:
@list |> map pasctri |> p
# pass
pass — conversion / utility (batch 4) builtin.
my $result = pass $x
# or in a pipeline:
@list |> map pass |> p
# path_case
path_case — string (batch 2) builtin.
my $result = path_case $x
# or in a pipeline:
@list |> map path_case |> p
# path_ext
path_ext — path helpers builtin.
my $result = path_ext $x
# or in a pipeline:
@list |> map path_ext |> p
# path_is_abs
path_is_abs — file stat / path builtin.
my $result = path_is_abs $x
# or in a pipeline:
@list |> map path_is_abs |> p
# path_is_rel
path_is_rel — file stat / path builtin.
my $result = path_is_rel $x
# or in a pipeline:
@list |> map path_is_rel |> p
# path_join
path_join — path helpers builtin.
my $result = path_join $x
# or in a pipeline:
@list |> map path_join |> p
# path_parent
path_parent — path helpers builtin.
my $result = path_parent $x
# or in a pipeline:
@list |> map path_parent |> p
# path_split
path_split — path helpers builtin.
my $result = path_split $x
# or in a pipeline:
@list |> map path_split |> p
# path_stem
path_stem — path helpers builtin.
my $result = path_stem $x
# or in a pipeline:
@list |> map path_stem |> p
# payback
payback_period($initial, @cashflows) (alias payback) — computes the number of periods to recover initial investment. Returns fractional periods.
p payback(1000, 300, 400, 500) # 2.6 periods
# pbeta
pbeta — beta CDF (regularized incomplete beta). Args: x, a, b.
p pbeta(0.5, 2, 5) # P(X ≤ 0.5) for Beta(2,5)
# pbinom
pbinom — binomial CDF. P(X ≤ k) for Binom(n, p). Args: k, n, p.
p pbinom(5, 10, 0.5) # P(≤5 heads in 10 flips)
# pbool
pbool — extended stdlib builtin. Alias for parse_bool.
my $result = pbool $x
# or in a pipeline:
@list |> map pbool |> p
# pby
pby — algebraic match builtin. Alias for partition_by.
my $result = pby $x
# or in a pipeline:
@list |> map pby |> p
# pc_case
pc_case — string (batch 2) builtin. Alias for pascal_case.
my $result = pc_case $x
# or in a pipeline:
@list |> map pc_case |> p
# pca
prcomp (alias pca) — Principal Component Analysis via eigendecomposition of covariance matrix. Returns eigenvalues (variance explained). Like R's prcomp().
my @var = @{pca([[1,2],[3,4],[5,6],[7,8]])}
# variance explained by each component
# pcauchy
pcauchy — Cauchy CDF. P(X ≤ x). Args: x [, location, scale].
p pcauchy(0, 0, 1) # 0.5
# pchisq
pchisq — chi-squared CDF. Args: x, df.
p pchisq(3.84, 1) # 0.95 (critical value for p=0.05)
# pcr
pcr — data / network builtin. Alias for par_csv_read.
my $result = pcr $x
# or in a pipeline:
@list |> map pcr |> p
# pct
pct — trivial numeric / predicate builtins builtin. Alias for percent.
my $result = pct $x
# or in a pipeline:
@list |> map pct |> p
# pctrank
pctrank — statistics (extended) builtin. Alias for percentile_rank.
my $result = pctrank $x
# or in a pipeline:
@list |> map pctrank |> p
# peak_detect
peak_detect — matrix operations (uncategorized batch) builtin.
my $result = peak_detect $x
# or in a pipeline:
@list |> map peak_detect |> p
# peaks
peaks — matrix operations (uncategorized batch) builtin. Alias for peak_detect.
my $result = peaks $x
# or in a pipeline:
@list |> map peaks |> p
# peek_clj
peek_clj — algebraic match builtin.
my $result = peek_clj $x
# or in a pipeline:
@list |> map peek_clj |> p
# peith
peith — rust iterator methods builtin. Alias for partition_either.
my $result = peith $x
# or in a pipeline:
@list |> map peith |> p
# pendper
pendulum_period($length) (alias pendper) — period T = 2π√(L/g) of a simple pendulum.
p pendper(1) # ~2.01 s (1 meter pendulum)
p pendper(0.25) # ~1.00 s (grandfather clock)
# pentagonal_number
pentagonal_number — number theory / primes builtin.
my $result = pentagonal_number $x
# or in a pipeline:
@list |> map pentagonal_number |> p
# pentnum
pentnum — number theory / primes builtin. Alias for pentagonal_number.
my $result = pentnum $x
# or in a pipeline:
@list |> map pentnum |> p
# percent
percent — trivial numeric / predicate builtins builtin.
my $result = percent $x
# or in a pipeline:
@list |> map percent |> p
# percentile
percentile — file stat / path builtin.
my $result = percentile $x
# or in a pipeline:
@list |> map percentile |> p
# percentile_rank
percentile_rank($value, @data) — returns the percentile rank (0-100) of a value within a dataset. Indicates what percentage of the data falls below the given value. Useful for ranking and normalization.
my @scores = 1:100
p percentile_rank(50, @scores) # ~50
p percentile_rank(90, @scores) # ~90
# perfect_numbers
perfect_numbers — number theory / primes builtin.
my $result = perfect_numbers $x
# or in a pipeline:
@list |> map perfect_numbers |> p
# perfnums
perfnums — number theory / primes builtin. Alias for perfect_numbers.
my $result = perfnums $x
# or in a pipeline:
@list |> map perfnums |> p
# perimeter_rectangle
perimeter_rectangle — geometry / physics builtin.
my $result = perimeter_rectangle $x
# or in a pipeline:
@list |> map perimeter_rectangle |> p
# perimeter_triangle
perimeter_triangle — geometry / physics builtin.
my $result = perimeter_triangle $x
# or in a pipeline:
@list |> map perimeter_triangle |> p
# perm
permutations($n, $r) (alias perm) — number of ways to arrange r items from n. Formula: n!/(n-r)!. Order matters.
p perm(5, 3) # 60 (ways to arrange 3 items from 5)
p perm(10, 2) # 90
# pexp
pexp — exponential CDF. P(X ≤ x) for Exp(rate). Args: x, rate.
p pexp(1, 1) # 0.6321 (1 - e^-1)
p pexp(5, 0.5) # P(wait ≤ 5 with avg wait 2)
# pf
pf — F-distribution CDF. Args: x, d1, d2.
p pf(4.0, 5, 10) # P(F ≤ 4) for F(5,10)
# pfact
pfact — number theory / primes builtin. Alias for prime_factors.
my $result = pfact $x
# or in a pipeline:
@list |> map pfact |> p
# pflt
pflt — extended stdlib builtin. Alias for parse_float.
my $result = pflt $x
# or in a pipeline:
@list |> map pflt |> p
# pft
pft — data / network builtin. Alias for par_fetch.
my $result = pft $x
# or in a pipeline:
@list |> map pft |> p
# pgamma
pgamma — gamma CDF. Args: x, shape [, scale].
p pgamma(2, 2, 1) # P(X ≤ 2) for Gamma(2,1)
# phase_spectrum
phase_spectrum(\@signal) — computes the phase angle (in radians) at each frequency bin from the DFT.
my $phases = phase_spectrum(\@signal)
# phasespec
phasespec — dsp / signal (extended) builtin. Alias for phase_spectrum.
my $result = phasespec $x
# or in a pipeline:
@list |> map phasespec |> p
# phonedigit
phonedigit — encoding / phonetics builtin. Alias for phonetic_digit.
my $result = phonedigit $x
# or in a pipeline:
@list |> map phonedigit |> p
# phonetic_digit
phonetic_digit — encoding / phonetics builtin.
my $result = phonetic_digit $x
# or in a pipeline:
@list |> map phonetic_digit |> p
# photon_energy
photon_energy($frequency) (alias photonenergy) — energy E = hf (Joules) of a photon.
p photonenergy(5e14) # ~3.3e-19 J (visible light)
# photon_energy_wavelength
photon_energy_wavelength — physics formulas builtin.
my $result = photon_energy_wavelength $x
# or in a pipeline:
@list |> map photon_energy_wavelength |> p
# photonlambda
photonlambda — physics formulas builtin. Alias for photon_energy_wavelength.
my $result = photonlambda $x
# or in a pipeline:
@list |> map photonlambda |> p
# pi
pi — constants builtin.
my $result = pi $x
# or in a pipeline:
@list |> map pi |> p
# pick
pick — hash ops (batch 2) builtin. Alias for pick_keys.
my $result = pick $x
# or in a pipeline:
@list |> map pick |> p
# pick_keys
pick_keys — hash ops (batch 2) builtin.
my $result = pick_keys $x
# or in a pipeline:
@list |> map pick_keys |> p
# pid
pid — system introspection builtin.
my $result = pid $x
# or in a pipeline:
@list |> map pid |> p
# pig_latin
pig_latin — string processing (uncategorized batch) builtin.
my $result = pig_latin $x
# or in a pipeline:
@list |> map pig_latin |> p
# piglat
piglat — string processing (uncategorized batch) builtin. Alias for pig_latin.
my $result = piglat $x
# or in a pipeline:
@list |> map piglat |> p
# pint
pint — extended stdlib builtin. Alias for parse_int.
my $result = pint $x
# or in a pipeline:
@list |> map pint |> p
# pipe
Create a unidirectional pipe, returning a pair of connected filehandles: one for reading and one for writing. Data written to the write end can be read from the read end, making pipes the fundamental building block for inter-process communication. Commonly used with fork so the parent and child can exchange data.
pipe(my $rd, my $wr) or die "pipe: $!"
if (fork() == 0) {
close($rd)
print $wr "hello from child\n"
exit(0)
}
close($wr)
my $msg = <$rd>
p $msg # hello from child
# pipes
pipes — filesystem extensions builtin.
my $result = pipes $x
# or in a pipeline:
@list |> map pipes |> p
# pkc
pkc — algebraic match builtin. Alias for peek_clj.
my $result = pkc $x
# or in a pipeline:
@list |> map pkc |> p
# planck
planck — math / physics constants builtin.
my $result = planck $x
# or in a pipeline:
@list |> map planck |> p
# planck_constant
planck_constant — constants builtin.
my $result = planck_constant $x
# or in a pipeline:
@list |> map planck_constant |> p
# planck_mass
planck_mass — physics constants builtin.
my $result = planck_mass $x
# or in a pipeline:
@list |> map planck_mass |> p
# planck_temperature
planck_temperature — physics constants builtin.
my $result = planck_temperature $x
# or in a pipeline:
@list |> map planck_temperature |> p
# planck_time
planck_time — physics constants builtin.
my $result = planck_time $x
# or in a pipeline:
@list |> map planck_time |> p
# plastic
plastic — math constants builtin. Alias for plastic_number.
my $result = plastic $x
# or in a pipeline:
@list |> map plastic |> p
# plastic_number
plastic_number — math constants builtin.
my $result = plastic_number $x
# or in a pipeline:
@list |> map plastic_number |> p
# plnorm
plnorm — log-normal CDF. P(X ≤ x) for LogN(mu, sigma). Args: x, mu, sigma.
p plnorm(1, 0, 1) # 0.5 (median of LogN(0,1))
# plur
plur — extended stdlib builtin. Alias for pluralize.
my $result = plur $x
# or in a pipeline:
@list |> map plur |> p
# pluralize
pluralize — extended stdlib builtin.
my $result = pluralize $x
# or in a pipeline:
@list |> map pluralize |> p
# pmass
pmass — constants builtin. Alias for proton_mass.
my $result = pmass $x
# or in a pipeline:
@list |> map pmass |> p
# pmt
pmt($rate, $nper, $pv) — computes the periodic payment for a loan given interest rate, number of periods, and present value. Standard amortization formula.
# $100k loan, 5% annual rate, 30 years
p pmt(0.05/12, 360, 100000) # ~$537/month
# pnorm
pnorm — normal CDF. P(X ≤ x) for N(mu, sigma). Args: x [, mu, sigma]. Default standard normal.
p pnorm(0) # 0.5
p pnorm(1.96) # 0.975
p pnorm(100, 90, 15) # z-score for IQ 100
# point_distance
point_distance — geometry / physics builtin.
my $result = point_distance $x
# or in a pipeline:
@list |> map point_distance |> p
# point_in_polygon
point_in_polygon($x, $y, @polygon) (alias pip) — tests if a point lies inside a polygon. Polygon is given as flat list [x1,y1,x2,y2,...]. Returns 1 if inside, 0 if outside. Uses ray-casting algorithm.
my @square = (0,0, 4,0, 4,4, 0,4)
p pip(2, 2, @square) # 1 (inside)
p pip(5, 5, @square) # 0 (outside)
# pointer_width
pointer_width — pointer width in bits: 32 or 64. Compile-time constant.
p pointer_width # 64
# poisson
poisson_pmf($k, $lambda) (alias poisson) — Poisson probability mass function. P(X=k) for events with rate λ.
p poisson(3, 5) # P(X=3) when avg rate is 5
# poly_eval
poly_eval (alias polyval) evaluates a polynomial c0 + c1·x + c2·x² + ... using Horner's method.
p polyval([1, 0, 1], 3) # 1 + 0*3 + 1*9 = 10
# polyarea
polyarea — geometry / physics builtin. Alias for polygon_area.
my $result = polyarea $x
# or in a pipeline:
@list |> map polyarea |> p
# polyfit
polynomial_fit (alias polyfit) performs least-squares polynomial fitting. Returns coefficients [c0, c1, ..., cn].
my $c = polyfit([0,1,2,3], [1,3,5,7], 1) # linear fit
# polygon_area
polygon_area — geometry / physics builtin.
my $result = polygon_area $x
# or in a pipeline:
@list |> map polygon_area |> p
# polygon_perimeter
polygon_perimeter(@points) (alias polyper) — computes the perimeter of a polygon. Points as flat list [x1,y1,x2,y2,...]. Assumes closed polygon.
my @square = (0,0, 1,0, 1,1, 0,1)
p polyper(@square) # 4
# polyperim
polyperim — geometry (extended) builtin. Alias for polygon_perimeter.
my $result = polyperim $x
# or in a pipeline:
@list |> map polyperim |> p
# pop_clj
pop_clj — algebraic match builtin.
my $result = pop_clj $x
# or in a pipeline:
@list |> map pop_clj |> p
# popc
popc — algebraic match builtin. Alias for pop_clj.
my $result = popc $x
# or in a pipeline:
@list |> map popc |> p
# popcount
popcount — base conversion builtin. Alias for bits_count.
my $result = popcount $x
# or in a pipeline:
@list |> map popcount |> p
# pos_n
pos_n — trivial numeric / predicate builtins builtin. Alias for positive.
my $result = pos_n $x
# or in a pipeline:
@list |> map pos_n |> p
# positions_of
positions_of — collection (batch 2) builtin.
my $result = positions_of $x
# or in a pipeline:
@list |> map positions_of |> p
# positive
positive — trivial numeric / predicate builtins builtin.
my $result = positive $x
# or in a pipeline:
@list |> map positive |> p
# potential_energy
potential_energy — physics formulas builtin.
my $result = potential_energy $x
# or in a pipeline:
@list |> map potential_energy |> p
# pow2
pow2 — trivial numeric / predicate builtins builtin.
my $result = pow2 $x
# or in a pipeline:
@list |> map pow2 |> p
# power_phys
power_phys — physics formulas builtin.
my $result = power_phys $x
# or in a pipeline:
@list |> map power_phys |> p
# power_set
power_set — extended stdlib batch 3 builtin.
my $result = power_set $x
# or in a pipeline:
@list |> map power_set |> p
# power_spectrum
power_spectrum(\@signal) (alias psd) — computes the power spectral density (magnitude squared of DFT). Returns real values representing power at each frequency bin.
my $psd = psd(\@signal)
@$psd |> e p
# powers_of_seq
powers_of_seq — sequences builtin.
my $result = powers_of_seq $x
# or in a pipeline:
@list |> map powers_of_seq |> p
# powerset
powerset — extended stdlib batch 3 builtin. Alias for power_set.
my $result = powerset $x
# or in a pipeline:
@list |> map powerset |> p
# powspec
powspec — dsp / signal (extended) builtin. Alias for power_spectrum.
my $result = powspec $x
# or in a pipeline:
@list |> map powspec |> p
# ppi
ppi — number theory / primes builtin. Alias for prime_pi.
my $result = ppi $x
# or in a pipeline:
@list |> map ppi |> p
# ppid
ppid — system introspection builtin.
my $result = ppid $x
# or in a pipeline:
@list |> map ppid |> p
# ppois
ppois — Poisson CDF. P(X ≤ k) for Poisson(lambda). Args: k, lambda.
p ppois(3, 2.5) # P(≤3 events when avg is 2.5)
# ppt
ppt — extended stdlib builtin. Alias for partition_point.
my $result = ppt $x
# or in a pipeline:
@list |> map ppt |> p
# prect
prect — geometry / physics builtin. Alias for perimeter_rectangle.
my $result = prect $x
# or in a pipeline:
@list |> map prect |> p
# pred
pred — conversion / utility (batch 4) builtin.
my $result = pred $x
# or in a pipeline:
@list |> map pred |> p
# predict
predict_lm (alias predict) — predict from a linear model at new x values.
my $model = lm([1,2,3], [2,4,6])
my @pred = @{predict($model, [4,5,6])} # [8,10,12]
# prefix_sums
prefix_sums — list helpers (batch 4) builtin.
my $result = prefix_sums $x
# or in a pipeline:
@list |> map prefix_sums |> p
# prepend
prepend — list helpers (batch 4) builtin.
my $result = prepend $x
# or in a pipeline:
@list |> map prepend |> p
# present_value
present_value — physics formulas builtin.
my $result = present_value $x
# or in a pipeline:
@list |> map present_value |> p
# prev_prime
prev_prime — number theory / primes builtin.
my $result = prev_prime $x
# or in a pipeline:
@list |> map prev_prime |> p
# prime_factors
prime_factors — number theory / primes builtin.
my $result = prime_factors $x
# or in a pipeline:
@list |> map prime_factors |> p
# prime_pi
prime_pi — number theory / primes builtin.
my $result = prime_pi $x
# or in a pipeline:
@list |> map prime_pi |> p
# primes_seq
primes_seq — sequences builtin.
my $result = primes_seq $x
# or in a pipeline:
@list |> map primes_seq |> p
# primes_up_to
primes_up_to — number theory / primes builtin.
my $result = primes_up_to $x
# or in a pipeline:
@list |> map primes_up_to |> p
# proc_mem
proc_mem (alias rss) — current process resident set size (RSS) in bytes. On Linux reads VmRSS from /proc/self/status. On macOS uses getrusage(RUSAGE_SELF). Returns undef on unsupported platforms.
p format_bytes(rss) # 18.5 MiB
my $before = rss
do_work()
p format_bytes(rss - $before) . " allocated"
# product_list
product_list — list helpers (batch 4) builtin.
my $result = product_list $x
# or in a pipeline:
@list |> map product_list |> p
# product_of
product_of — more list helpers builtin.
my $result = product_of $x
# or in a pipeline:
@list |> map product_of |> p
# projectile_max_height
projectile_max_height($velocity, $angle) (alias projheight) — maximum height H = v²sin²(θ)/(2g).
p projheight(100, 45) # ~255 m
p projheight(100, 90) # ~510 m (straight up)
# projectile_range
projectile_range($velocity, $angle) (alias projrange) — horizontal range R = v²sin(2θ)/g. Angle in degrees.
p projrange(100, 45) # ~1020 m (optimal angle for range)
p projrange(100, 30) # ~884 m
# projectile_time
projectile_time — physics formulas builtin.
my $result = projectile_time $x
# or in a pipeline:
@list |> map projectile_time |> p
# projtime
projtime — physics formulas builtin. Alias for projectile_time.
my $result = projtime $x
# or in a pipeline:
@list |> map projtime |> p
# prop_table
prop_table — convert a count matrix to proportions (each cell / total). Like R's prop.table().
p prop_table([[10,20],[30,40]]) # [[0.1,0.2],[0.3,0.4]]
# prop_test
prop_test — one-sample proportion z-test. Returns [z-statistic, p-value]. Like R's prop.test().
my ($z, $pval) = @{proptest(55, 100, 0.5)} # test if 55/100 differs from 50%%
# proton_mass
proton_mass — constants builtin.
my $result = proton_mass $x
# or in a pipeline:
@list |> map proton_mass |> p
# prvp
prvp — number theory / primes builtin. Alias for prev_prime.
my $result = prvp $x
# or in a pipeline:
@list |> map prvp |> p
# psi_to_pascals
psi_to_pascals — file stat / path builtin.
my $result = psi_to_pascals $input
# pt
pt — Student's t CDF. Args: x, df.
p pt(1.96, 100) # ≈ 0.975
# ptdist
ptdist — geometry / physics builtin. Alias for point_distance.
my $result = ptdist $x
# or in a pipeline:
@list |> map ptdist |> p
# ptinpoly
ptinpoly — geometry (extended) builtin. Alias for point_in_polygon.
my $result = ptinpoly $x
# or in a pipeline:
@list |> map ptinpoly |> p
# ptri
ptri — geometry / physics builtin. Alias for perimeter_triangle.
my $result = ptri $x
# or in a pipeline:
@list |> map ptri |> p
# punct
punctuation (alias punct) extracts all ASCII punctuation characters from a string and returns them as a list. Filters out letters, digits, whitespace — keeps only punctuation.
p join "", punctuation("Hello, world!") # ,!
"a.b-c" |> punct |> cnt |> p # 2
# punif
punif — uniform CDF. P(X ≤ x) for Uniform(a, b). Args: x, a, b.
p punif(0.5, 0, 1) # 0.5
p punif(3, 0, 10) # 0.3
# purple
purple — color / ansi builtin. Alias for red.
my $result = purple $x
# or in a pipeline:
@list |> map purple |> p
# pv
pv — finance (extended) builtin.
my $result = pv $x
# or in a pipeline:
@list |> map pv |> p
# pwd_str
pwd_str — more process / system builtin. Alias for cwd.
my $result = pwd_str $x
# or in a pipeline:
@list |> map pwd_str |> p
# pweibull
pweibull — Weibull CDF. P(X ≤ x) for Weibull(shape, scale). Args: x, shape, scale.
p pweibull(1, 1, 1) # same as exponential
# pwi
pwi — python/ruby stdlib builtin. Alias for pairwise_iter.
my $result = pwi $x
# or in a pipeline:
@list |> map pwi |> p
# pyramid_volume
pyramid_volume($base_area, $height) — computes the volume of a pyramid. Returns (1/3) * base_area * height.
p pyramid_volume(100, 15) # 500
# pyrvol
pyrvol — geometry (extended) builtin. Alias for pyramid_volume.
my $result = pyrvol $x
# or in a pipeline:
@list |> map pyrvol |> p
q — quoting builtin.
my $result = q $x
# or in a pipeline:
@list |> map q |> p
# qbeta
qbeta — beta quantile. Args: p, alpha, beta.
p qbeta(0.5, 2, 5) # median of Beta(2,5)
# qbinom
qbinom — binomial quantile (smallest k where P(X≤k) ≥ p). Args: p, n, prob.
p qbinom(0.5, 10, 0.5) # median of Binom(10, 0.5) = 5
# qcauchy
qcauchy — Cauchy quantile. Args: p [, location, scale].
p qcauchy(0.75, 0, 1) # 1.0
# qchisq
qchisq — chi-squared quantile. Args: p, df.
p qchisq(0.95, 1) # 3.84 (critical value)
p qchisq(0.95, 5) # 11.07
# qdisc
quadratic_discriminant($a, $b, $c) (alias qdisc) — computes b² - 4ac. Positive = two real roots, zero = one repeated root, negative = complex roots.
p qdisc(1, -5, 6) # 1 (two distinct real roots)
p qdisc(1, 2, 1) # 0 (one repeated root)
p qdisc(1, 2, 5) # -16 (complex roots)
# qexp
qexp — exponential quantile. Args: p [, rate].
p qexp(0.5, 1) # 0.693 (median of Exp(1))
# qf
qf — F-distribution quantile. Args: p, d1, d2.
p qf(0.95, 5, 10) # critical F value
# qgamma
qgamma — gamma quantile (inverse CDF). Args: p, shape [, scale].
p qgamma(0.95, 2, 1) # 95th percentile of Gamma(2,1)
# qlnorm
qlnorm — log-normal quantile. Args: p [, mu, sigma].
p qlnorm(0.5, 0, 1) # 1.0 (median of LogN(0,1))
# qm
qm — string builtin. Alias for quotemeta.
my $result = qm $x
# or in a pipeline:
@list |> map qm |> p
# qnorm
qnorm — normal quantile (inverse CDF). Returns x such that P(X ≤ x) = p. Args: p [, mu, sigma].
p qnorm(0.975) # 1.96
p qnorm(0.5) # 0.0
p qnorm(0.95, 100, 15) # 90th percentile IQ
# qntl
qntl — extended stdlib builtin. Alias for quantile.
my $result = qntl $x
# or in a pipeline:
@list |> map qntl |> p
# qpois
qpois — Poisson quantile (smallest k where P(X≤k) ≥ p). Args: p, lambda.
p qpois(0.5, 5) # median of Poisson(5)
# qq
qq — quoting builtin.
my $result = qq $x
# or in a pipeline:
@list |> map qq |> p
# qroots
quadratic_roots($a, $b, $c) (alias qroots) — solves ax² + bx + c = 0. Returns [x1, x2] for real roots, undef if no real solutions (discriminant < 0).
my @roots = quadratic_roots(1, -5, 6) # [3, 2] (x² - 5x + 6 = 0)
p qroots(1, 0, -4) # [2, -2]
p qroots(1, 2, 5) # undef (complex roots)
# qt
qt — Student's t quantile. Args: p, df.
p qt(0.975, 10) # ≈ 2.228 (two-tailed 5%)
# quantile
quantile — extended stdlib builtin.
my $result = quantile $x
# or in a pipeline:
@list |> map quantile |> p
# quarter_of
quarter_of — date helpers builtin.
my $result = quarter_of $x
# or in a pipeline:
@list |> map quarter_of |> p
# quartiles
quartiles(@data) — returns the three quartile values [Q1, Q2, Q3] of a dataset. Q1 is the 25th percentile, Q2 is the median (50th), Q3 is the 75th percentile. Useful for understanding data distribution and computing IQR.
my @data = 1:100
my $q = quartiles(@data)
p "Q1=$q->[0] Q2=$q->[1] Q3=$q->[2]"
# quarts
quarts — statistics (extended) builtin. Alias for quartiles.
my $result = quarts $x
# or in a pipeline:
@list |> map quarts |> p
# queue_new
queue_new — data structure helpers builtin.
my $result = queue_new $x
# or in a pipeline:
@list |> map queue_new |> p
# qunif
qunif — uniform quantile. Args: p [, min, max].
p qunif(0.5, 0, 10) # 5.0 (median)
# quote
quote — string quote / escape builtin.
my $result = quote $x
# or in a pipeline:
@list |> map quote |> p
# qw
qw — quoting builtin.
my $result = qw $x
# or in a pipeline:
@list |> map qw |> p
# qweibull
qweibull — Weibull quantile. Args: p, shape [, scale].
p qweibull(0.5, 1, 1) # same as qexp
# r2d
r2d — trivial numeric / predicate builtins builtin. Alias for rad_to_deg.
my $result = r2d $x
# or in a pipeline:
@list |> map r2d |> p
# r72
rule_of_72($rate) (alias r72) — estimates years to double investment using the Rule of 72: 72 / (rate × 100). Quick mental math approximation.
p r72(0.06) # 12 years to double at 6%
p r72(0.10) # 7.2 years at 10%
# r_squared
r_squared — math functions builtin.
my $result = r_squared $x
# or in a pipeline:
@list |> map r_squared |> p
# rad_to_deg
rad_to_deg — trivial numeric / predicate builtins builtin.
my $result = rad_to_deg $input
# radd
radd — roman numerals builtin. Alias for roman_add.
my $result = radd $x
# or in a pipeline:
@list |> map radd |> p
# radians
radians — trig / math (batch 2) builtin.
my $result = radians $x
# or in a pipeline:
@list |> map radians |> p
# random_alpha
random_alpha — random builtin.
my $result = random_alpha $x
# or in a pipeline:
@list |> map random_alpha |> p
# random_between
random_between — random builtin.
my $result = random_between $x
# or in a pipeline:
@list |> map random_between |> p
# random_bool
random_bool — random builtin.
my $result = random_bool $x
# or in a pipeline:
@list |> map random_bool |> p
# random_char
random_char — file stat / path builtin.
my $result = random_char $x
# or in a pipeline:
@list |> map random_char |> p
# random_choice
random_choice — random builtin.
my $result = random_choice $x
# or in a pipeline:
@list |> map random_choice |> p
# random_color
random_color — color operations builtin.
my $result = random_color $x
# or in a pipeline:
@list |> map random_color |> p
# random_digit
random_digit — random builtin.
my $result = random_digit $x
# or in a pipeline:
@list |> map random_digit |> p
# random_float
random_float — random builtin.
my $result = random_float $x
# or in a pipeline:
@list |> map random_float |> p
# random_int
random_int — random builtin.
my $result = random_int $x
# or in a pipeline:
@list |> map random_int |> p
# random_sample
random_sample — collection (batch 2) builtin.
my $result = random_sample $x
# or in a pipeline:
@list |> map random_sample |> p
# random_string
random_string — random builtin.
my $result = random_string $x
# or in a pipeline:
@list |> map random_string |> p
# range_compress
range_compress — matrix operations (uncategorized batch) builtin.
my $result = range_compress $x
# or in a pipeline:
@list |> map range_compress |> p
# range_exclusive
range_exclusive — conversion / utility (batch 4) builtin.
my $result = range_exclusive $x
# or in a pipeline:
@list |> map range_exclusive |> p
# range_expand
range_expand — matrix operations (uncategorized batch) builtin.
my $result = range_expand $x
# or in a pipeline:
@list |> map range_expand |> p
# range_inclusive
range_inclusive — conversion / utility (batch 4) builtin.
my $result = range_inclusive $x
# or in a pipeline:
@list |> map range_inclusive |> p
# range_of
range_of — more list helpers builtin.
my $result = range_of $x
# or in a pipeline:
@list |> map range_of |> p
# rank
rank — extended stdlib builtin.
my $result = rank $x
# or in a pipeline:
@list |> map rank |> p
# rapid_blink
rapid_blink — color / ansi builtin. Alias for red.
my $result = rapid_blink $x
# or in a pipeline:
@list |> map rapid_blink |> p
# rb
rb — filesystem extensions builtin. Alias for read_bytes.
my $result = rb $x
# or in a pipeline:
@list |> map rb |> p
# rbeta
rbeta — generate n random beta variates. Args: n, alpha, beta. Like R's rbeta().
my @x = @{rbeta(100, 2, 5)} # Beta(2,5)
# rbind
rbind — bind matrices/vectors by rows (vertical stack). Like R's rbind().
my $m = rbind([1,2,3], [4,5,6]) # [[1,2,3],[4,5,6]]
# rbinom
rbinom — generate n random binomial variates. Args: n, size, prob. Like R's rbinom().
my @x = @{rbinom(100, 10, 0.3)} # 100 draws from Binom(10,0.3)
# rc_time_constant
rc_time_constant — physics formulas builtin.
my $result = rc_time_constant $x
# or in a pipeline:
@list |> map rc_time_constant |> p
# rcauchy
rcauchy — generate n random Cauchy variates. Args: n [, location, scale].
my @x = @{rcauchy(100, 0, 1)} # standard Cauchy
# rchisq
rchisq — generate n random chi-squared variates. Args: n, df. Like R's rchisq().
my @x = @{rchisq(100, 5)} # Chi-sq with 5 df
# rcolor
rcolor — color operations builtin. Alias for random_color.
my $result = rcolor $x
# or in a pipeline:
@list |> map rcolor |> p
# rctau
rctau — physics formulas builtin. Alias for rc_time_constant.
my $result = rctau $x
# or in a pipeline:
@list |> map rctau |> p
# rdcs
rdcs — algebraic match builtin. Alias for reductions.
my $result = rdcs $x
# or in a pipeline:
@list |> map rdcs |> p
# re_escape
re_escape — more regex builtin.
my $result = re_escape $x
# or in a pipeline:
@list |> map re_escape |> p
# re_find_all
re_find_all — more regex builtin.
my $result = re_find_all $x
# or in a pipeline:
@list |> map re_find_all |> p
# re_groups
re_groups — more regex builtin.
my $result = re_groups $x
# or in a pipeline:
@list |> map re_groups |> p
# re_match
re_match — file stat / path builtin. Alias for matches_regex.
my $result = re_match $x
# or in a pipeline:
@list |> map re_match |> p
# re_split_limit
re_split_limit — more regex builtin.
my $result = re_split_limit $x
# or in a pipeline:
@list |> map re_split_limit |> p
# re_test
re_test — more regex builtin.
my $result = re_test $x
# or in a pipeline:
@list |> map re_test |> p
# rearth
rearth — physics constants builtin. Alias for earth_radius.
my $result = rearth $x
# or in a pipeline:
@list |> map rearth |> p
# recip
recip — extended stdlib builtin. Alias for reciprocal_of.
my $result = recip $x
# or in a pipeline:
@list |> map recip |> p
# reciprocal
reciprocal — math functions builtin.
my $result = reciprocal $x
# or in a pipeline:
@list |> map reciprocal |> p
# reciprocal_of
reciprocal_of — extended stdlib builtin.
my $result = reciprocal_of $x
# or in a pipeline:
@list |> map reciprocal_of |> p
# red
red — color / ansi builtin.
my $result = red $x
# or in a pipeline:
@list |> map red |> p
# red_bold
red_bold — color / ansi builtin. Alias for red.
my $result = red_bold $x
# or in a pipeline:
@list |> map red_bold |> p
# redi
redi — go/general functional utilities builtin. Alias for reduce_indexed.
my $result = redi $x
# or in a pipeline:
@list |> map redi |> p
# redr
redr — additional missing stdlib functions builtin. Alias for reduce_right.
my $result = redr $x
# or in a pipeline:
@list |> map redr |> p
# reduce_indexed
reduce_indexed — go/general functional utilities builtin.
my $result = reduce_indexed $x
# or in a pipeline:
@list |> map reduce_indexed |> p
# reduce_right
reduce_right — additional missing stdlib functions builtin.
my $result = reduce_right $x
# or in a pipeline:
@list |> map reduce_right |> p
# reflect_point
reflect_point($x, $y, $axis) — reflects a point across an axis. Axis can be 'x', 'y', or 'origin'. Returns the reflected coordinates.
p reflect_point(3, 4, 'x') # [3, -4]
p reflect_point(3, 4, 'y') # [-3, 4]
p reflect_point(3, 4, 'origin') # [-3, -4]
# reflpt
reflpt — geometry (extended) builtin. Alias for reflect_point.
my $result = reflpt $x
# or in a pipeline:
@list |> map reflpt |> p
# regex_replace_str
regex_replace_str — file stat / path builtin.
my $result = regex_replace_str $x
# or in a pipeline:
@list |> map regex_replace_str |> p
# regex_split_str
regex_split_str — file stat / path builtin.
my $result = regex_split_str $x
# or in a pipeline:
@list |> map regex_split_str |> p
# reject_if
reject_if — functional combinators builtin.
my $result = reject_if $x
# or in a pipeline:
@list |> map reject_if |> p
# relativistic_energy
relativistic_energy — physics formulas builtin.
my $result = relativistic_energy $x
# or in a pipeline:
@list |> map relativistic_energy |> p
# relativistic_mass
relativistic_mass — physics formulas builtin.
my $result = relativistic_mass $x
# or in a pipeline:
@list |> map relativistic_mass |> p
# relenergy
relenergy — physics formulas builtin. Alias for relativistic_energy.
my $result = relenergy $x
# or in a pipeline:
@list |> map relenergy |> p
# relmass
relmass — physics formulas builtin. Alias for relativistic_mass.
my $result = relmass $x
# or in a pipeline:
@list |> map relmass |> p
# relu
relu — math functions builtin.
my $result = relu $x
# or in a pipeline:
@list |> map relu |> p
# remc
remc — algebraic match builtin. Alias for remove_clj.
my $result = remc $x
# or in a pipeline:
@list |> map remc |> p
# remove_all_str
remove_all_str — extended stdlib builtin.
my $result = remove_all_str $x
# or in a pipeline:
@list |> map remove_all_str |> p
# remove_at
remove_at — list helpers (batch 4) builtin.
my $result = remove_at $x
# or in a pipeline:
@list |> map remove_at |> p
# remove_clj
remove_clj — algebraic match builtin.
my $result = remove_clj $x
# or in a pipeline:
@list |> map remove_clj |> p
# remove_consonants
remove_consonants — string processing (uncategorized batch) builtin.
my $result = remove_consonants $x
# or in a pipeline:
@list |> map remove_consonants |> p
# remove_elem
remove_elem — list helpers (batch 4) builtin.
my $result = remove_elem $x
# or in a pipeline:
@list |> map remove_elem |> p
# remove_first_elem
remove_first_elem — list helpers (batch 4) builtin.
my $result = remove_first_elem $x
# or in a pipeline:
@list |> map remove_first_elem |> p
# remove_keys
remove_keys — hash ops (batch 2) builtin.
my $result = remove_keys $x
# or in a pipeline:
@list |> map remove_keys |> p
# remove_str
remove_str — string helpers (batch 4) builtin.
my $result = remove_str $x
# or in a pipeline:
@list |> map remove_str |> p
# remove_vowels
remove_vowels — string processing (uncategorized batch) builtin.
my $result = remove_vowels $x
# or in a pipeline:
@list |> map remove_vowels |> p
# remove_whitespace
remove_whitespace — extended stdlib builtin.
my $result = remove_whitespace $x
# or in a pipeline:
@list |> map remove_whitespace |> p
# rep
rep — r base builtin. Alias for rep_fn.
my $result = rep $x
# or in a pipeline:
@list |> map rep |> p
# rep_fn
rep_fn — repeat a value N times. Like R's rep().
my @r = @{rep_fn(0, 10)} # ten zeros
my @s = @{rep_fn("x", 5)} # five "x"s
# repa
repa — javascript array/object methods builtin. Alias for replace_at.
my $result = repa $x
# or in a pipeline:
@list |> map repa |> p
# repeat
repeat — trivial string ops builtin.
my $result = repeat $x
# or in a pipeline:
@list |> map repeat |> p
# repeat_elem
repeat_elem — list helpers (batch 4) builtin.
my $result = repeat_elem $x
# or in a pipeline:
@list |> map repeat_elem |> p
# repeat_list
repeat_list — collection (batch 2) builtin.
my $result = repeat_list $x
# or in a pipeline:
@list |> map repeat_list |> p
# repeat_string
repeat_string — string helpers (batch 4) builtin.
my $result = repeat_string $x
# or in a pipeline:
@list |> map repeat_string |> p
# repeatedly
repeatedly — algebraic match builtin.
my $result = repeatedly $x
# or in a pipeline:
@list |> map repeatedly |> p
# replace_all_str
replace_all_str — string (batch 2) builtin.
my $result = replace_all_str $x
# or in a pipeline:
@list |> map replace_all_str |> p
# replace_at
replace_at — javascript array/object methods builtin.
my $result = replace_at $x
# or in a pipeline:
@list |> map replace_at |> p
# replace_first
replace_first — string (batch 2) builtin.
my $result = replace_first $x
# or in a pipeline:
@list |> map replace_first |> p
# replace_n_times
replace_n_times — extended stdlib builtin.
my $result = replace_n_times $x
# or in a pipeline:
@list |> map replace_n_times |> p
# replace_regex
replace_regex — extended stdlib builtin.
my $result = replace_regex $x
# or in a pipeline:
@list |> map replace_regex |> p
# replicate_val
replicate_val — haskell list functions builtin.
my $result = replicate_val $x
# or in a pipeline:
@list |> map replicate_val |> p
# repln
repln — extended stdlib builtin. Alias for replace_n_times.
my $result = repln $x
# or in a pipeline:
@list |> map repln |> p
# replre
replre — extended stdlib builtin. Alias for replace_regex.
my $result = replre $x
# or in a pipeline:
@list |> map replre |> p
# repv
repv — haskell list functions builtin. Alias for replicate_val.
my $result = repv $x
# or in a pipeline:
@list |> map repv |> p
# resample
resample(\@signal, $factor) — resamples signal by a rational factor. Factor > 1 upsamples, factor < 1 downsamples. Uses linear interpolation.
my $up = resample(\@signal, 2) # double sample rate
my $down = resample(\@signal, 0.5) # halve sample rate
# reservoir_sample
reservoir_sample — matrix operations (uncategorized batch) builtin.
my $result = reservoir_sample $x
# or in a pipeline:
@list |> map reservoir_sample |> p
# reset
reset — process / system builtin.
my $result = reset $x
# or in a pipeline:
@list |> map reset |> p
# resfreq
resfreq — physics formulas builtin. Alias for resonant_frequency.
my $result = resfreq $x
# or in a pipeline:
@list |> map resfreq |> p
# resonant_frequency
resonant_frequency — physics formulas builtin.
my $result = resonant_frequency $x
# or in a pipeline:
@list |> map resonant_frequency |> p
# rest
rest — algebraic match builtin.
my $result = rest $x
# or in a pipeline:
@list |> map rest |> p
# rest_energy
rest_energy — physics formulas builtin.
my $result = rest_energy $x
# or in a pipeline:
@list |> map rest_energy |> p
# restenergy
restenergy — physics formulas builtin. Alias for rest_energy.
my $result = restenergy $x
# or in a pipeline:
@list |> map restenergy |> p
# rev
rev — short aliases builtin.
my $result = rev $x
# or in a pipeline:
@list |> map rev |> p
# rev_str
rev_str — trivial string ops builtin. Alias for reverse_str.
my $result = rev_str $x
# or in a pipeline:
@list |> map rev_str |> p
# rev_vec
rev_vec — r base builtin.
my $result = rev_vec $x
# or in a pipeline:
@list |> map rev_vec |> p
# reverse_each
reverse_each — trivial numeric helpers (batch 4) builtin.
my $result = reverse_each $x
# or in a pipeline:
@list |> map reverse_each |> p
# reverse_each_word
reverse_each_word — string processing (uncategorized batch) builtin.
my $result = reverse_each_word $x
# or in a pipeline:
@list |> map reverse_each_word |> p
# reverse_list
reverse_list — file stat / path builtin.
my $result = reverse_list $x
# or in a pipeline:
@list |> map reverse_list |> p
# reverse_str
reverse_str — trivial string ops builtin.
my $result = reverse_str $x
# or in a pipeline:
@list |> map reverse_str |> p
# reverse_words
reverse_words — string (batch 2) builtin.
my $result = reverse_words $x
# or in a pipeline:
@list |> map reverse_words |> p
# revwords
revwords — string processing (uncategorized batch) builtin. Alias for reverse_each_word.
my $result = revwords $x
# or in a pipeline:
@list |> map revwords |> p
# rexp
rexp — generate n random exponential variates. Args: n [, rate]. Like R's rexp().
my @x = @{rexp(100, 0.5)} # rate=0.5 (mean=2)
# rf
rf — generate n random F variates. Args: n, d1, d2. Like R's rf().
my @x = @{rf(100, 5, 10)} # F(5,10)
# rfact
rfact — math formulas builtin. Alias for rising_factorial.
my $result = rfact $x
# or in a pipeline:
@list |> map rfact |> p
# rgamma
rgamma — generate n random gamma variates. Args: n, shape [, scale]. Like R's rgamma().
my @x = @{rgamma(100, 2, 1)} # Gamma(2,1)
# rgb
rgb — color / ansi builtin. Alias for red.
my $result = rgb $x
# or in a pipeline:
@list |> map rgb |> p
# rgb2hsl
rgb2hsl — color operations builtin. Alias for rgb_to_hsl.
my $result = rgb2hsl $x
# or in a pipeline:
@list |> map rgb2hsl |> p
# rgb2hsv
rgb2hsv — color operations builtin. Alias for rgb_to_hsv.
my $result = rgb2hsv $x
# or in a pipeline:
@list |> map rgb2hsv |> p
# rgb_to_hex
rgb_to_hex — color / ansi builtin.
my $result = rgb_to_hex $input
# rgb_to_hsl
rgb_to_hsl — color operations builtin.
my $result = rgb_to_hsl $input
# rgb_to_hsv
rgb_to_hsv — color operations builtin.
my $result = rgb_to_hsv $input
# rgeom
rgeom — generate n random geometric variates. Args: n, prob.
my @x = @{rgeom(100, 0.3)} # trials until first success
# rho
spearman (aliases spearman_corr, rho) computes Spearman's rank correlation coefficient between two samples.
p rho([1,2,3,4,5], [5,6,7,8,7]) # ~0.82
# ridx
ridx — python/ruby stdlib builtin. Alias for rindex_fn.
my $result = ridx $x
# or in a pipeline:
@list |> map ridx |> p
# riffle
riffle — collection helpers (trivial) builtin.
my $result = riffle $x
# or in a pipeline:
@list |> map riffle |> p
# right_str
right_str — string (batch 2) builtin.
my $result = right_str $x
# or in a pipeline:
@list |> map right_str |> p
# rindex_fn
rindex_fn — python/ruby stdlib builtin.
my $result = rindex_fn $x
# or in a pipeline:
@list |> map rindex_fn |> p
# rising_factorial
rising_factorial — math formulas builtin.
my $result = rising_factorial $x
# or in a pipeline:
@list |> map rising_factorial |> p
# rjt
rjt — extended stdlib builtin. Alias for rjust_text.
my $result = rjt $x
# or in a pipeline:
@list |> map rjt |> p
# rjust
rjust — string helpers (batch 4) builtin.
my $result = rjust $x
# or in a pipeline:
@list |> map rjust |> p
# rjust_text
rjust_text — extended stdlib builtin.
my $result = rjust_text $x
# or in a pipeline:
@list |> map rjust_text |> p
# rk4
rk4 (aliases runge_kutta, rk4_ode) solves an ODE dy/dt = f(t,y) using 4th-order Runge-Kutta. Returns [[t,y], ...].
# dy/dt = -y, y(0) = 1 → y = e^(-t)
my $sol = rk4(fn { -$_[1] }, 0, 1, 0.1, 100)
# rl_time_constant
rl_time_constant — physics formulas builtin.
my $result = rl_time_constant $x
# or in a pipeline:
@list |> map rl_time_constant |> p
# rld
rld — collection more builtin. Alias for run_length_decode.
my $result = rld $x
# or in a pipeline:
@list |> map rld |> p
# rld_str
rld_str — matrix operations (uncategorized batch) builtin. Alias for run_length_decode_str.
my $result = rld_str $x
# or in a pipeline:
@list |> map rld_str |> p
# rle
rle — collection more builtin. Alias for run_length_encode.
my $result = rle $x
# or in a pipeline:
@list |> map rle |> p
# rle_str
rle_str — matrix operations (uncategorized batch) builtin. Alias for run_length_encode_str.
my $result = rle_str $x
# or in a pipeline:
@list |> map rle_str |> p
# rlnorm
rlnorm — generate n random log-normal variates. Args: n [, mu, sigma].
my @x = @{rlnorm(100, 0, 1)} # LogN(0,1)
# rltau
rltau — physics formulas builtin. Alias for rl_time_constant.
my $result = rltau $x
# or in a pipeline:
@list |> map rltau |> p
# rmall
rmall — extended stdlib builtin. Alias for remove_all_str.
my $result = rmall $x
# or in a pipeline:
@list |> map rmall |> p
# rmcons
rmcons — string processing (uncategorized batch) builtin. Alias for remove_consonants.
my $result = rmcons $x
# or in a pipeline:
@list |> map rmcons |> p
# rms
rms — extended stdlib builtin.
my $result = rms $x
# or in a pipeline:
@list |> map rms |> p
# rmse
rmse — math functions builtin.
my $result = rmse $x
# or in a pipeline:
@list |> map rmse |> p
# rmvowel
rmvowel — string processing (uncategorized batch) builtin. Alias for remove_vowels.
my $result = rmvowel $x
# or in a pipeline:
@list |> map rmvowel |> p
# rmws
rmws — extended stdlib builtin. Alias for remove_whitespace.
my $result = rmws $x
# or in a pipeline:
@list |> map rmws |> p
# rngcmp
rngcmp — matrix operations (uncategorized batch) builtin. Alias for range_compress.
my $result = rngcmp $x
# or in a pipeline:
@list |> map rngcmp |> p
# rngexp
rngexp — matrix operations (uncategorized batch) builtin. Alias for range_expand.
my $result = rngexp $x
# or in a pipeline:
@list |> map rngexp |> p
# rnk
rnk — extended stdlib builtin. Alias for rank.
my $result = rnk $x
# or in a pipeline:
@list |> map rnk |> p
# rnorm
rnorm — generate n random normal variates. Args: n [, mu, sigma]. Like R's rnorm().
my @x = @{rnorm(1000)} # 1000 standard normal
my @y = @{rnorm(100, 50, 10)} # mean=50, sd=10
# roi
roi — finance builtin.
my $result = roi $x
# or in a pipeline:
@list |> map roi |> p
# roman
roman — roman numerals builtin. Alias for int_to_roman.
my $result = roman $x
# or in a pipeline:
@list |> map roman |> p
# roman_add
roman_add — roman numerals builtin.
my $result = roman_add $x
# or in a pipeline:
@list |> map roman_add |> p
# roman_numeral_list
roman_numeral_list — roman numerals builtin.
my $result = roman_numeral_list $x
# or in a pipeline:
@list |> map roman_numeral_list |> p
# roman_to_int
roman_to_int — roman numerals builtin.
my $result = roman_to_int $input
# romanlist
romanlist — roman numerals builtin. Alias for roman_numeral_list.
my $result = romanlist $x
# or in a pipeline:
@list |> map romanlist |> p
# rot13
rot13 — string (batch 2) builtin.
my $result = rot13 $x
# or in a pipeline:
@list |> map rot13 |> p
# rot47
rot47 — string (batch 2) builtin.
my $result = rot47 $x
# or in a pipeline:
@list |> map rot47 |> p
# rotate
rotate — collection helpers (trivial) builtin.
my $result = rotate $x
# or in a pipeline:
@list |> map rotate |> p
# rotate_point
rotate_point — math functions builtin.
my $result = rotate_point $x
# or in a pipeline:
@list |> map rotate_point |> p
# round
round — trivial numeric / predicate builtins builtin.
my $result = round $x
# or in a pipeline:
@list |> map round |> p
# round_each
round_each — trivial numeric helpers (batch 4) builtin.
my $result = round_each $x
# or in a pipeline:
@list |> map round_each |> p
# round_to
round_to — math functions builtin.
my $result = round_to $x
# or in a pipeline:
@list |> map round_to |> p
# rowMeans
row_means (alias rowMeans) — mean of each row. Like R's rowMeans().
p rowMeans([[2,4],[6,8]]) # [3, 7]
# rowSums
row_sums (alias rowSums) — sum of each row in a matrix. Like R's rowSums().
p row_sums([[1,2,3],[4,5,6]]) # [6, 15]
# rpad
rpad — trivial string ops builtin. Alias for pad_right.
my $result = rpad $x
# or in a pipeline:
@list |> map rpad |> p
# rpn
rpn — algorithms / puzzles builtin. Alias for eval_rpn.
my $result = rpn $x
# or in a pipeline:
@list |> map rpn |> p
# rpois
rpois — generate n random Poisson variates. Args: n, lambda. Like R's rpois().
my @x = @{rpois(100, 5)} # Poisson with mean 5
# rptd
rptd — algebraic match builtin. Alias for repeatedly.
my $result = rptd $x
# or in a pipeline:
@list |> map rptd |> p
# rsa_decrypt_pkcs1
rsa_decrypt_pkcs1 decrypts RSA-PKCS1v15 ciphertext.
my $plain = rsa_decrypt_pkcs1($priv, $cipher)
# rsa_encrypt_pkcs1
rsa_encrypt_pkcs1 encrypts with legacy RSA-PKCS1v15 padding. Only for compatibility with old systems — prefer OAEP.
my $cipher = rsa_encrypt_pkcs1($pub, "data")
# rsamp
rsamp — matrix operations (uncategorized batch) builtin. Alias for reservoir_sample.
my $result = rsamp $x
# or in a pipeline:
@list |> map rsamp |> p
# rst
rst — algebraic match builtin. Alias for rest.
my $result = rst $x
# or in a pipeline:
@list |> map rst |> p
# rsun
rsun — physics constants builtin. Alias for sun_radius.
my $result = rsun $x
# or in a pipeline:
@list |> map rsun |> p
# rt
rt — generate n random Student's t variates. Args: n, df. Like R's rt().
my @x = @{rt(100, 10)} # t with 10 df
# run_length_decode
run_length_decode — collection more builtin.
my $result = run_length_decode $x
# or in a pipeline:
@list |> map run_length_decode |> p
# run_length_decode_str
run_length_decode_str — matrix operations (uncategorized batch) builtin.
my $result = run_length_decode_str $x
# or in a pipeline:
@list |> map run_length_decode_str |> p
# run_length_encode
run_length_encode — collection more builtin.
my $result = run_length_encode $x
# or in a pipeline:
@list |> map run_length_encode |> p
# run_length_encode_str
run_length_encode_str — matrix operations (uncategorized batch) builtin.
my $result = run_length_encode_str $x
# or in a pipeline:
@list |> map run_length_encode_str |> p
# runif
runif — generate n random uniform variates. Args: n [, min, max]. Like R's runif().
my @x = @{runif(100, 0, 1)} # 100 uniform [0,1]
# running_max
running_max — list helpers (batch 4) builtin.
my $result = running_max $x
# or in a pipeline:
@list |> map running_max |> p
# running_min
running_min — list helpers (batch 4) builtin.
my $result = running_min $x
# or in a pipeline:
@list |> map running_min |> p
# running_reduce
running_reduce — additional missing stdlib functions builtin.
my $result = running_reduce $x
# or in a pipeline:
@list |> map running_reduce |> p
# runred
runred — additional missing stdlib functions builtin. Alias for running_reduce.
my $result = runred $x
# or in a pipeline:
@list |> map runred |> p
# rweibull
rweibull — generate n random Weibull variates. Args: n, shape [, scale].
my @x = @{rweibull(100, 2, 1)} # Weibull(2,1)
# rydberg
rydberg — physics constants builtin. Alias for rydberg_constant.
my $result = rydberg $x
# or in a pipeline:
@list |> map rydberg |> p
# rydberg_constant
rydberg_constant — physics constants builtin.
my $result = rydberg_constant $x
# or in a pipeline:
@list |> map rydberg_constant |> p
# s1
s1 — crypto / encoding builtin. Alias for sha1.
my $result = s1 $x
# or in a pipeline:
@list |> map s1 |> p
# s224
s224 — crypto / encoding builtin. Alias for sha224.
my $result = s224 $x
# or in a pipeline:
@list |> map s224 |> p
# s256
s256 — crypto / encoding builtin. Alias for sha256.
my $result = s256 $x
# or in a pipeline:
@list |> map s256 |> p
# s2c
s2c — string processing (uncategorized batch) builtin. Alias for snake_to_camel.
my $result = s2c $x
# or in a pipeline:
@list |> map s2c |> p
# s384
s384 — crypto / encoding builtin. Alias for sha384.
my $result = s384 $x
# or in a pipeline:
@list |> map s384 |> p
# s512
s512 — crypto / encoding builtin. Alias for sha512.
my $result = s512 $x
# or in a pipeline:
@list |> map s512 |> p
# s_to_m
s_to_m — unit conversions builtin. Alias for seconds_to_minutes.
my $result = s_to_m $input
# s_to_ms
s_to_ms — file stat / path builtin.
my $result = s_to_ms $input
# safe_div
safe_div — functional combinators builtin.
my $result = safe_div $x
# or in a pipeline:
@list |> map safe_div |> p
# safe_log
safe_log — functional combinators builtin.
my $result = safe_log $x
# or in a pipeline:
@list |> map safe_log |> p
# safe_mod
safe_mod — functional combinators builtin.
my $result = safe_mod $x
# or in a pipeline:
@list |> map safe_mod |> p
# safe_sqrt
safe_sqrt — functional combinators builtin.
my $result = safe_sqrt $x
# or in a pipeline:
@list |> map safe_sqrt |> p
# sample_n
sample_n — collection (batch 2) builtin. Alias for random_sample.
my $result = sample_n $x
# or in a pipeline:
@list |> map sample_n |> p
# sample_one
sample_one — list helpers (batch 4) builtin.
my $result = sample_one $x
# or in a pipeline:
@list |> map sample_one |> p
# sample_stddev
sample_stddev — statistics (extended) builtin.
my $result = sample_stddev $x
# or in a pipeline:
@list |> map sample_stddev |> p
# sample_variance
sample_variance — statistics (extended) builtin.
my $result = sample_variance $x
# or in a pipeline:
@list |> map sample_variance |> p
# sampn
sampn — extended stdlib builtin.
my $result = sampn $x
# or in a pipeline:
@list |> map sampn |> p
# sapply
sapply — apply a function to each element, return a vector. Like R's sapply().
my @sq = @{sapply([1,2,3,4], fn { $_[0] ** 2 })} # [1,4,9,16]
# sat01
sat01 — trig / math (batch 2) builtin. Alias for saturate.
my $result = sat01 $x
# or in a pipeline:
@list |> map sat01 |> p
# saturate
saturate — trig / math (batch 2) builtin.
my $result = saturate $x
# or in a pipeline:
@list |> map saturate |> p
# scale
scale — standardize a vector: (x - mean) / sd. Like R's scale().
my @z = @{scale([10,20,30])} # [-1, 0, 1]
# scale_each
scale_each — trivial numeric helpers (batch 4) builtin.
my $result = scale_each $x
# or in a pipeline:
@list |> map scale_each |> p
# scale_point
scale_point($x, $y, $sx, $sy) — scales a 2D point by factors sx and sy from the origin. Returns [$x*$sx, $y*$sy]. Use for geometric transformations.
my $p = scale_point(2, 3, 2, 2)
p @$p # (4, 6)
# scalept
scalept — geometry (extended) builtin. Alias for scale_point.
my $result = scalept $x
# or in a pipeline:
@list |> map scalept |> p
# scan
scan — functional combinators builtin.
my $result = scan $x
# or in a pipeline:
@list |> map scan |> p
# scan_left
scan_left — list helpers (batch 4) builtin.
my $result = scan_left $x
# or in a pipeline:
@list |> map scan_left |> p
# scanl
scanl — haskell list functions builtin.
my $result = scanl $x
# or in a pipeline:
@list |> map scanl |> p
# scanr
scanr — haskell list functions builtin.
my $result = scanr $x
# or in a pipeline:
@list |> map scanr |> p
# scentroid
spectral_centroid(\@spectrum) (alias scentroid) — computes the spectral centroid (center of mass) of a spectrum. Indicates the 'brightness' of a sound. Returns frequency bin index.
my $psd = psd(\@signal)
p scentroid($psd) # brightness measure
# schwarz
schwarzschild_radius($mass) (alias schwarz) — event horizon radius rs = 2GM/c² of a black hole.
p schwarz(1.989e30) # ~2954 m (Sun as black hole)
p schwarz(5.972e24) # ~0.009 m (Earth as black hole)
# script_name
script_name — process / env builtin.
my $result = script_name $x
# or in a pipeline:
@list |> map script_name |> p
# sdivs
sdivs — math / numeric (uncategorized batch) builtin. Alias for sum_divisors.
my $result = sdivs $x
# or in a pipeline:
@list |> map sdivs |> p
# sdx
sdx — extended stdlib builtin. Alias for soundex.
my $result = sdx $x
# or in a pipeline:
@list |> map sdx |> p
# sec
sec returns the secant (1/cos) of an angle in radians.
p sec(0) # 1.0
# second
second — algebraic match builtin.
my $result = second $x
# or in a pipeline:
@list |> map second |> p
# second_arg
second_arg — functional primitives builtin.
my $result = second_arg $x
# or in a pipeline:
@list |> map second_arg |> p
# second_elem
second_elem — list helpers (batch 4) builtin.
my $result = second_elem $x
# or in a pipeline:
@list |> map second_elem |> p
# seconds_to_days
seconds_to_days — unit conversions builtin.
my $result = seconds_to_days $input
# seconds_to_hours
seconds_to_hours — unit conversions builtin.
my $result = seconds_to_hours $input
# seconds_to_minutes
seconds_to_minutes — unit conversions builtin.
my $result = seconds_to_minutes $input
# sectarea
sectarea — geometry (extended) builtin. Alias for sector_area.
my $result = sectarea $x
# or in a pipeline:
@list |> map sectarea |> p
# sector_area
sector_area($radius, $theta) — computes the area of a circular sector. Theta is the central angle in radians. Returns 0.5 * r² * theta.
p sector_area(10, 3.14159) # ~157 (half circle)
p sector_area(5, 1.57) # ~19.6
# selu
selu applies the Scaled ELU with fixed lambda=1.0507, alpha=1.6733 for self-normalizing networks.
p selu(1) # 1.0507
p selu(-1) # -1.1113
# semctl
semctl — sysv ipc builtin.
my $result = semctl $x
# or in a pipeline:
@list |> map semctl |> p
# semget
semget — sysv ipc builtin.
my $result = semget $x
# or in a pipeline:
@list |> map semget |> p
# semop
semop — sysv ipc builtin.
my $result = semop $x
# or in a pipeline:
@list |> map semop |> p
# sentence_case
sentence_case — string helpers (batch 4) builtin.
my $result = sentence_case $x
# or in a pipeline:
@list |> map sentence_case |> p
# seq
seq — algebraic match builtin.
my $result = seq $x
# or in a pipeline:
@list |> map seq |> p
# seq_fn
seq_fn — generate a numeric sequence from, to, by. Like R's seq().
my @s = @{seq_fn(1, 10, 2)} # [1,3,5,7,9]
my @r = @{seq_fn(5, 1, -1)} # [5,4,3,2,1]
# setgrent
setgrent — posix metadata builtin.
my $result = setgrent $x
# or in a pipeline:
@list |> map setgrent |> p
# sethostent
sethostent — posix metadata builtin.
my $result = sethostent $x
# or in a pipeline:
@list |> map sethostent |> p
# setnetent
setnetent — posix metadata builtin.
my $result = setnetent $x
# or in a pipeline:
@list |> map setnetent |> p
# setprotoent
setprotoent — posix metadata builtin.
my $result = setprotoent $x
# or in a pipeline:
@list |> map setprotoent |> p
# setpwent
setpwent — posix metadata builtin.
my $result = setpwent $x
# or in a pipeline:
@list |> map setpwent |> p
# setservent
setservent — posix metadata builtin.
my $result = setservent $x
# or in a pipeline:
@list |> map setservent |> p
# sgnum
sgnum — extended stdlib builtin. Alias for signum_of.
my $result = sgnum $x
# or in a pipeline:
@list |> map sgnum |> p
# shapiro
shapiro_test (alias shapiro) — Shapiro-Wilk normality test. Returns W statistic (close to 1 = normal). Like R's shapiro.test().
p shapiro([rnorm(100)]) # W ≈ 0.99 for normal data
p shapiro([1,1,1,2,10]) # W < 0.9 for non-normal
# sharpe
sharpe_ratio(\@returns, $risk_free_rate) (alias sharpe) — computes the Sharpe ratio measuring risk-adjusted returns. Higher is better. Returns (mean_return - rf) / stddev.
my @returns = (0.05, -0.02, 0.08, 0.03)
p sharpe(\@returns, 0.02) # risk-adjusted performance
# shift_left
shift_left — bit ops builtin.
my $result = shift_left $x
# or in a pipeline:
@list |> map shift_left |> p
# shift_right
shift_right — bit ops builtin.
my $result = shift_right $x
# or in a pipeline:
@list |> map shift_right |> p
# shl
shl — bit ops builtin. Alias for shift_left.
my $result = shl $x
# or in a pipeline:
@list |> map shl |> p
# shmctl
shmctl — sysv ipc builtin.
my $result = shmctl $x
# or in a pipeline:
@list |> map shmctl |> p
# shmget
shmget — sysv ipc builtin.
my $result = shmget $x
# or in a pipeline:
@list |> map shmget |> p
# shmread
shmread — sysv ipc builtin.
my $result = shmread $x
# or in a pipeline:
@list |> map shmread |> p
# shmwrite
shmwrite — sysv ipc builtin.
my $result = shmwrite $x
# or in a pipeline:
@list |> map shmwrite |> p
# short_id
short_id — id helpers builtin.
my $result = short_id $x
# or in a pipeline:
@list |> map short_id |> p
# shorten
shorten — trivial string ops builtin. Alias for truncate_at.
my $result = shorten $x
# or in a pipeline:
@list |> map shorten |> p
# shortest
shortest — collection (batch 2) builtin.
my $result = shortest $x
# or in a pipeline:
@list |> map shortest |> p
# shortest_path_bfs
shortest_path_bfs — extended stdlib builtin.
my $result = shortest_path_bfs $x
# or in a pipeline:
@list |> map shortest_path_bfs |> p
# shr
shr — bit ops builtin. Alias for shift_right.
my $result = shr $x
# or in a pipeline:
@list |> map shr |> p
# shuf
shuf — extended stdlib builtin. Alias for shuffle_arr.
my $result = shuf $x
# or in a pipeline:
@list |> map shuf |> p
# shuffle_arr
shuffle_arr — extended stdlib builtin.
my $result = shuffle_arr $x
# or in a pipeline:
@list |> map shuffle_arr |> p
# shuffle_chars
shuffle_chars — file stat / path builtin.
my $result = shuffle_chars $x
# or in a pipeline:
@list |> map shuffle_chars |> p
# shuffled
shuffled — functional / iterator builtin.
my $result = shuffled $x
# or in a pipeline:
@list |> map shuffled |> p
# sierp
sierp — algorithms / puzzles builtin. Alias for sierpinski.
my $result = sierp $x
# or in a pipeline:
@list |> map sierp |> p
# sierpinski
sierpinski — algorithms / puzzles builtin.
my $result = sierpinski $x
# or in a pipeline:
@list |> map sierpinski |> p
# sieve
sieve — number theory / primes builtin. Alias for primes_up_to.
my $result = sieve $x
# or in a pipeline:
@list |> map sieve |> p
# sigma_sb
sigma_sb — physics constants builtin. Alias for stefan_boltzmann_constant.
my $result = sigma_sb $x
# or in a pipeline:
@list |> map sigma_sb |> p
# sigmoid
sigmoid — math functions builtin.
my $result = sigmoid $x
# or in a pipeline:
@list |> map sigmoid |> p
# sign
sign — trivial numeric / predicate builtins builtin.
my $result = sign $x
# or in a pipeline:
@list |> map sign |> p
# signal_name
signal_name — more process / system builtin.
my $result = signal_name $x
# or in a pipeline:
@list |> map signal_name |> p
# signum
signum — math functions builtin.
my $result = signum $x
# or in a pipeline:
@list |> map signum |> p
# signum_of
signum_of — extended stdlib builtin.
my $result = signum_of $x
# or in a pipeline:
@list |> map signum_of |> p
# silu
silu (alias swish) applies SiLU/Swish: x·sigmoid(x). Smooth approximation to ReLU.
p silu(1) # 0.7311
p swish(-2) # -0.2384
# silver
silver_ratio (alias silver) — δS = 1 + √2 ≈ 2.414. Related to Pell numbers.
p silver # 2.414213562373095
# sim
sim — extended stdlib builtin. Alias for similarity.
my $result = sim $x
# or in a pipeline:
@list |> map sim |> p
# similarity
similarity — extended stdlib builtin.
my $result = similarity $x
# or in a pipeline:
@list |> map similarity |> p
# simple_interest
simple_interest — physics formulas builtin.
my $result = simple_interest $x
# or in a pipeline:
@list |> map simple_interest |> p
# simps
simpson (alias simps) integrates evenly-spaced samples using Simpson's rule. More accurate than trapz for smooth functions.
my @y = map { sin(_ * 0.01) } 0:314
p simps(\@y, 0.01) # ≈ 2.0
# sinc
sinc returns the unnormalized sinc function: sin(x)/x, with sinc(0)=1.
p sinc(0) # 1.0
p sinc(3.14159) # ≈ 0
# single_quote
single_quote — string quote / escape builtin.
my $result = single_quote $x
# or in a pipeline:
@list |> map single_quote |> p
# sinh
sinh — trig / math (batch 2) builtin.
my $result = sinh $x
# or in a pipeline:
@list |> map sinh |> p
# siphash_keyed
siphash_keyed computes SipHash-2-4 with a custom 128-bit key (two 64-bit integers). The key should be random per application to prevent collision attacks.
p siphash_keyed("data", 0x123456789, 0xabcdef012) # keyed hash
# size
size returns the byte size of a file on disk — equivalent to Perl's -s FILE file test. With no arguments, it operates on _; with one argument, it stats the given path; with multiple arguments (or a flattened list), it returns an array of sizes. Paths that can't be stat'd return undef. This is a stryke extension that makes pipelines over filenames concise.
p size "Cargo.toml" # 2013
f |> map +{ _ => size } |> tj |> p # [{name => bytes}, ...]
f |> filter { size > 1024 } |> e p # files larger than 1 KiB
# skew
skew — math / numeric (uncategorized batch) builtin. Alias for skewness.
my $result = skew $x
# or in a pipeline:
@list |> map skew |> p
# skewness
skewness — math / numeric (uncategorized batch) builtin.
my $result = skewness $x
# or in a pipeline:
@list |> map skewness |> p
# skip_while
skip_while { COND } LIST — skip leading elements while the predicate is true (alias for drop_while).
Behavior is identical to drop_while: once the predicate returns false, that element and all subsequent elements are emitted. The skip_while name is provided for users coming from Rust or Kotlin where this is the conventional name. Both compile to the same streaming operation internally.
1:10 |> skip_while { _ < 5 } |> e p # 5 6 7 8 9 10
@sorted |> skip_while { _ le "m" } |> e p
# sla
sla — python/ruby stdlib builtin. Alias for slice_arr.
my $result = sla $x
# or in a pipeline:
@list |> map sla |> p
# slca
slca — additional missing stdlib functions builtin. Alias for slice_after.
my $result = slca $x
# or in a pipeline:
@list |> map slca |> p
# slcb
slcb — additional missing stdlib functions builtin. Alias for slice_before.
my $result = slcb $x
# or in a pipeline:
@list |> map slcb |> p
# slcw
slcw — additional missing stdlib functions builtin. Alias for slice_when.
my $result = slcw $x
# or in a pipeline:
@list |> map slcw |> p
# slice_after
slice_after — additional missing stdlib functions builtin.
my $result = slice_after $x
# or in a pipeline:
@list |> map slice_after |> p
# slice_arr
slice_arr — python/ruby stdlib builtin.
my $result = slice_arr $x
# or in a pipeline:
@list |> map slice_arr |> p
# slice_before
slice_before — additional missing stdlib functions builtin.
my $result = slice_before $x
# or in a pipeline:
@list |> map slice_before |> p
# slice_when
slice_when — additional missing stdlib functions builtin.
my $result = slice_when $x
# or in a pipeline:
@list |> map slice_when |> p
# sliding_pairs
sliding_pairs — collection more builtin.
my $result = sliding_pairs $x
# or in a pipeline:
@list |> map sliding_pairs |> p
# sliding_window
sliding_window — functional / iterator builtin.
my $result = sliding_window $x
# or in a pipeline:
@list |> map sliding_window |> p
# slope
slope — geometry / physics builtin.
my $result = slope $x
# or in a pipeline:
@list |> map slope |> p
# slug
slug — extended stdlib builtin. Alias for slugify.
my $result = slug $x
# or in a pipeline:
@list |> map slug |> p
# slugify
slugify — extended stdlib builtin.
my $result = slugify $x
# or in a pipeline:
@list |> map slugify |> p
# smap
smap — python/ruby stdlib builtin. Alias for starmap.
my $result = smap $x
# or in a pipeline:
@list |> map smap |> p
# smoothstep
smoothstep($edge0, $edge1, $x) — smooth Hermite interpolation. Returns 0 if x ≤ edge0, 1 if x ≥ edge1, otherwise smooth S-curve. Great for animations.
p smoothstep(0, 1, 0.5) # 0.5 (but with smooth acceleration/deceleration)
p smoothstep(10, 20, 15) # 0.5
# smst
smst — extended stdlib builtin. Alias for smoothstep.
my $result = smst $x
# or in a pipeline:
@list |> map smst |> p
# snake_to_camel
snake_to_camel — string processing (uncategorized batch) builtin.
my $result = snake_to_camel $input
# snd
snd — algebraic match builtin. Alias for second.
my $result = snd $x
# or in a pipeline:
@list |> map snd |> p
# snell
snells_law($n1, $n2, $theta1) (alias snell) — refraction angle using Snell's law. Angles in degrees. Returns undef for total internal reflection.
p snell(1, 1.5, 30) # ~19.5° (air to glass)
p snell(1.5, 1, 45) # undef (total internal reflection)
# socketpair
socketpair — socket builtin.
my $result = socketpair $x
# or in a pipeline:
@list |> map socketpair |> p
# sockets
sockets — filesystem extensions builtin.
my $result = sockets $x
# or in a pipeline:
@list |> map sockets |> p
# sod
sod — extended stdlib builtin. Alias for start_of_day.
my $result = sod $x
# or in a pipeline:
@list |> map sod |> p
# softmax
softmax — functional combinators builtin.
my $result = softmax $x
# or in a pipeline:
@list |> map softmax |> p
# softplus
softplus applies the Softplus activation: ln(1 + e^x). Smooth approximation to ReLU.
p softplus(0) # 0.6931 (ln 2)
p softplus(10) # ≈ 10
# soh
soh — extended stdlib builtin. Alias for start_of_hour.
my $result = soh $x
# or in a pipeline:
@list |> map soh |> p
# sol
sol — constants builtin.
my $result = sol $x
# or in a pipeline:
@list |> map sol |> p
# sole
sole — ruby enumerable extras builtin.
my $result = sole $x
# or in a pipeline:
@list |> map sole |> p
# som
som — extended stdlib builtin. Alias for start_of_minute.
my $result = som $x
# or in a pipeline:
@list |> map som |> p
# some
some — algebraic match builtin.
my $result = some $x
# or in a pipeline:
@list |> map some |> p
# sort_by
sort_by — functional / iterator builtin.
my $result = sort_by $x
# or in a pipeline:
@list |> map sort_by |> p
# sort_on
sort_on — haskell list functions builtin.
my $result = sort_on $x
# or in a pipeline:
@list |> map sort_on |> p
# sort_words
sort_words — string processing (uncategorized batch) builtin.
my $result = sort_words $x
# or in a pipeline:
@list |> map sort_words |> p
# sorted
sorted — file stat / path builtin.
my $result = sorted $x
# or in a pipeline:
@list |> map sorted |> p
# sorted_by_length
sorted_by_length — file stat / path builtin.
my $result = sorted_by_length $x
# or in a pipeline:
@list |> map sorted_by_length |> p
# sorted_desc
sorted_desc — file stat / path builtin.
my $result = sorted_desc $x
# or in a pipeline:
@list |> map sorted_desc |> p
# sorted_nums
sorted_nums — file stat / path builtin.
my $result = sorted_nums $x
# or in a pipeline:
@list |> map sorted_nums |> p
# sortino
sortino_ratio(\@returns, $target) (alias sortino) — computes the Sortino ratio, similar to Sharpe but only penalizes downside volatility. Better for asymmetric return distributions.
my @returns = (0.05, -0.02, 0.08, -0.01)
p sortino(\@returns, 0.0) # penalizes only negative returns
# sortw
sortw — string processing (uncategorized batch) builtin. Alias for sort_words.
my $result = sortw $x
# or in a pipeline:
@list |> map sortw |> p
# soundex
soundex — extended stdlib builtin.
my $result = soundex $x
# or in a pipeline:
@list |> map soundex |> p
# spaceship
spaceship — file stat / path builtin.
my $result = spaceship $x
# or in a pipeline:
@list |> map spaceship |> p
# span
span — list helpers (batch 4) builtin.
my $result = span $x
# or in a pipeline:
@list |> map span |> p
# span_fn
span_fn — haskell list functions builtin.
my $result = span_fn $x
# or in a pipeline:
@list |> map span_fn |> p
# spanf
spanf — haskell list functions builtin. Alias for span_fn.
my $result = spanf $x
# or in a pipeline:
@list |> map spanf |> p
# spat
spat — algebraic match builtin. Alias for split_at.
my $result = spat $x
# or in a pipeline:
@list |> map spat |> p
# spbfs
spbfs — extended stdlib builtin. Alias for shortest_path_bfs.
my $result = spbfs $x
# or in a pipeline:
@list |> map spbfs |> p
# spearman
spearman_correlation(\@x, \@y) (alias spearman) — computes Spearman's rank correlation coefficient between two datasets. Measures monotonic relationships, robust to outliers. Returns a value from -1 to 1.
my @x = (1, 2, 3, 4, 5)
my @y = (5, 6, 7, 8, 7)
p spearman(\@x, \@y) # high positive correlation
# spectro
spectro — dsp / signal (extended) builtin. Alias for spectrogram.
my $result = spectro $x
# or in a pipeline:
@list |> map spectro |> p
# spectrogram
spectrogram(\@signal, $window_size, $hop_size) (alias stft) — computes Short-Time Fourier Transform. Returns a 2D arrayref where each row is the spectrum of a windowed segment. Useful for time-frequency analysis.
my $spec = stft(\@audio, 1024, 512)
# $spec->[t][f] is magnitude at time t, frequency f
# speed_distance_time
speed_distance_time — physics formulas builtin.
my $result = speed_distance_time $x
# or in a pipeline:
@list |> map speed_distance_time |> p
# speed_of_light
speed_of_light — math / physics constants builtin.
my $result = speed_of_light $x
# or in a pipeline:
@list |> map speed_of_light |> p
# sphere_surface
sphere_surface — geometry / physics builtin.
my $result = sphere_surface $x
# or in a pipeline:
@list |> map sphere_surface |> p
# sphere_volume
sphere_volume — geometry / physics builtin.
my $result = sphere_volume $x
# or in a pipeline:
@list |> map sphere_volume |> p
# sphsurf
sphsurf — geometry / physics builtin. Alias for sphere_surface.
my $result = sphsurf $x
# or in a pipeline:
@list |> map sphsurf |> p
# sphvol
sphvol — geometry / physics builtin. Alias for sphere_volume.
my $result = sphvol $x
# or in a pipeline:
@list |> map sphvol |> p
# spinner_start
spinner_start — pipeline / string helpers builtin.
my $result = spinner_start $x
# or in a pipeline:
@list |> map spinner_start |> p
# spinner_stop
spinner_stop — pipeline / string helpers builtin.
my $result = spinner_stop $x
# or in a pipeline:
@list |> map spinner_stop |> p
# split_at
split_at — algebraic match builtin.
my $result = split_at $x
# or in a pipeline:
@list |> map split_at |> p
# split_on
split_on — go/general functional utilities builtin.
my $result = split_on $x
# or in a pipeline:
@list |> map split_on |> p
# split_regex
split_regex — extended stdlib builtin.
my $result = split_regex $x
# or in a pipeline:
@list |> map split_regex |> p
# split_with
split_with — algebraic match builtin.
my $result = split_with $x
# or in a pipeline:
@list |> map split_with |> p
# splre
splre — extended stdlib builtin. Alias for split_regex.
my $result = splre $x
# or in a pipeline:
@list |> map splre |> p
# spon
spon — go/general functional utilities builtin. Alias for split_on.
my $result = spon $x
# or in a pipeline:
@list |> map spon |> p
# spring_energy
spring_energy — physics formulas builtin.
my $result = spring_energy $x
# or in a pipeline:
@list |> map spring_energy |> p
# spring_force
spring_force — physics formulas builtin.
my $result = spring_force $x
# or in a pipeline:
@list |> map spring_force |> p
# springpe
springpe — physics formulas builtin. Alias for spring_energy.
my $result = springpe $x
# or in a pipeline:
@list |> map springpe |> p
# spw
spw — algebraic match builtin. Alias for split_with.
my $result = spw $x
# or in a pipeline:
@list |> map spw |> p
# sql
sql — data / network builtin. Alias for sqlite.
my $result = sql $x
# or in a pipeline:
@list |> map sql |> p
# sqr
sqr — trig / math (batch 2) builtin.
my $result = sqr $x
# or in a pipeline:
@list |> map sqr |> p
# sqrt2
sqrt2 — math / physics constants builtin.
my $result = sqrt2 $x
# or in a pipeline:
@list |> map sqrt2 |> p
# sqrt_each
sqrt_each — trivial numeric helpers (batch 4) builtin.
my $result = sqrt_each $x
# or in a pipeline:
@list |> map sqrt_each |> p
# square_each
square_each — trivial numeric helpers (batch 4) builtin.
my $result = square_each $x
# or in a pipeline:
@list |> map square_each |> p
# square_root
square_root — math functions builtin.
my $result = square_root $x
# or in a pipeline:
@list |> map square_root |> p
# squares_seq
squares_seq — sequences builtin.
my $result = squares_seq $x
# or in a pipeline:
@list |> map squares_seq |> p
# squish
squish — trivial string ops builtin.
my $result = squish $x
# or in a pipeline:
@list |> map squish |> p
# srton
srton — haskell list functions builtin. Alias for sort_on.
my $result = srton $x
# or in a pipeline:
@list |> map srton |> p
# stack_new
stack_new — data structure helpers builtin.
my $result = stack_new $x
# or in a pipeline:
@list |> map stack_new |> p
# standard_error
standard_error — math / numeric (uncategorized batch) builtin.
my $result = standard_error $x
# or in a pipeline:
@list |> map standard_error |> p
# starmap
starmap — python/ruby stdlib builtin.
my $result = starmap $x
# or in a pipeline:
@list |> map starmap |> p
# start_of_day
start_of_day — extended stdlib builtin.
my $result = start_of_day $x
# or in a pipeline:
@list |> map start_of_day |> p
# start_of_hour
start_of_hour — extended stdlib builtin.
my $result = start_of_hour $x
# or in a pipeline:
@list |> map start_of_hour |> p
# start_of_minute
start_of_minute — extended stdlib builtin.
my $result = start_of_minute $x
# or in a pipeline:
@list |> map start_of_minute |> p
# starts_with
starts_with — trivial string ops builtin.
my $result = starts_with $x
# or in a pipeline:
@list |> map starts_with |> p
# starts_with_any
starts_with_any — string (batch 2) builtin.
my $result = starts_with_any $x
# or in a pipeline:
@list |> map starts_with_any |> p
# stats_describe
stats_describe — statistics (extended) builtin. Alias for describe.
my $result = stats_describe $x
# or in a pipeline:
@list |> map stats_describe |> p
# stderr_stat
stderr_stat — math / numeric (uncategorized batch) builtin. Alias for standard_error.
my $result = stderr_stat $x
# or in a pipeline:
@list |> map stderr_stat |> p
# stefan_boltzmann
stefan_boltzmann — physics formulas builtin.
my $result = stefan_boltzmann $x
# or in a pipeline:
@list |> map stefan_boltzmann |> p
# stefan_boltzmann_constant
stefan_boltzmann_constant — physics constants builtin.
my $result = stefan_boltzmann_constant $x
# or in a pipeline:
@list |> map stefan_boltzmann_constant |> p
# stefboltz
stefboltz — physics formulas builtin. Alias for stefan_boltzmann.
my $result = stefboltz $x
# or in a pipeline:
@list |> map stefboltz |> p
# step
step — python/ruby stdlib builtin.
my $result = step $x
# or in a pipeline:
@list |> map step |> p
# stirling
stirling — math formulas builtin. Alias for stirling_approx.
my $result = stirling $x
# or in a pipeline:
@list |> map stirling |> p
# stirling2
stirling2 (alias stirling_second) computes the Stirling number of the second kind S(n,k) — the number of ways to partition n elements into k non-empty subsets.
p stirling2(4, 2) # 7
p stirling2(5, 3) # 25
# stirling_approx
stirling_approx — math formulas builtin.
my $result = stirling_approx $x
# or in a pipeline:
@list |> map stirling_approx |> p
# stone_to_kg
stone_to_kg — unit conversions builtin.
my $result = stone_to_kg $input
# strdist
strdist — string processing (uncategorized batch) builtin. Alias for string_distance.
my $result = strdist $x
# or in a pipeline:
@list |> map strdist |> p
# strikethrough
strikethrough — color / ansi builtin. Alias for red.
my $result = strikethrough $x
# or in a pipeline:
@list |> map strikethrough |> p
# string_count
string_count — string helpers (batch 4) builtin.
my $result = string_count $x
# or in a pipeline:
@list |> map string_count |> p
# string_distance
string_distance — string processing (uncategorized batch) builtin.
my $result = string_distance $x
# or in a pipeline:
@list |> map string_distance |> p
# string_multiply
string_multiply — string processing (uncategorized batch) builtin.
my $result = string_multiply $x
# or in a pipeline:
@list |> map string_multiply |> p
# string_sort
string_sort — string helpers (batch 4) builtin.
my $result = string_sort $x
# or in a pipeline:
@list |> map string_sort |> p
# string_to_chars
string_to_chars — string helpers (batch 4) builtin.
my $result = string_to_chars $input
# string_unique_chars
string_unique_chars — string helpers (batch 4) builtin.
my $result = string_unique_chars $x
# or in a pipeline:
@list |> map string_unique_chars |> p
# strip_ansi
strip_ansi — color / ansi builtin.
my $result = strip_ansi $x
# or in a pipeline:
@list |> map strip_ansi |> p
# strip_html
strip_html — string processing (uncategorized batch) builtin.
my $result = strip_html $x
# or in a pipeline:
@list |> map strip_html |> p
# strip_prefix
strip_prefix — path helpers builtin.
my $result = strip_prefix $x
# or in a pipeline:
@list |> map strip_prefix |> p
# strip_suffix
strip_suffix — path helpers builtin.
my $result = strip_suffix $x
# or in a pipeline:
@list |> map strip_suffix |> p
# strmul
strmul — string processing (uncategorized batch) builtin. Alias for string_multiply.
my $result = strmul $x
# or in a pipeline:
@list |> map strmul |> p
# student_pdf
t_pdf (alias tpdf) evaluates Student's t-distribution PDF at x with nu degrees of freedom.
p tpdf(0, 10) # peak of t(10)
p tpdf(2.228, 10)
# sub
The sub keyword is not supported in stryke. Use fn instead to define functions.
# sub_script
sub_script — encoding / phonetics builtin. Alias for subscript.
my $result = sub_script $x
# or in a pipeline:
@list |> map sub_script |> p
# subfact
subfact — math / numeric (uncategorized batch) builtin. Alias for subfactorial.
my $result = subfact $x
# or in a pipeline:
@list |> map subfact |> p
# subfactorial
subfactorial — math / numeric (uncategorized batch) builtin.
my $result = subfactorial $x
# or in a pipeline:
@list |> map subfactorial |> p
# subscript
subscript — encoding / phonetics builtin.
my $result = subscript $x
# or in a pipeline:
@list |> map subscript |> p
# subseqs
subseqs — additional missing stdlib functions builtin. Alias for subsequences.
my $result = subseqs $x
# or in a pipeline:
@list |> map subseqs |> p
# subsequences
subsequences — additional missing stdlib functions builtin.
my $result = subsequences $x
# or in a pipeline:
@list |> map subsequences |> p
# substring
substring — string helpers (batch 4) builtin.
my $result = substring $x
# or in a pipeline:
@list |> map substring |> p
# succ
succ — conversion / utility (batch 4) builtin.
my $result = succ $x
# or in a pipeline:
@list |> map succ |> p
# suffix_sums
suffix_sums — list helpers (batch 4) builtin.
my $result = suffix_sums $x
# or in a pipeline:
@list |> map suffix_sums |> p
# sum_by
sum_by — python/ruby stdlib builtin.
my $result = sum_by $x
# or in a pipeline:
@list |> map sum_by |> p
# sum_divisors
sum_divisors — math / numeric (uncategorized batch) builtin.
my $result = sum_divisors $x
# or in a pipeline:
@list |> map sum_divisors |> p
# sum_list
sum_list — list helpers (batch 4) builtin.
my $result = sum_list $x
# or in a pipeline:
@list |> map sum_list |> p
# sum_of
sum_of — more list helpers builtin.
my $result = sum_of $x
# or in a pipeline:
@list |> map sum_of |> p
# sum_squares
sum_squares — extended stdlib builtin.
my $result = sum_squares $x
# or in a pipeline:
@list |> map sum_squares |> p
# sumb
sumb — python/ruby stdlib builtin. Alias for sum_by.
my $result = sumb $x
# or in a pipeline:
@list |> map sumb |> p
# sumsq
sumsq — extended stdlib builtin. Alias for sum_squares.
my $result = sumsq $x
# or in a pipeline:
@list |> map sumsq |> p
# sun_radius
sun_radius — physics constants builtin.
my $result = sun_radius $x
# or in a pipeline:
@list |> map sun_radius |> p
# sup
sup — encoding / phonetics builtin. Alias for superscript.
my $result = sup $x
# or in a pipeline:
@list |> map sup |> p
# supergolden
supergolden — math constants builtin. Alias for supergolden_ratio.
my $result = supergolden $x
# or in a pipeline:
@list |> map supergolden |> p
# supergolden_ratio
supergolden_ratio — math constants builtin.
my $result = supergolden_ratio $x
# or in a pipeline:
@list |> map supergolden_ratio |> p
# superscript
superscript — encoding / phonetics builtin.
my $result = superscript $x
# or in a pipeline:
@list |> map superscript |> p
# sw
sw — trivial string ops builtin. Alias for starts_with.
my $result = sw $x
# or in a pipeline:
@list |> map sw |> p
# swap_case
swap_case — trivial string ops builtin.
my $result = swap_case $x
# or in a pipeline:
@list |> map swap_case |> p
# swap_free
swap_free — free swap space in bytes.
p format_bytes(swap_free)
my $pct = swap_total > 0 ? int(swap_free / swap_total * 100) : 100
p "$pct% swap free"
# swap_pairs
swap_pairs — collection helpers (trivial) builtin.
my $result = swap_pairs $x
# or in a pipeline:
@list |> map swap_pairs |> p
# swap_total
swap_total — total swap space in bytes. Linux: /proc/meminfo SwapTotal. macOS: vm.swapusage sysctl. Returns 0 if swap is disabled, undef on unsupported platforms.
p swap_total # 8589934592
p format_bytes(swap_total) # 8.0 GiB
# swap_used
swap_used — used swap space in bytes (total - free).
p format_bytes(swap_used)
p "swap pressure" if swap_used > swap_total * 0.8
# sym_links
sym_links — filesystem extensions builtin.
my $result = sym_links $x
# or in a pipeline:
@list |> map sym_links |> p
# symmetric_diff
symmetric_diff — collection (batch 2) builtin.
my $result = symmetric_diff $x
# or in a pipeline:
@list |> map symmetric_diff |> p
# sys_uptime
sys_uptime — system uptime in seconds (float). On Linux reads /proc/uptime. On macOS uses kern.boottime sysctl. This is the wall-clock uptime of the machine, not the stryke process (see uptime_secs for process uptime).
p sys_uptime # 147951.5
my $days = int(sys_uptime / 86400)
p "up $days days"
# t_test_one_sample
t_test_one_sample($mu, @sample) (alias ttest1) — performs a one-sample t-test comparing a sample mean against a hypothesized population mean mu. Returns [t_statistic, degrees_of_freedom]. Use t-distribution tables for p-value lookup.
my @sample = (5.1, 4.9, 5.2, 5.0, 4.8)
my $result = ttest1(5.0, @sample)
p "t=$result->[0] df=$result->[1]"
# t_test_two_sample
t_test_two_sample(\@a, \@b) (alias ttest2) — performs an independent two-sample t-test comparing means of two samples. Assumes equal variances. Returns [t_statistic, degrees_of_freedom].
my @a = (5.1, 5.3, 4.9)
my @b = (4.2, 4.5, 4.1)
my $r = ttest2(\@a, \@b)
p "t=$r->[0] df=$r->[1]"
# tabulate
tabulate — frequency table of values. Returns hash of value => count. Like R's table().
my %t = %{tabulate([qw(a b a c b a)])}
p $t{a} # 3
# tail_lines
tail_lines — file stat / path builtin.
my $result = tail_lines $x
# or in a pipeline:
@list |> map tail_lines |> p
# tail_n
tail_n — list helpers (batch 4) builtin.
my $result = tail_n $x
# or in a pipeline:
@list |> map tail_n |> p
# tail_str
tail_str — string (batch 2) builtin. Alias for right_str.
my $result = tail_str $x
# or in a pipeline:
@list |> map tail_str |> p
# tails
tails — additional missing stdlib functions builtin.
my $result = tails $x
# or in a pipeline:
@list |> map tails |> p
# take_every
take_every — list helpers (batch 4) builtin.
my $result = take_every $x
# or in a pipeline:
@list |> map take_every |> p
# take_last
take_last — file stat / path builtin.
my $result = take_last $x
# or in a pipeline:
@list |> map take_last |> p
# take_n
take_n — collection helpers (trivial) builtin.
my $result = take_n $x
# or in a pipeline:
@list |> map take_n |> p
# talb
talb — ruby enumerable extras builtin. Alias for tally_by.
my $result = talb $x
# or in a pipeline:
@list |> map talb |> p
# tally_by
tally_by — ruby enumerable extras builtin.
my $result = tally_by $x
# or in a pipeline:
@list |> map tally_by |> p
# tan
tan — trig / math (batch 2) builtin.
my $result = tan $x
# or in a pipeline:
@list |> map tan |> p
# tanh
tanh — trig / math (batch 2) builtin.
my $result = tanh $x
# or in a pipeline:
@list |> map tanh |> p
# tap_debug
tap_debug — conversion / utility (batch 4) builtin.
my $result = tap_debug $x
# or in a pipeline:
@list |> map tap_debug |> p
# tap_val
tap_val — functional combinators builtin.
my $result = tap_val $x
# or in a pipeline:
@list |> map tap_val |> p
# tapply
tapply — apply a function by group. Takes data, group labels, and function. Returns hash. Like R's tapply().
my %means = %{tapply([1,2,3,4], ["a","a","b","b"], fn { avg(@{$_[0]}) })}
p $means{a} # 1.5
p $means{b} # 3.5
# tau
tau — constants builtin.
my $result = tau $x
# or in a pipeline:
@list |> map tau |> p
# tax
tax — finance builtin.
my $result = tax $x
# or in a pipeline:
@list |> map tax |> p
# tax_amount
tax_amount — physics formulas builtin.
my $result = tax_amount $x
# or in a pipeline:
@list |> map tax_amount |> p
# tcrossprod
tcrossprod — M * t(M) (R's tcrossprod).
my $aat = tcrossprod([[1,2],[3,4]]) # [[5,11],[11,25]]
# td
td — serialization (stryke-only encoders) builtin. Alias for toml_decode.
my $result = td $x
# or in a pipeline:
@list |> map td |> p
# tdilate
time_dilation($proper_time, $velocity) (alias tdilate) — dilated time Δt = Δt₀ × γ. Time appears to slow for moving objects.
p tdilate(1, 0.99 * 3e8) # ~7.09 s (1 second at 99% c)
# te
te — serialization (stryke-only encoders) builtin. Alias for toml_encode.
my $result = te $x
# or in a pipeline:
@list |> map te |> p
# tee_iter
tee_iter — python/ruby stdlib builtin.
my $result = tee_iter $x
# or in a pipeline:
@list |> map tee_iter |> p
# teei
teei — python/ruby stdlib builtin. Alias for tee_iter.
my $result = teei $x
# or in a pipeline:
@list |> map teei |> p
# temp_dir
temp_dir — system introspection builtin.
my $result = temp_dir $x
# or in a pipeline:
@list |> map temp_dir |> p
# tempplanck
tempplanck — physics constants builtin. Alias for planck_temperature.
my $result = tempplanck $x
# or in a pipeline:
@list |> map tempplanck |> p
# text_after
text_after — extended stdlib builtin.
my $result = text_after $x
# or in a pipeline:
@list |> map text_after |> p
# text_after_last
text_after_last — extended stdlib builtin.
my $result = text_after_last $x
# or in a pipeline:
@list |> map text_after_last |> p
# text_before
text_before — extended stdlib builtin.
my $result = text_before $x
# or in a pipeline:
@list |> map text_before |> p
# text_before_last
text_before_last — extended stdlib builtin.
my $result = text_before_last $x
# or in a pipeline:
@list |> map text_before_last |> p
# text_between
text_between — extended stdlib builtin.
my $result = text_between $x
# or in a pipeline:
@list |> map text_between |> p
# tfld
tfld — rust iterator methods builtin. Alias for try_fold.
my $result = tfld $x
# or in a pipeline:
@list |> map tfld |> p
# then_fn
then_fn — python/ruby stdlib builtin.
my $result = then_fn $x
# or in a pipeline:
@list |> map then_fn |> p
# thfn
thfn — python/ruby stdlib builtin. Alias for then_fn.
my $result = thfn $x
# or in a pipeline:
@list |> map thfn |> p
# thin_lens
thin_lens($object_dist, $focal_length) (alias thinlens) — image distance using 1/f = 1/do + 1/di.
p thinlens(30, 20) # 60 cm (real image)
p thinlens(10, 20) # -20 cm (virtual image)
# third_elem
third_elem — list helpers (batch 4) builtin.
my $result = third_elem $x
# or in a pipeline:
@list |> map third_elem |> p
# tied
tied — type / reflection builtin.
my $result = tied $x
# or in a pipeline:
@list |> map tied |> p
# times_fn
times_fn — python/ruby stdlib builtin.
my $result = times_fn $x
# or in a pipeline:
@list |> map times_fn |> p
# timf
timf — python/ruby stdlib builtin. Alias for times_fn.
my $result = timf $x
# or in a pipeline:
@list |> map timf |> p
# tip
tip — finance builtin.
my $result = tip $x
# or in a pipeline:
@list |> map tip |> p
# tip_amount
tip_amount — physics formulas builtin.
my $result = tip_amount $x
# or in a pipeline:
@list |> map tip_amount |> p
# title
title — trivial string ops builtin. Alias for title_case.
my $result = title $x
# or in a pipeline:
@list |> map title |> p
# title_case
title_case — trivial string ops builtin.
my $result = title_case $x
# or in a pipeline:
@list |> map title_case |> p
# tkeys
tkeys — python/ruby stdlib builtin. Alias for transform_keys.
my $result = tkeys $x
# or in a pipeline:
@list |> map tkeys |> p
# to_array
to_array — list helpers (batch 4) builtin.
my $result = to_array $input
# to_ascii
to_ascii — extended stdlib builtin.
my $result = to_ascii $input
# to_base
to_base — base conversion builtin.
my $result = to_base $input
# to_bin
to_bin — base conversion builtin.
my $result = to_bin $input
# to_bool
to_bool — conversion / utility (batch 4) builtin.
my $result = to_bool $input
# to_csv_line
to_csv_line — string helpers (batch 4) builtin.
my $result = to_csv_line $input
# to_emoji_num
to_emoji_num — encoding / phonetics builtin.
my $result = to_emoji_num $input
# to_float
to_float — conversion / utility (batch 4) builtin.
my $result = to_float $input
# to_float_each
to_float_each — trivial numeric helpers (batch 4) builtin.
my $result = to_float_each $input
# to_hash
to_hash LIST — collect a flat list of key-value pairs into a Perl hash.
The list is consumed two elements at a time: odd-positioned elements become keys and even-positioned elements become values. If there is an odd number of elements, the last key maps to undef. This is a terminal operation that materializes the full stream. Useful for converting pipeline output into a lookup table.
my %h = qw(a 1 b 2) |> to_hash
@pairs |> to_hash
my %freq = @words |> map { _, 1 } |> to_hash
# to_hex
to_hex — base conversion builtin.
my $result = to_hex $input
# to_int
to_int — conversion / utility (batch 4) builtin.
my $result = to_int $input
# to_int_each
to_int_each — trivial numeric helpers (batch 4) builtin.
my $result = to_int_each $input
# to_oct
to_oct — base conversion builtin.
my $result = to_oct $input
# to_pairs
to_pairs — list helpers (batch 4) builtin.
my $result = to_pairs $input
# to_reversed
to_reversed — javascript array/object methods builtin.
my $result = to_reversed $input
# to_set
to_set LIST — collect a list or iterator into a set object with O(1) membership testing.
The resulting set contains only unique elements (duplicates are discarded). This is a terminal operation that materializes the full stream. The returned set supports ->contains($val), ->union($other), ->intersection($other), and ->difference($other). Use this when you need fast repeated lookups against a collection of values.
my $s = 1:5 |> to_set
@words |> to_set # deduplicated set
my $allowed = to_set @whitelist
p $allowed->contains("foo")
# to_sorted
to_sorted — javascript array/object methods builtin.
my $result = to_sorted $input
# to_spliced
to_spliced — javascript array/object methods builtin.
my $result = to_spliced $input
# to_string
to_string — conversion / utility (batch 4) builtin.
my $result = to_string $input
# to_string_val
to_string_val — misc / utility builtin.
my $result = to_string_val $input
# toasc
toasc — extended stdlib builtin. Alias for to_ascii.
my $result = toasc $x
# or in a pipeline:
@list |> map toasc |> p
# today
today — date (batch 2) builtin.
my $result = today $x
# or in a pipeline:
@list |> map today |> p
# token
token — id helpers builtin.
my $result = token $x
# or in a pipeline:
@list |> map token |> p
# tomorrow
tomorrow — date (batch 2) builtin.
my $result = tomorrow $x
# or in a pipeline:
@list |> map tomorrow |> p
# top
top — pipeline / string helpers builtin.
my $result = top $x
# or in a pipeline:
@list |> map top |> p
# topological_sort
topological_sort — extended stdlib builtin.
my $result = topological_sort $x
# or in a pipeline:
@list |> map topological_sort |> p
# toposort
toposort — extended stdlib builtin. Alias for topological_sort.
my $result = toposort $x
# or in a pipeline:
@list |> map toposort |> p
# torque
torque($force, $lever_arm, $angle) — compute torque τ = r×F×sin(θ) (N⋅m). Angle in degrees, default 90.
p torque(50, 0.5) # 25 N⋅m (perpendicular force)
p torque(50, 0.5, 30) # 12.5 N⋅m
# torus_surface
torus_surface($major_r, $minor_r) — computes the surface area of a torus. Returns 4π²Rr.
p torus_surface(10, 2) # ~789.6
# torus_volume
torus_volume($major_r, $minor_r) — computes the volume of a torus with major radius R (center to tube center) and minor radius r (tube radius). Returns 2π²Rr².
p torus_volume(10, 2) # ~789.6
# torussurf
torussurf — geometry (extended) builtin. Alias for torus_surface.
my $result = torussurf $x
# or in a pipeline:
@list |> map torussurf |> p
# torusvol
torusvol — geometry (extended) builtin. Alias for torus_volume.
my $result = torusvol $x
# or in a pipeline:
@list |> map torusvol |> p
# totient_sum
totient_sum — math / numeric (uncategorized batch) builtin.
my $result = totient_sum $x
# or in a pipeline:
@list |> map totient_sum |> p
# totsum
totsum — math / numeric (uncategorized batch) builtin. Alias for totient_sum.
my $result = totsum $x
# or in a pipeline:
@list |> map totsum |> p
# touch
touch — filesystem extensions builtin.
my $result = touch $x
# or in a pipeline:
@list |> map touch |> p
# tower_of_hanoi
tower_of_hanoi — algorithms / puzzles builtin.
my $result = tower_of_hanoi $x
# or in a pipeline:
@list |> map tower_of_hanoi |> p
# tplanck
tplanck — physics constants builtin. Alias for planck_time.
my $result = tplanck $x
# or in a pipeline:
@list |> map tplanck |> p
# trailing_zeros
trailing_zeros — base conversion builtin.
my $result = trailing_zeros $x
# or in a pipeline:
@list |> map trailing_zeros |> p
# transform_keys
transform_keys — python/ruby stdlib builtin.
my $result = transform_keys $x
# or in a pipeline:
@list |> map transform_keys |> p
# transform_values
transform_values — python/ruby stdlib builtin.
my $result = transform_values $x
# or in a pipeline:
@list |> map transform_values |> p
# translate_point
translate_point($x, $y, $dx, $dy) — translates a 2D point by offset (dx, dy). Returns [$x+$dx, $y+$dy]. Basic vector addition.
my $p = translate_point(1, 2, 3, 4)
p @$p # (4, 6)
# transpose
transpose — collection more builtin.
my $result = transpose $x
# or in a pipeline:
@list |> map transpose |> p
# transpt
transpt — geometry (extended) builtin. Alias for translate_point.
my $result = transpt $x
# or in a pipeline:
@list |> map transpt |> p
# trapezoid
trapz (alias trapezoid) integrates evenly-spaced samples using the trapezoidal rule. Optional dx (default 1).
my @y = map { _ ** 2 } 0:100
p trapz(\@y, 0.01) # ≈ 0.3333
# trev
trev — javascript array/object methods builtin. Alias for to_reversed.
my $result = trev $x
# or in a pipeline:
@list |> map trev |> p
# triangle_hypotenuse
triangle_hypotenuse — geometry / physics builtin.
my $result = triangle_hypotenuse $x
# or in a pipeline:
@list |> map triangle_hypotenuse |> p
# triangular_number
triangular_number — number theory / primes builtin.
my $result = triangular_number $x
# or in a pipeline:
@list |> map triangular_number |> p
# triangular_seq
triangular_seq — sequences builtin.
my $result = triangular_seq $x
# or in a pipeline:
@list |> map triangular_seq |> p
# trib
trib — math / numeric (uncategorized batch) builtin. Alias for tribonacci.
my $result = trib $x
# or in a pipeline:
@list |> map trib |> p
# tribonacci
tribonacci — math / numeric (uncategorized batch) builtin.
my $result = tribonacci $x
# or in a pipeline:
@list |> map tribonacci |> p
# trigram
trigram — string processing (uncategorized batch) builtin. Alias for trigrams.
my $result = trigram $x
# or in a pipeline:
@list |> map trigram |> p
# trigrams
trigrams — string processing (uncategorized batch) builtin.
my $result = trigrams $x
# or in a pipeline:
@list |> map trigrams |> p
# trim_each
trim_each — trivial numeric helpers (batch 4) builtin.
my $result = trim_each $x
# or in a pipeline:
@list |> map trim_each |> p
# trim_left
trim_left — string helpers (batch 4) builtin.
my $result = trim_left $x
# or in a pipeline:
@list |> map trim_left |> p
# trim_right
trim_right — string helpers (batch 4) builtin.
my $result = trim_right $x
# or in a pipeline:
@list |> map trim_right |> p
# trimmed_mean
trimmed_mean — list helpers (batch 4) builtin.
my $result = trimmed_mean $x
# or in a pipeline:
@list |> map trimmed_mean |> p
# trinum
trinum — number theory / primes builtin. Alias for triangular_number.
my $result = trinum $x
# or in a pipeline:
@list |> map trinum |> p
# triple
triple — trivial numeric / predicate builtins builtin.
my $result = triple $x
# or in a pipeline:
@list |> map triple |> p
# trunc
trunc — trivial numeric / predicate builtins builtin.
my $result = trunc $x
# or in a pipeline:
@list |> map trunc |> p
# truncate_at
truncate_at — trivial string ops builtin.
my $result = truncate_at $x
# or in a pipeline:
@list |> map truncate_at |> p
# truncn
truncn — trivial numeric / predicate builtins builtin. Alias for trunc.
my $result = truncn $x
# or in a pipeline:
@list |> map truncn |> p
# truth_table
truth_table — algorithms / puzzles builtin.
my $result = truth_table $x
# or in a pipeline:
@list |> map truth_table |> p
# truthy_count
truthy_count — counters (batch 4) builtin.
my $result = truthy_count $x
# or in a pipeline:
@list |> map truthy_count |> p
# try_fn
try_fn — functional combinators builtin.
my $result = try_fn $x
# or in a pipeline:
@list |> map try_fn |> p
# try_fold
try_fold — rust iterator methods builtin.
my $result = try_fold $x
# or in a pipeline:
@list |> map try_fold |> p
# tspl
tspl — javascript array/object methods builtin. Alias for to_spliced.
my $result = tspl $x
# or in a pipeline:
@list |> map tspl |> p
# tsrt
tsrt — javascript array/object methods builtin. Alias for to_sorted.
my $result = tsrt $x
# or in a pipeline:
@list |> map tsrt |> p
# tstr
tstr — misc / utility builtin. Alias for to_string_val.
my $result = tstr $x
# or in a pipeline:
@list |> map tstr |> p
# ttable
ttable — algorithms / puzzles builtin. Alias for truth_table.
my $result = ttable $x
# or in a pipeline:
@list |> map ttable |> p
# tvals
tvals — python/ruby stdlib builtin. Alias for transform_values.
my $result = tvals $x
# or in a pipeline:
@list |> map tvals |> p
# twin_primes
twin_primes — number theory / primes builtin.
my $result = twin_primes $x
# or in a pipeline:
@list |> map twin_primes |> p
# twinp
twinp — number theory / primes builtin. Alias for twin_primes.
my $result = twinp $x
# or in a pipeline:
@list |> map twinp |> p
# txaft
txaft — extended stdlib builtin. Alias for text_after.
my $result = txaft $x
# or in a pipeline:
@list |> map txaft |> p
# txaftl
txaftl — extended stdlib builtin. Alias for text_after_last.
my $result = txaftl $x
# or in a pipeline:
@list |> map txaftl |> p
# txbef
txbef — extended stdlib builtin. Alias for text_before.
my $result = txbef $x
# or in a pipeline:
@list |> map txbef |> p
# txbefl
txbefl — extended stdlib builtin. Alias for text_before_last.
my $result = txbefl $x
# or in a pipeline:
@list |> map txbefl |> p
# txbtwn
txbtwn — extended stdlib builtin. Alias for text_between.
my $result = txbtwn $x
# or in a pipeline:
@list |> map txbtwn |> p
# type_each
type_each — trivial numeric helpers (batch 4) builtin.
my $result = type_each $x
# or in a pipeline:
@list |> map type_each |> p
# type_of
type_of — misc / utility builtin.
my $result = type_of $x
# or in a pipeline:
@list |> map type_of |> p
# typeof
typeof — misc / utility builtin. Alias for type_of.
my $result = typeof $x
# or in a pipeline:
@list |> map typeof |> p
# tz
tz — base conversion builtin. Alias for trailing_zeros.
my $result = tz $x
# or in a pipeline:
@list |> map tz |> p
# ubound
ubound — extended stdlib builtin. Alias for upper_bound.
my $result = ubound $x
# or in a pipeline:
@list |> map ubound |> p
# ud
ud — crypto / encoding builtin. Alias for url_decode.
my $result = ud $x
# or in a pipeline:
@list |> map ud |> p
# ue
ue — crypto / encoding builtin. Alias for url_encode.
my $result = ue $x
# or in a pipeline:
@list |> map ue |> p
# ugz
ugz — crypto / encoding builtin. Alias for gunzip.
my $result = ugz $x
# or in a pipeline:
@list |> map ugz |> p
# uid
uid — system introspection builtin.
my $result = uid $x
# or in a pipeline:
@list |> map uid |> p
# uin
uin — algebraic match builtin. Alias for update_in.
my $result = uin $x
# or in a pipeline:
@list |> map uin |> p
# undef_count
undef_count — counters (batch 4) builtin.
my $result = undef_count $x
# or in a pipeline:
@list |> map undef_count |> p
# underline
underline — color / ansi builtin. Alias for red.
my $result = underline $x
# or in a pipeline:
@list |> map underline |> p
# unfold
unfold — functional combinators builtin.
my $result = unfold $x
# or in a pipeline:
@list |> map unfold |> p
# unfoldr
unfoldr — haskell list functions builtin.
my $result = unfoldr $x
# or in a pipeline:
@list |> map unfoldr |> p
# unfr
unfr — haskell list functions builtin. Alias for unfoldr.
my $result = unfr $x
# or in a pipeline:
@list |> map unfr |> p
# union_list
union_list — additional missing stdlib functions builtin.
my $result = union_list $x
# or in a pipeline:
@list |> map union_list |> p
# unionl
unionl — additional missing stdlib functions builtin. Alias for union_list.
my $result = unionl $x
# or in a pipeline:
@list |> map unionl |> p
# uniq_by
uniq_by — python/ruby stdlib builtin.
my $result = uniq_by $x
# or in a pipeline:
@list |> map uniq_by |> p
# unique_count_of
unique_count_of — list helpers (batch 4) builtin.
my $result = unique_count_of $x
# or in a pipeline:
@list |> map unique_count_of |> p
# unique_words
unique_words — string processing (uncategorized batch) builtin.
my $result = unique_words $x
# or in a pipeline:
@list |> map unique_words |> p
# uniqw
uniqw — string processing (uncategorized batch) builtin. Alias for unique_words.
my $result = uniqw $x
# or in a pipeline:
@list |> map uniqw |> p
# unit_vec
unit_vec — matrix / linear algebra builtin. Alias for vec_normalize.
my $result = unit_vec $x
# or in a pipeline:
@list |> map unit_vec |> p
# unix_epoch
unix_epoch — now / timestamp builtin.
my $result = unix_epoch $x
# or in a pipeline:
@list |> map unix_epoch |> p
# unix_epoch_ms
unix_epoch_ms — now / timestamp builtin.
my $result = unix_epoch_ms $x
# or in a pipeline:
@list |> map unix_epoch_ms |> p
# unlines
unlines — go/general functional utilities builtin.
my $result = unlines $x
# or in a pipeline:
@list |> map unlines |> p
# unlns
unlns — go/general functional utilities builtin. Alias for unlines.
my $result = unlns $x
# or in a pipeline:
@list |> map unlns |> p
# unquote
unquote — string quote / escape builtin.
my $result = unquote $x
# or in a pipeline:
@list |> map unquote |> p
# untie
untie — type / reflection builtin.
my $result = untie $x
# or in a pipeline:
@list |> map untie |> p
# unwds
unwds — go/general functional utilities builtin. Alias for unwords.
my $result = unwds $x
# or in a pipeline:
@list |> map unwds |> p
# unwords
unwords — go/general functional utilities builtin.
my $result = unwords $x
# or in a pipeline:
@list |> map unwords |> p
# unzip
unzip — collection more builtin.
my $result = unzip $x
# or in a pipeline:
@list |> map unzip |> p
# unzip_archive
unzip_archive — crypto / encoding builtin. Alias for zip_extract.
my $result = unzip_archive $x
# or in a pipeline:
@list |> map unzip_archive |> p
# unzip_pairs
unzip_pairs — go/general functional utilities builtin.
my $result = unzip_pairs $x
# or in a pipeline:
@list |> map unzip_pairs |> p
# upcase_each
upcase_each — trivial numeric helpers (batch 4) builtin.
my $result = upcase_each $x
# or in a pipeline:
@list |> map upcase_each |> p
# upda
upda — go/general functional utilities builtin. Alias for update_at.
my $result = upda $x
# or in a pipeline:
@list |> map upda |> p
# update_at
update_at — go/general functional utilities builtin.
my $result = update_at $x
# or in a pipeline:
@list |> map update_at |> p
# update_in
update_in — algebraic match builtin.
my $result = update_in $x
# or in a pipeline:
@list |> map update_in |> p
# upper_bound
upper_bound — extended stdlib builtin.
my $result = upper_bound $x
# or in a pipeline:
@list |> map upper_bound |> p
# upper_snake
upper_snake — string (batch 2) builtin. Alias for constant_case.
my $result = upper_snake $x
# or in a pipeline:
@list |> map upper_snake |> p
# uppercase
uppercase — string (batch 2) builtin.
my $result = uppercase $x
# or in a pipeline:
@list |> map uppercase |> p
# upsample
upsample(\@signal, $factor) (alias interpolate) — increases sample rate by inserting zeros and filtering. Factor must be positive integer.
my $upsampled = interpolate(\@signal, 4) # 4x sample rate
# uptime_secs
uptime_secs — more process / system builtin.
my $result = uptime_secs $x
# or in a pipeline:
@list |> map uptime_secs |> p
# upto
upto — python/ruby stdlib builtin.
my $result = upto $x
# or in a pipeline:
@list |> map upto |> p
# uqb
uqb — python/ruby stdlib builtin. Alias for uniq_by.
my $result = uqb $x
# or in a pipeline:
@list |> map uqb |> p
# url_host
url_host — url / email parts builtin.
my $result = url_host $x
# or in a pipeline:
@list |> map url_host |> p
# url_path
url_path — url / email parts builtin.
my $result = url_path $x
# or in a pipeline:
@list |> map url_path |> p
# url_query
url_query — url / email parts builtin.
my $result = url_query $x
# or in a pipeline:
@list |> map url_query |> p
# url_scheme
url_scheme — url / email parts builtin.
my $result = url_scheme $x
# or in a pipeline:
@list |> map url_scheme |> p
# urld
urld — extended stdlib builtin.
my $result = urld $x
# or in a pipeline:
@list |> map urld |> p
# urle
urle — extended stdlib builtin.
my $result = urle $x
# or in a pipeline:
@list |> map urle |> p
# us_to_ns
us_to_ns — file stat / path builtin.
my $result = us_to_ns $input
# usamp
usamp — dsp / signal (extended) builtin. Alias for upsample.
my $result = usamp $x
# or in a pipeline:
@list |> map usamp |> p
# username
username — system introspection builtin.
my $result = username $x
# or in a pipeline:
@list |> map username |> p
# utc
utc — date / time builtin. Alias for datetime_utc.
my $result = utc $x
# or in a pipeline:
@list |> map utc |> p
# uuid_v4
uuid_v4 — id helpers builtin.
my $result = uuid_v4 $x
# or in a pipeline:
@list |> map uuid_v4 |> p
# uzp
uzp — go/general functional utilities builtin. Alias for unzip_pairs.
my $result = uzp $x
# or in a pipeline:
@list |> map uzp |> p
# uzst
uzst — crypto / encoding builtin. Alias for zstd_decode.
my $result = uzst $x
# or in a pipeline:
@list |> map uzst |> p
# vacuum_permeability
vacuum_permeability — physics constants builtin.
my $result = vacuum_permeability $x
# or in a pipeline:
@list |> map vacuum_permeability |> p
# values_at
values_at — python/ruby stdlib builtin.
my $result = values_at $x
# or in a pipeline:
@list |> map values_at |> p
# values_sorted
values_sorted — hash ops (batch 2) builtin.
my $result = values_sorted $x
# or in a pipeline:
@list |> map values_sorted |> p
# vang
vang — geometry (extended) builtin. Alias for vector_angle.
my $result = vang $x
# or in a pipeline:
@list |> map vang |> p
# vat
vat — python/ruby stdlib builtin. Alias for values_at.
my $result = vat $x
# or in a pipeline:
@list |> map vat |> p
# vcross
vector_cross(\@a, \@b) (alias vcross) — computes the cross product of two 3D vectors. Returns a 3-element arrayref perpendicular to both inputs.
my $c = vcross([1,0,0], [0,1,0])
p @$c # (0, 0, 1)
# vdot
vector_dot(\@a, \@b) (alias vdot) — computes the dot product of two vectors. Returns the scalar sum of element-wise products.
p vdot([1,2,3], [4,5,6]) # 32
# vec_add
vec_add — matrix / linear algebra builtin.
my $result = vec_add $x
# or in a pipeline:
@list |> map vec_add |> p
# vec_clj
vec_clj — algebraic match builtin.
my $result = vec_clj $x
# or in a pipeline:
@list |> map vec_clj |> p
# vec_normalize
vec_normalize — matrix / linear algebra builtin.
my $result = vec_normalize $x
# or in a pipeline:
@list |> map vec_normalize |> p
# vec_scale
vec_scale — matrix / linear algebra builtin.
my $result = vec_scale $x
# or in a pipeline:
@list |> map vec_scale |> p
# vec_sub
vec_sub — matrix / linear algebra builtin.
my $result = vec_sub $x
# or in a pipeline:
@list |> map vec_sub |> p
# vecc
vecc — algebraic match builtin. Alias for vec_clj.
my $result = vecc $x
# or in a pipeline:
@list |> map vecc |> p
# vector_angle
vector_angle(\@a, \@b) (alias vangle) — computes the angle in radians between two vectors using the dot product formula.
p vangle([1,0], [0,1]) # ~1.5708 (π/2)
p vangle([1,0], [1,0]) # 0
# vector_magnitude
vector_magnitude(\@v) (alias vmag) — computes the Euclidean length (L2 norm) of a vector.
p vmag([3, 4]) # 5
p vmag([1, 2, 2]) # 3
# vector_normalize
vector_normalize(\@v) (alias vnorm) — returns a unit vector in the same direction. Divides by magnitude.
my $u = vnorm([3, 4])
p @$u # (0.6, 0.8)
# versin
versin — trig extensions builtin.
my $result = versin $x
# or in a pipeline:
@list |> map versin |> p
# versine
versine — trig extensions builtin. Alias for versin.
my $result = versine $x
# or in a pipeline:
@list |> map versine |> p
# version_cmp
version_cmp — file stat / path builtin. Alias for compare_versions.
my $result = version_cmp $x
# or in a pipeline:
@list |> map version_cmp |> p
# void
void — conversion / utility (batch 4) builtin.
my $result = void $x
# or in a pipeline:
@list |> map void |> p
# wacc
wacc($equity, $debt, $cost_equity, $cost_debt, $tax_rate) — computes Weighted Average Cost of Capital. Returns the blended cost of capital accounting for the tax shield on debt.
p wacc(60, 40, 0.10, 0.05, 0.25) # ~7.5%
# watts_to_hp
watts_to_hp — file stat / path builtin.
my $result = watts_to_hp $input
# wavelength_freq
wavelength_freq — physics formulas builtin.
my $result = wavelength_freq $x
# or in a pipeline:
@list |> map wavelength_freq |> p
# wc
wc — trivial string ops builtin. Alias for word_count.
my $result = wc $x
# or in a pipeline:
@list |> map wc |> p
# wcount
wcount — extended stdlib batch 3 builtin. Alias for count_words.
my $result = wcount $x
# or in a pipeline:
@list |> map wcount |> p
# week_of_year
week_of_year — extended stdlib batch 3 builtin.
my $result = week_of_year $x
# or in a pipeline:
@list |> map week_of_year |> p
# weekday_name
weekday_name — date helpers builtin.
my $result = weekday_name $x
# or in a pipeline:
@list |> map weekday_name |> p
# weekday_short
weekday_short — date helpers builtin.
my $result = weekday_short $x
# or in a pipeline:
@list |> map weekday_short |> p
# weibpdf
weibull_pdf (alias weibpdf) evaluates the Weibull distribution PDF at x with shape k and scale lambda.
p weibpdf(1.0, 1.5, 1.0)
# weighted_mean
weighted_mean — math / numeric (uncategorized batch) builtin.
my $result = weighted_mean $x
# or in a pipeline:
@list |> map weighted_mean |> p
# weighted_sample
weighted_sample — extended stdlib builtin.
my $result = weighted_sample $x
# or in a pipeline:
@list |> map weighted_sample |> p
# weighted_var
weighted_var — weighted variance. Args: values, weights.
p wvar([1,2,3,4], [1,1,1,1]) # same as var
# welch_ttest
welch_ttest (alias welcht) performs Welch's t-test for two independent samples with unequal variances. Returns [t-statistic, degrees of freedom].
my ($t, $df) = @{welcht([1,2,3,4,5], [3,4,5,6,7])}
p "t=$t df=$df"
# wfrm
wfrm — go/general functional utilities builtin. Alias for words_from.
my $result = wfrm $x
# or in a pipeline:
@list |> map wfrm |> p
# wh
wh — filesystem extensions builtin. Alias for which.
my $result = wh $x
# or in a pipeline:
@list |> map wh |> p
# wha
Return a list of all absolute paths matching the given command name across every directory in PATH, not just the first match. The short alias wha keeps things concise. This is useful for detecting shadowed executables or auditing which versions of a tool are installed.
my @all = which_all("python3")
@all |> e p # /usr/local/bin/python3
# /usr/bin/python3
p scalar wha("perl") # number of perls on PATH
# when_false
when_false — functional combinators builtin.
my $result = when_false $x
# or in a pipeline:
@list |> map when_false |> p
# when_true
when_true — functional combinators builtin.
my $result = when_true $x
# or in a pipeline:
@list |> map when_true |> p
# which_fn
which_fn — return indices where a predicate is true. Like R's which().
my @idx = @{which_fn([1,5,3,8,2], fn { $_[0] > 3 })} # [1, 3]
# white
white — color / ansi builtin. Alias for red.
my $result = white $x
# or in a pipeline:
@list |> map white |> p
# white_bold
white_bold — color / ansi builtin. Alias for red.
my $result = white_bold $x
# or in a pipeline:
@list |> map white_bold |> p
# wien
wien — physics formulas builtin. Alias for wien_displacement.
my $result = wien $x
# or in a pipeline:
@list |> map wien |> p
# wien_constant
wien_constant — physics constants builtin.
my $result = wien_constant $x
# or in a pipeline:
@list |> map wien_constant |> p
# wien_displacement
wien_displacement — physics formulas builtin.
my $result = wien_displacement $x
# or in a pipeline:
@list |> map wien_displacement |> p
# wincirc
wincirc — additional missing stdlib functions builtin. Alias for windowed_circular.
my $result = wincirc $x
# or in a pipeline:
@list |> map wincirc |> p
# wind_chill
wind_chill — physics formulas builtin.
my $result = wind_chill $x
# or in a pipeline:
@list |> map wind_chill |> p
# window_n
window_n — go/general functional utilities builtin.
my $result = window_n $x
# or in a pipeline:
@list |> map window_n |> p
# windowed_circular
windowed_circular — additional missing stdlib functions builtin.
my $result = windowed_circular $x
# or in a pipeline:
@list |> map windowed_circular |> p
# winn
winn — go/general functional utilities builtin. Alias for window_n.
my $result = winn $x
# or in a pipeline:
@list |> map winn |> p
# winsor
winsor — math / numeric (uncategorized batch) builtin. Alias for winsorize.
my $result = winsor $x
# or in a pipeline:
@list |> map winsor |> p
# winsorize
winsorize — math / numeric (uncategorized batch) builtin.
my $result = winsorize $x
# or in a pipeline:
@list |> map winsorize |> p
# without
without — file stat / path builtin.
my $result = without $x
# or in a pipeline:
@list |> map without |> p
# without_nth
without_nth — file stat / path builtin.
my $result = without_nth $x
# or in a pipeline:
@list |> map without_nth |> p
# wmean
wmean — math / numeric (uncategorized batch) builtin. Alias for weighted_mean.
my $result = wmean $x
# or in a pipeline:
@list |> map wmean |> p
# word_count
word_count — trivial string ops builtin.
my $result = word_count $x
# or in a pipeline:
@list |> map word_count |> p
# word_frequencies
word_frequencies — string processing (uncategorized batch) builtin.
my $result = word_frequencies $x
# or in a pipeline:
@list |> map word_frequencies |> p
# word_wrap_text
word_wrap_text — extended stdlib builtin.
my $result = word_wrap_text $x
# or in a pipeline:
@list |> map word_wrap_text |> p
# wordfreq
wordfreq — string processing (uncategorized batch) builtin. Alias for word_frequencies.
my $result = wordfreq $x
# or in a pipeline:
@list |> map wordfreq |> p
# words_from
words_from — go/general functional utilities builtin.
my $result = words_from $x
# or in a pipeline:
@list |> map words_from |> p
# work
work($force, $distance, $angle) — compute work W = F×d×cos(θ) (Joules). Angle in degrees, default 0.
p work(100, 10) # 1000 J (force parallel to motion)
p work(100, 10, 60) # 500 J (force at 60°)
# woy
woy — extended stdlib batch 3 builtin. Alias for week_of_year.
my $result = woy $x
# or in a pipeline:
@list |> map woy |> p
# wrap_around
wrap_around — trig / math (batch 2) builtin.
my $result = wrap_around $x
# or in a pipeline:
@list |> map wrap_around |> p
# wrap_index
wrap_index — list helpers (batch 4) builtin.
my $result = wrap_index $x
# or in a pipeline:
@list |> map wrap_index |> p
# wrap_range
wrap_range — extended stdlib builtin.
my $result = wrap_range $x
# or in a pipeline:
@list |> map wrap_range |> p
# wrap_text
wrap_text — extended stdlib builtin.
my $result = wrap_text $x
# or in a pipeline:
@list |> map wrap_text |> p
# wrprng
wrprng — extended stdlib builtin. Alias for wrap_range.
my $result = wrprng $x
# or in a pipeline:
@list |> map wrprng |> p
# wrpt
wrpt — extended stdlib builtin. Alias for wrap_text.
my $result = wrpt $x
# or in a pipeline:
@list |> map wrpt |> p
# wsamp
wsamp — extended stdlib builtin. Alias for weighted_sample.
my $result = wsamp $x
# or in a pipeline:
@list |> map wsamp |> p
# wwrap
wwrap — extended stdlib builtin. Alias for word_wrap_text.
my $result = wwrap $x
# or in a pipeline:
@list |> map wwrap |> p
# xd
xd — serialization (stryke-only encoders) builtin. Alias for xml_decode.
my $result = xd $x
# or in a pipeline:
@list |> map xd |> p
# xe
xe — serialization (stryke-only encoders) builtin. Alias for xml_encode.
my $result = xe $x
# or in a pipeline:
@list |> map xe |> p
# xentropy
xentropy — math / numeric (uncategorized batch) builtin. Alias for cross_entropy.
my $result = xentropy $x
# or in a pipeline:
@list |> map xentropy |> p
# xirr
xirr(\@cashflows, \@dates) — computes IRR for irregularly-spaced cash flows. Dates can be epoch timestamps or date strings. More accurate than irr for real-world investments.
my @cf = (-1000, 500, 600)
my @dates = ('2020-01-01', '2020-07-01', '2021-01-01')
p xirr(\@cf, \@dates)
# xor_bool
xor_bool — boolean combinators builtin.
my $result = xor_bool $x
# or in a pipeline:
@list |> map xor_bool |> p
# xor_strings
xor_strings — string helpers (batch 4) builtin.
my $result = xor_strings $x
# or in a pipeline:
@list |> map xor_strings |> p
# yards_to_m
yards_to_m — unit conversions builtin.
my $result = yards_to_m $input
# yd
yd — serialization (stryke-only encoders) builtin. Alias for yaml_decode.
my $result = yd $x
# or in a pipeline:
@list |> map yd |> p
# ye
ye — serialization (stryke-only encoders) builtin. Alias for yaml_encode.
my $result = ye $x
# or in a pipeline:
@list |> map ye |> p
# yellow
yellow — color / ansi builtin. Alias for red.
my $result = yellow $x
# or in a pipeline:
@list |> map yellow |> p
# yellow_bold
yellow_bold — color / ansi builtin. Alias for red.
my $result = yellow_bold $x
# or in a pipeline:
@list |> map yellow_bold |> p
# yesterday
yesterday — date (batch 2) builtin.
my $result = yesterday $x
# or in a pipeline:
@list |> map yesterday |> p
# z_score
z_score($value, $mean, $stddev) — computes the z-score (standard score) of a value given the population mean and standard deviation. Returns how many standard deviations the value is from the mean. Useful for standardizing data and detecting outliers.
my $z = z_score(85, 75, 10)
p $z # 1 (one stddev above mean)
p z_score(50, 60, 5) # -2
# z_scores
z_scores(@data) — computes z-scores for all values in a list, returning an arrayref of standardized values. Each z-score indicates how many standard deviations that value is from the mean of the dataset. Useful for comparing values across different scales.
my @grades = (70, 80, 90)
my $zs = z_scores(@grades)
p @$zs # (-1, 0, 1)
@data |> z_scores |> e p
# zalgo
zalgo — string processing (uncategorized batch) builtin.
my $result = zalgo $x
# or in a pipeline:
@list |> map zalgo |> p
# zall
zall — go/general functional utilities builtin. Alias for zip_all.
my $result = zall $x
# or in a pipeline:
@list |> map zall |> p
# zcross
zcross — matrix operations (uncategorized batch) builtin. Alias for zero_crossings.
my $result = zcross $x
# or in a pipeline:
@list |> map zcross |> p
# zero
zero — trivial numeric / predicate builtins builtin.
my $result = zero $x
# or in a pipeline:
@list |> map zero |> p
# zero_crossings
zero_crossings — matrix operations (uncategorized batch) builtin.
my $result = zero_crossings $x
# or in a pipeline:
@list |> map zero_crossings |> p
# zeros
zeros — matrix / linear algebra builtin.
my $result = zeros $x
# or in a pipeline:
@list |> map zeros |> p
# zeros_mat
zeros_mat — matrix / linear algebra builtin. Alias for zeros_matrix.
my $result = zeros_mat $x
# or in a pipeline:
@list |> map zeros_mat |> p
# zeros_matrix
zeros_matrix — matrix / linear algebra builtin.
my $result = zeros_matrix $x
# or in a pipeline:
@list |> map zeros_matrix |> p
# zfill
zfill — extended stdlib builtin.
my $result = zfill $x
# or in a pipeline:
@list |> map zfill |> p
# zfill_num
zfill_num — extended stdlib builtin.
my $result = zfill_num $x
# or in a pipeline:
@list |> map zfill_num |> p
# zip_all
zip_all — go/general functional utilities builtin.
my $result = zip_all $x
# or in a pipeline:
@list |> map zip_all |> p
# zip_apply
zip_apply — functional combinators builtin.
my $result = zip_apply $x
# or in a pipeline:
@list |> map zip_apply |> p
# zip_archive
zip_archive — crypto / encoding builtin. Alias for zip_create.
my $result = zip_archive $x
# or in a pipeline:
@list |> map zip_archive |> p
# zip_with
zip_with — pipeline / string helpers builtin. Alias for drop.
my $result = zip_with $x
# or in a pipeline:
@list |> map zip_with |> p
# zipl
zipl — python/ruby stdlib builtin. Alias for zip_longest.
my $result = zipl $x
# or in a pipeline:
@list |> map zipl |> p
# zipmap
zipmap — file stat / path builtin.
my $result = zipmap $x
# or in a pipeline:
@list |> map zipmap |> p
# zrlc
zrlc — physics formulas builtin. Alias for impedance_rlc.
my $result = zrlc $x
# or in a pipeline:
@list |> map zrlc |> p
# zscore
zscore — file stat / path builtin.
my $result = zscore $x
# or in a pipeline:
@list |> map zscore |> p
# zscores
zscores — statistics (extended) builtin. Alias for z_scores.
my $result = zscores $x
# or in a pipeline:
@list |> map zscores |> p
# zst
zst — crypto / encoding builtin. Alias for zstd.
my $result = zst $x
# or in a pipeline:
@list |> map zst |> p