develooper Front page | perl.perl6.users | Postings from February 2019

Re: split and nils?

Thread Previous | Thread Next
February 6, 2019 22:33
Re: split and nils?
Message ID:
On Wed, Feb 6, 2019, 11:57 AM ToddAndMargo via perl6-users <> said

What would be the most practice way of converting a string to and
array of characters

Brad said-

You should be using `comb` if you want a list of characters not `split`.

# these are all identical
comb( 1, 'abcd' ).kv

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About