~
Docs
LanguageCoursesUserspaceSystemToolsManualGuidesOverviewReference
GlossaryAgentAmesAPIAquaArmArvoAtomAuraAural ASCIIAzimuthBatteryBehnBowlBridgeBuntCardCaseCaskCellCensuresClaimsClayCold atomCometCommitConsContextCordCoreDelegated SendingDeskDillDocument ProposalDojoDoorDouble-bootDry GateDuctEclipticEntropyEvent LogEyreFaceFactFoo Bar BazGalaxyGallGardenGateGeneratorGiftGlobHD WalletHelmHoodHoonInvite TreeIrisJaelJetKelvin versioningKelvin versioningKeyfileKeywordsKhanKilnLandscapeLegListLoobeanLullMarkMetalsMoldMonadMoonMoveNockNoun~OTA UpdatesPath PrefixPath@pPayloadPeekpHPierPillPlanetPokeProxiesScryReplayFactory ResetRollerNaive rollupsRuneRuntimeSailSampleScrySenateShipSlamSpiderSponsorStarStringSubject Oriented Progr...SubjectSubscriptionTapeThreadTrapUdonUpgrade ProposalUserspaceVaneVaseVereVotingWarm atomWet GateWingWireWrapper~zodZuse
Additional
Reference/Glossary/Mold

Mold

Molds are data types in Hoon. Atom auras like @ud are molds, as are more complex structures like json, path, (list @ud), (unit manx), card:agent:gall, (map @tas (pair @t @ux)), etc. Raw values may be type-cast to a mold, and molds can also be called as functions to coerce a value to its type (this is called "molding" or "clamming"). Molds may be create with "mold builder" functions, or with $-family runes.

Further Reading

  • Hoon school: types: A lesson on molds.

  • Buc ($) rune reference: Details on the runes that can create molds.

Edit this page on GitHub

Last modified October 8, 2023

~Urbit
HomeGet StartedOverviewEcosystemGrantsEventsBlog
GitHubAirlock APIsUrbit BinariesDeveloper Mailing ListIssue TrackerWhitepaper
Privacy Policy
Terms of Service
support@urbit.org