Skip to content

Commit

Permalink
fixed use of deprecated function
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenvinju committed Nov 7, 2024
1 parent 1d8e9ee commit 27335f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/rascalmpl/library/List.rsc
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ list[&T] mix(list[&T] l, list[&T] r){
sizeL = size(l);
sizeR = size(r);
minSize = sizeL < sizeR ? sizeL : sizeR;
return [elementAt(l,i),elementAt(r,i)| i <- [0 .. minSize]] + drop(sizeR,l) + drop(sizeL,r);
return [l[i],r[i] | i <- [0 .. minSize]] + drop(sizeR,l) + drop(sizeL,r);
}
@synopsis{Compute all permutations of a list.}
Expand Down

0 comments on commit 27335f0

Please sign in to comment.