How to resolve the algorithm Unix/ls step by step in the Raku programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm Unix/ls step by step in the Raku programming language

Table of Contents

Problem Statement

Write a program that will list everything in the current folder,   similar to:

The output must be sorted, but printing extended details and producing multi-column output is not required.

For the list of paths:

When the program is executed in   /foo,   it should print: and when the program is executed in   /foo/bar,   it should print:

Let's start with the solution: