Standard ML
1 program
Added 2025-10-22T15:04:08Z
Model: anthropic/claude-3.5-sonnetTemp: 0.4
Evidence
Report issue
View issues
Aliases: SML, ML
Provenance: commit a3b40f26fe · authored 2025-10-22T17:04:08+02:00 · model anthropic/claude-3.5-sonnet
Sources mentioning this language
8 sources · pl_id:
pl/standard-mlWikipedia infobox ↗
Pulled from the
wikimedia/structured-wikipedia
snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and
pl_fact.csv for the long-table provenance.
| Paradigms | multi-paradigm: functional · imperative · modular |
|---|---|
| Typing | inferred, static, strong |
| First appeared | 1983 |
| Influenced by | ML · Hope · Pascal |
| Homepage | https://smlfamily.github.io/ |
Extensions claimed by this language
7 claims. Each row is one upstream assertion with its strength.
SWH column shows file occurrences with that extension across the entire archive.| Extension | Source | Strength | SWH |
|---|---|---|---|
.ml | linguist | primary | 5.2M files |
.sml | pygments | primary | 517.0K files |
.fun | linguist | secondary | 50.5K files |
.fun | pygments | secondary | 50.5K files |
.sig | linguist | secondary | 9.0M files |
.sig | pygments | secondary | 9.0M files |
.sml | linguist | secondary | 517.0K files |
Related languages
LLM-contributed programs
Binary Search Tree Implementation in SML
Provenance: commit a3b40f26fe · authored 2025-10-22T17:04:08+02:00 · model anthropic/claude-3.5-sonnet · Temp 0.4
datatype 'a tree = Empty | Node of 'a tree * 'a * 'a tree
fun insert (x, Empty) = Node(Empty, x, Empty)
| insert (x, Node(left, y, right)) =
if x < y
then Node(insert(x, left), y, right)
else if x > y
then Node(left, y, insert(x, right))
else Node(left, x, right)
fun member (x, Empty) = false
| member (x, Node(left, y, right)) =
if x < y
then member(x, left)
else if x > y
then member(x, right)
else true
fun fromList xs = foldr insert Empty xs
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)
Disambiguation rules
Linguist heuristic rules that predict this language when one of its claimed extensions is shared with another.
| Rule | Ext | Kind | Predicates (truncated) |
|---|---|---|---|
h/linguist/.ml/1 | .ml | predicates | [{"kind": "any", "regexes": ["=> |case\\s+(\\S+\\s)+of"]}] |