Skip to content

Commit

Permalink
Merge branch 'main' into no-conversion-when-delimiter-occurs-elsewher…
Browse files Browse the repository at this point in the history
…e-too
  • Loading branch information
sungshik committed Sep 11, 2024
2 parents a83bb79 + 899fb3d commit f88b953
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rascal-textmate-core/src/main/rascal/util/ListUtil.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ list[&T] dupLast(list[&T] l) = reverse(dup(reverse(l))); // TODO: Optimize/avoid
}

bool isStrictPrefix(list[&T] l1, list[&T] l2)
= size(l1) < size(l2) && !any(i <- [0..size(l1)], l1[i] != l2[i]);
= size(l1) < size(l2) && l1 == l2[..size(l1)];

0 comments on commit f88b953

Please sign in to comment.