Skip to content

Commit

Permalink
add sugar
Browse files Browse the repository at this point in the history
  • Loading branch information
kyawaway committed Jun 25, 2024
1 parent 858077b commit ffeef1c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/mell.lmn
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
{
module(mell).

mell.copy(M,A1,A2,A3,C1,C2), :-
mell.copy(M,A1,A2,A3,B1,B2,C1,C2), {B1=B2}.

/**
* mell.copy(+Mem, +Cont1, +Cont2, +Cont3, +Cut1, +Cut2, +Free1, +Free2):
*
Expand All @@ -22,7 +25,7 @@ mell.copy(M,A1,A2,A3,B1,B2,C1,C2) :-
'$callback'('mell_copy', M, A1, A2, A3, B1, B2, C1, C2).


mell.delete({$p,@p}), :- mell.delete({$p,@p}, X), {deleted(X)}.
mell.delete(M), :- mell.delete(M, X), {deleted(X)}.

/**
* mell.delete(+Mem, +Weakn)
Expand Down

0 comments on commit ffeef1c

Please sign in to comment.