This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sym(...args) { | |
return args.reduce( (a,b,i) => { | |
const valoresA = a.filter(item => !b.find(aux=>aux===item)); | |
const valoresB = b.filter(item => !a.find(aux=>aux===item)); | |
const resultado = new Set([...valoresA, ...valoresB]); | |
return [...resultado].sort((a,b)=>a-b) | |
},[]); | |
} | |
console.log(sym([3, 3, 3, 2, 5], [2, 1, 5, 7], [3, 4, 6, 6])); //[1, 4, 6, 7] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sym(...args) { | |
return args.reduce( (a,b,i) => { | |
const valoresA = a.filter(item => !b.find(aux=>aux===item)); | |
const valoresB = b.filter(item => !a.find(aux=>aux===item)); | |
const resultado = new Set([...valoresA, ...valoresB]); | |
return [...resultado] | |
},[]); | |
} | |
console.log(sym([3, 3, 3, 2, 5], [2, 1, 5, 7], [3, 4, 6, 6])); //[1, 7, 4, 6] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sym(...args) { | |
return args.reduce( (a,b,i) => { | |
const valoresA = a.filter(item => !b.find(aux=>aux===item)); | |
const valoresB = b.filter(item => !a.find(aux=>aux===item)); | |
return [...valoresA, ...valoresB] | |
},[]); | |
} | |
console.log(sym([3, 3, 3, 2, 5], [2, 1, 5, 7], [3, 4, 6, 6])); //[1, 7, 4, 6, 6] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sym(...args) { | |
return args.reduce( (a,b,i) => { | |
const valoresA = a.filter(item => !b.find(aux=>aux===item)); | |
console.log(valoresA) // [] | |
return valoresA | |
},[]); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sym(...args) { | |
return args.reduce( (a,b,i) => { | |
console.log('compara',a,'con',b); | |
// Ciclo 1 => Compara [] con [3, 3, 3, 2, 5], | |
// Ciclo 2 => Compara [] con [2, 1, 5, 7], | |
// Ciclo 3 => Compara [] con [3, 4, 6, 6], | |
return []; | |
},[]); | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function sym(...args) { | |
console.log(args) // [[3, 3, 3, 2, 5], [2, 1, 5, 7], [3, 4, 6, 6]] | |
} | |
sym([3, 3, 3, 2, 5], [2, 1, 5, 7], [3, 4, 6, 6]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type None = { | |
flatMap<U>(f: (value: null) => Option<U>): None | |
getOrElse<U>(def: U): U | |
isEmpty(): true | |
map<U>(f: (value: null) => U): None | |
nonEmpty(): false | |
orElse<U>(alternative: Option<U>): Option<U> | |
} | |
type Some<T> = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- --------------------------------------------------------------------- | |
-- Librerías auxiliares | |
-- --------------------------------------------------------------------- | |
import Graphics.Gnuplot.Simple | |
import Data.Numbers.Primes (isPrime, primes) | |
import qualified Data.Map as M | |
-- --------------------------------------------------------------------- | |
-- Ejercicio 1. Definir la función |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dev: true, | |
build: { | |
html: { | |
minify: { | |
collapseBooleanAttributes: false, | |
decodeEntities: false, | |
minifyCSS: false, | |
minifyJS: false, | |
processConditionalComments: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sass/ | |
| | |
|– base/ | |
| |– _reset.scss # Reset/normalize | |
| |– _typography.scss # Typography rules | |
| ... # Etc… | |
| | |
|– components/ | |
| |– _buttons.scss # Buttons | |
| |– _carousel.scss # Carousel |