
Sudoku C64
Basic
Actualizado el 27 de Diciembre del 2019 por Adelino (27 códigos) (Publicado el 23 de Octubre del 2019)
10.354 visualizaciones desde el 23 de Octubre del 2019
Programa para Commodore 64.


differencia([1, 2, 3], [1, 2, 4]) # [3, 4]
differencia([], [1, 2, 4]) # [1, 2, 4]
differencia([1, 2, 4], []) # [1, 2, 4]
differencia(["a", "b", "c"], ["b", "a", "d"]) # ['c', 'd']
$a2 = ["lively", "alive", "harp", "sharp", "armstrong"];
$a1 = ["arp", "live", "strong"];
inArray($a1, $a2); // ["arp", "live", "strong"]
$a1 = ["xyz", "live", "strong"];
inArray($a1, $a2); // ["live", "strong"]
$a1 = ["live", "strong", "arp"];
inArray($a1, $a2); // ["arp", "live", "strong"]
$a1 = [];
inArray($a1, $a2); // []
maskify("4556364607935616"); // '############5616'
maskify("64607935616"); // '#######5616'
maskify("1"); // '1'
maskify(""); // ''
$string=" El\n sol\n brilla";
removeSpacePrevLines($string); // " El\nsol\n brilla";
$string=" El\n sol\n brilla";
removeSpacePrevLines($string); // "El\n sol\nbrilla";
$cadena="El \nsol \nbrilla ";
removeSpaceEndLines($cadena); // "El\nsol\nbrilla"
uniqueElementsByRight(
[
{ id: 0, value: 'a' },
{ id: 1, value: 'b' },
{ id: 2, value: 'c' },
{ id: 1, value: 'd' },
{ id: 0, value: 'e' }
],
(a, b) => a.id == b.id
); // [ { id: 0, value: 'e' }, { id: 1, value: 'd' }, { id: 2, value: 'c' } ]
uniqueElementsByRight(
[
{ id: 0, value: 'a' },
{ id: 0, value: 'b' },
{ id: 0, value: 'c' },
],
(a, b) => a.id == b.id
); // [ { id: 0, value: 'c' } ]