(37 lines)
1 '\" t2 .\" Copyright (c) 2025 Bruce Hill3 .\" All rights reserved.4 .\"5 .TH Path.from_components 3 2025-11-29 "Tomo man-pages"6 .SH NAME7 Path.from_components \- build a path from components8 .SH LIBRARY9 Tomo Standard Library10 .SH SYNOPSIS11 .nf12 .BI Path.from_components\ :\ func(components:\ [Text]\ ->\ Path)13 .fi14 .SH DESCRIPTION15 Returns a path built from a list of path components.18 .SH ARGUMENTS20 .TS21 allbox;22 lb lb lbx23 l l l.24 Name Type Description25 components [Text] A list of path components.26 .TE27 .SH RETURN28 A path representing the given components.30 .SH EXAMPLES31 .EX32 assert Path.from_components(["/", "usr", "include"]) == (/usr/include)33 assert Path.from_components(["foo.txt"]) == (./foo.txt)34 assert Path.from_components(["~", ".local"]) == (~/.local)35 .EE36 .SH SEE ALSO37 .BR Tomo-Path (3)