From b754f10ef476eedbddc42596152875c47b719bf0 Mon Sep 17 00:00:00 2001 From: Darren Schroeder <343840+fdncred@users.noreply.github.com> Date: Sat, 30 Jan 2021 11:30:37 -0600 Subject: [PATCH] added some comments to print3 --- stdlib_candidate/print.nu | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/stdlib_candidate/print.nu b/stdlib_candidate/print.nu index 4612ae6..d64bb55 100644 --- a/stdlib_candidate/print.nu +++ b/stdlib_candidate/print.nu @@ -41,9 +41,12 @@ def print2 [ } } +# A print command that concatenates arguments together with an optional separator. +# This print command will also concatenate tables like [1 2 3] as well as most other primitives +# since the str from command has been updated with wider support. def print3 [ --separator(-s):any # Optional separator (not yet flagged as optional?) - --flat(-f) # If tables are found, flatten them + --flat(-f) # If tables are found, flatten them ...rest # All of the parameters ] { let sep_empty = $(= $separator | empty?)