Stdlib Gap Analysis (Candidate Missing Functions)
This page lists candidate functions that are common in a "typical" standard
library but are not currently exposed by the machine crates in /machines
or the interpreter stdlib shims in src/interpreter/src/stdlib.
Notes:
This is an inferred gap list, not a strict language spec.
Some categories may be intentionally out-of-scope for Mech.
Names follow Mech-style path naming (
category/function-name) with kebab-case.
String & Text
-------------------------------------------------------------------------------
string/contains
string/starts-with
string/ends-with
string/substring
string/slice-str
string/split
string/split-once
string/split-whitespace
string/split-lines
string/join
string/trim
string/trim-start
string/trim-end
string/replace
string/replacen
string/to-uppercase
string/to-lowercase
string/to-titlecase
string/repeat
string/reverse-str
string/pad-left
string/pad-right
string/pad-center
string/char-at
string/chars
string/bytes
string/len-str
string/is-empty-str
string/is-ascii
string/normalize-unicode
Collections (List/Vector/Map/Set Helpers)
-------------------------------------------------------------------------------
collection/len
collection/is-empty
collection/clear
collection/keys
collection/values
collection/items
collection/get
collection/get-or
collection/has-key
collection/push
collection/pop
collection/shift
collection/unshift
collection/append
collection/extend
collection/concat-lists
collection/first
collection/last
collection/take
collection/drop
collection/filter
collection/map-fn
collection/reduce
collection/fold
collection/any
collection/all
collection/count
collection/unique
collection/sort
collection/sort-by
collection/reverse
collection/find
collection/find-index
collection/group-by
collection/partition
collection/flatten
collection/zip
collection/unzip
collection/enumerate
collection/chunk
Statistics & Numeric Aggregation
-------------------------------------------------------------------------------
stats/sum
stats/product
stats/mean
stats/median
stats/mode
stats/variance
stats/stddev
stats/sample-variance
stats/sample-stddev
stats/quantile
stats/percentile
stats/covariance
stats/correlation
stats/histogram
stats/moving-average
stats/cumulative-sum
stats/cumulative-product
stats/argmax
stats/argmin
stats/clamp
Math (Common Non-Specialized Gaps)
-------------------------------------------------------------------------------
math/signum
math/fract
math/trunc-div
math/gcd
math/lcm
math/is-prime
math/primes-up-to
math/factorial
math/permutations
math/combinations
math/deg2rad
math/rad2deg
math/is-nan
math/is-finite
math/is-infinite
math/lerp
math/remap
math/smoothstep
math/sigmoid
math/relu
-----------------------------------------------------------------------------
time/now
time/today
time/parse-date
time/format-date
time/add-days
time/add-hours
time/diff-days
time/unix-timestamp
time/from-unix-timestamp
time/timezone-convert
-----------------------------------------------------------------------------
random/random
random/random-int
random/random-bool
random/random-range
random/random-choice
random/random-sample
random/shuffle
random/seed-rng
random/normal-random
random/uniform-random
I/O, Serialization, and File System
-------------------------------------------------------------------------------
io/read-file
io/write-file
io/append-file
io/file-exists
io/remove-file
io/rename-file
io/copy-file
io/create-dir
io/remove-dir
io/list-dir
io/read-csv
io/write-csv
io/read-json
io/write-json
io/parse-json
io/to-json
io/parse-yaml
io/to-yaml
io/parse-toml
io/to-toml
-----------------------------------------------------------------------------
net/http-get
net/http-post
net/url-encode
net/url-decode
net/base64-encode
net/base64-decode
net/hex-encode
net/hex-decode
net/sha256
net/hmac
Regex / Pattern Matching Utilities
-------------------------------------------------------------------------------
regex/regex-match
regex/regex-find
regex/regex-replace
regex/glob-match
regex/wildcard-match
Error/Option/Result Utilities
-------------------------------------------------------------------------------
result/option-is-some
result/option-is-none
result/unwrap-or
result/unwrap-or-else
result/expect
result/result-is-ok
result/result-is-err
result/map-err
result/and-then
result/or-else
Concurrency / Reactive Runtime Helpers
-------------------------------------------------------------------------------
runtime/sleep
runtime/debounce
runtime/throttle
runtime/interval
runtime/timeout