Join Nostr
2025-12-09 06:28:51 UTC
in reply to

Felix πŸ‡ΊπŸ‡¦πŸš΄β€β™‚οΈπŸ‡ͺπŸ‡Ί on Nostr: Then show what the following looks like with a sorted list. Explains the Z<= and Z> ...

Then show what the following looks like with a sorted list. Explains the Z<= and Z> operators.

my @list = 1, 2, 3;
# Z<= operator
my @result_Zle = @list Z<= @list.skip; # (True, True)

# Z> operator
my @result_Zgt = @list Z> @list.skip; # (False, False)

# .all on Z<= result
my $all_result = @result_Zle.all; # True

# so one on Z> result
my $one_result = so one @result_Zgt;