feat: add path and collection standard library helpers

This commit is contained in:
Hermes Agent
2026-07-09 21:04:25 -06:00
parent f907cfb63c
commit c66c122c30
10 changed files with 182 additions and 42 deletions
+16
View File
@@ -0,0 +1,16 @@
IMPORT "lib/path.claro" AS path
CALL path.join WITH "notes", "today.txt"
SAY RESULT
CALL path.basename WITH "notes/today.txt"
SAY RESULT
CALL path.dirname WITH "notes/today.txt"
SAY RESULT
CALL path.ext WITH "notes/today.txt"
SAY RESULT
CALL path.stem WITH "notes/today.txt"
SAY RESULT
CALL path.absolute WITH "/home/learner"
SAY RESULT
CALL path.absolute WITH "notes/today.txt"
SAY RESULT