渲染zh-Hant

Norma — the standard library

Norma 是 Faber 的標準函式庫。它提供以拉丁文命名的扁平模組,透過 norma:* 路徑存取。標準函式庫宣告是鄰近 norma 儲存庫中的 Faber 原始碼。

模組#

模組領域
norma:solum檔案系統操作
norma:solum/path純路徑名稱操作
norma:httpHTTP 用戶端
norma:processus程序執行
norma:consolum主控台 I/O(標準輸入、標準輸出、標準錯誤)
norma:jsonJSON 解析與序列化
norma:tomlTOML 解析
norma:yamlYAML 解析
norma:valor編解碼器導覽
norma:tensor張量橋接輔助工具
norma:tempus時間與持續時間
norma:aleator隨機性

Morphologia 命名慣例#

Norma 遵循 morphologia 政策來命名所有方法。拉丁文動詞變化形式表示執行模式:

詞幹同步非同步意義
leg-legeleget讀取
scrib-寫出scribet寫入
quaer-quaeret查詢(有限)
quaer-quaerent查詢(串流)

所有權配對(變更與複製輸出):

變更複製輸出意義
addeaddita新增
inverteinversa反轉
filtrafiltrata篩選

使用方式#

importa ex "norma:solum" privata solum

functio legeConfig()  textus {
    redde solum.lege("config.toml")
}