blob: 2f3927794fc2fa0154902a54936def5732688cbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
'\" t
.\" Copyright (c) 2025 Bruce Hill
.\" All rights reserved.
.\"
.TH Path.from_components 3 2025-04-21 "Tomo man-pages"
.SH NAME
Path.from_components \- build a path from components
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI Path.from_components\ :\ func(components:\ [Text]\ ->\ Path)
.fi
.SH DESCRIPTION
Returns a path built from a list of path components.
.SH ARGUMENTS
.TS
allbox;
lb lb lbx lb
l l l l.
Name Type Description Default
components [Text] A list of path components. -
.TE
.SH RETURN
A path representing the given components.
.SH EXAMPLES
.EX
>> Path.from_components(["/", "usr", "include"])
= /usr/include
>> Path.from_components(["foo.txt"])
= ./foo.txt
>> Path.from_components(["~", ".local"])
= ~/.local
.EE
|