### ----------------------------------------------------
### -- Pyrint
### -- Licenses: Artistic-2.0
### -- Authors: 
### -- File: lib/Pyrint.rakumod
### ----------------------------------------------------
unit module Pyrint;
use nqp;

sub pyrint(*@args, :$sep = " ", :$end = "\n") is export(:DEFAULT :pyrint) {
    #= Essentially the same as `&say` but enables customization for `sep` and `end`
    #= https://github.com/rakudo/rakudo/blob/main/src/core.c/io_operators.rakumod#L93-L98
    my $parts := Rakudo::Internals.GistList2list_s(nqp::p6argvmarray);
    $*OUT.print: nqp::concat(nqp::join($sep.Str, $parts), $end.Str)
}


