A few more functions.

reverse, shift, shunt, take, split_at
This commit is contained in:
Simon Forman
2019-08-09 07:26:37 -07:00
parent 712f0a0267
commit b9ae00cecb
2 changed files with 9 additions and 1 deletions
+2
View File
@@ -175,6 +175,8 @@ func(dupd, [A, B|S], [A, B, B|S]).
func(over, [A, B|S], [B, A, B|S]).
func(tuck, [A, B|S], [A, B, A|S]).
func(shift, [[B|A], C|D], [A, [B|C]|D]).
func(rollup, Si, So) :- func(rolldown, So, Si).
func(uncons, Si, So) :- func(cons, So, Si).