From 615b9bf929f0f1eee716cfefd3eb439b40640874 Mon Sep 17 00:00:00 2001 From: Elizabeth Mattijsen Date: Mon, 13 Feb 2023 16:09:06 +0100 Subject: [PATCH] List.head should not decontainerize Fixed ValueMap from the latest Blin run --- src/core.c/List.pm6 | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/core.c/List.pm6 b/src/core.c/List.pm6 index 1f15b938353..9c0c8d63855 100644 --- a/src/core.c/List.pm6 +++ b/src/core.c/List.pm6 @@ -480,14 +480,12 @@ my class List does Iterable does Positional { # declared in BOOTSTRAP } multi method head(List:D:) is raw { - nqp::decont( - nqp::isconcrete($!reified) - ?? nqp::ifnull( - nqp::atpos($!reified,0), - self!AT_POS_SLOW(0) - ) - !! self!AT_POS_SLOW(0) - ) + nqp::isconcrete($!reified) + ?? nqp::ifnull( + nqp::atpos($!reified,0), + self!AT_POS_SLOW(0) + ) + !! self!AT_POS_SLOW(0) } multi method AT-POS(List:D: uint $pos) is raw {