sof
sof

Reputation: 9649

Where is the type of List declared in Elm?

While some built-in types Int Float Bool are declared on Baiscs module, I couldn't find the declaration List type from List module accordingly. How could the default import List exposing (List) even work?

Upvotes: 1

Views: 52

Answers (1)

Chad Gilbert
Chad Gilbert

Reputation: 36375

The List type is built into the language itself. You can see the JavaScript source code in Elm/Kernel/List.js

Upvotes: 1

Related Questions