WLJS LogoWLJS Notebook

Delete

Delete[expr, n] deletes the element at position n in expr.

Examples

Delete at position:

Delete[{a, b, c, d}, 2]
(* {a, c, d} *)

Delete from the end:

Delete[{a, b, c, d}, -1]
(* {a, b, c} *)

Delete multiple positions:

Delete[{a, b, c, d}, {{1}, {3}}]
(* {b, d} *)

Please visit the official Wolfram Language Reference for more details.

On this page