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

--

-----------------------------------------------------------------------------

  1. string/contains

  2. string/starts-with

  3. string/ends-with

  4. string/substring

  5. string/slice-str

  6. string/split

  7. string/split-once

  8. string/split-whitespace

  9. string/split-lines

  10. string/join

  11. string/trim

  12. string/trim-start

  13. string/trim-end

  14. string/replace

  15. string/replacen

  16. string/to-uppercase

  17. string/to-lowercase

  18. string/to-titlecase

  19. string/repeat

  20. string/reverse-str

  21. string/pad-left

  22. string/pad-right

  23. string/pad-center

  24. string/char-at

  25. string/chars

  26. string/bytes

  27. string/len-str

  28. string/is-empty-str

  29. string/is-ascii

  30. string/normalize-unicode

Collections (List/Vector/Map/Set Helpers)

--

-----------------------------------------------------------------------------

  1. collection/len

  2. collection/is-empty

  3. collection/clear

  4. collection/keys

  5. collection/values

  6. collection/items

  7. collection/get

  8. collection/get-or

  9. collection/has-key

  10. collection/push

  11. collection/pop

  12. collection/shift

  13. collection/unshift

  14. collection/append

  15. collection/extend

  16. collection/concat-lists

  17. collection/first

  18. collection/last

  19. collection/take

  20. collection/drop

  21. collection/filter

  22. collection/map-fn

  23. collection/reduce

  24. collection/fold

  25. collection/any

  26. collection/all

  27. collection/count

  28. collection/unique

  29. collection/sort

  30. collection/sort-by

  31. collection/reverse

  32. collection/find

  33. collection/find-index

  34. collection/group-by

  35. collection/partition

  36. collection/flatten

  37. collection/zip

  38. collection/unzip

  39. collection/enumerate

  40. collection/chunk

Statistics & Numeric Aggregation

--

-----------------------------------------------------------------------------

  1. stats/sum

  2. stats/product

  3. stats/mean

  4. stats/median

  5. stats/mode

  6. stats/variance

  7. stats/stddev

  8. stats/sample-variance

  9. stats/sample-stddev

  10. stats/quantile

  11. stats/percentile

  12. stats/covariance

  13. stats/correlation

  14. stats/histogram

  15. stats/moving-average

  16. stats/cumulative-sum

  17. stats/cumulative-product

  18. stats/argmax

  19. stats/argmin

  20. stats/clamp

Math (Common Non-Specialized Gaps)

--

-----------------------------------------------------------------------------

  1. math/signum

  2. math/fract

  3. math/trunc-div

  4. math/gcd

  5. math/lcm

  6. math/is-prime

  7. math/primes-up-to

  8. math/factorial

  9. math/permutations

  10. math/combinations

  11. math/deg2rad

  12. math/rad2deg

  13. math/is-nan

  14. math/is-finite

  15. math/is-infinite

  16. math/lerp

  17. math/remap

  18. math/smoothstep

  19. math/sigmoid

  20. math/relu

Date/Time--

-----------------------------------------------------------------------------

  1. time/now

  2. time/today

  3. time/parse-date

  4. time/format-date

  5. time/add-days

  6. time/add-hours

  7. time/diff-days

  8. time/unix-timestamp

  9. time/from-unix-timestamp

  10. time/timezone-convert

Randomness--

-----------------------------------------------------------------------------

  1. random/random

  2. random/random-int

  3. random/random-bool

  4. random/random-range

  5. random/random-choice

  6. random/random-sample

  7. random/shuffle

  8. random/seed-rng

  9. random/normal-random

  10. random/uniform-random

I/O, Serialization, and File System

--

-----------------------------------------------------------------------------

  1. io/read-file

  2. io/write-file

  3. io/append-file

  4. io/file-exists

  5. io/remove-file

  6. io/rename-file

  7. io/copy-file

  8. io/create-dir

  9. io/remove-dir

  10. io/list-dir

  11. io/read-csv

  12. io/write-csv

  13. io/read-json

  14. io/write-json

  15. io/parse-json

  16. io/to-json

  17. io/parse-yaml

  18. io/to-yaml

  19. io/parse-toml

  20. io/to-toml

Networking/Web/Encoding--

-----------------------------------------------------------------------------

  1. net/http-get

  2. net/http-post

  3. net/url-encode

  4. net/url-decode

  5. net/base64-encode

  6. net/base64-decode

  7. net/hex-encode

  8. net/hex-decode

  9. net/sha256

  10. net/hmac

Regex / Pattern Matching Utilities

--

-----------------------------------------------------------------------------

  1. regex/regex-match

  2. regex/regex-find

  3. regex/regex-replace

  4. regex/glob-match

  5. regex/wildcard-match

Error/Option/Result Utilities

--

-----------------------------------------------------------------------------

  1. result/option-is-some

  2. result/option-is-none

  3. result/unwrap-or

  4. result/unwrap-or-else

  5. result/expect

  6. result/result-is-ok

  7. result/result-is-err

  8. result/map-err

  9. result/and-then

  10. result/or-else

Concurrency / Reactive Runtime Helpers

--

-----------------------------------------------------------------------------

  1. runtime/sleep

  2. runtime/debounce

  3. runtime/throttle

  4. runtime/interval

  5. runtime/timeout