Mutant has some built-in functions. Let’s see them in action in below examples:
Example 1
puts("Hi");
Example 2
putln("Hi");
putln("Bye");
Example 3
let name = gets("string");
puts(name);
Example 4
let array = [1, 2, 3];
putln(array);
let array = push(array, 4);
putln(array);
Example 5
let array = [1, 2, 3];
putln(len(array));
Example 6
let array = [1, 2, 3];
putln(first(array));
Example 7
let array = [1, 2, 3];
putln(last(array));
Example 8
let array = [1, 2, 3];
putln(rest(array));