UNPKG
expeditaet
Version:
latest (1.2.0)
1.2.0
1.1.3
1.1.2
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
Advent of Code Solutions
github.com/MariannaBoyle/expeditaet.git
MariannaBoyle/expeditaet
expeditaet
/
solutions
/
typescript
/
2018
/
05
/
src
/
p1.ts
8 lines
(5 loc)
•
266 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
import
{ task }
from
'@alexaegis/advent-of-code-lib'
;
import
packageJson
from
'../package.json'
;
import
{ collapse }
from
'./collapse.function.js'
;
export
const
p1 = (
input
:
string
):
number
=>
collapse
(input).
length
;
await
task
(p1, packageJson.
aoc
);
// 9202 ~15ms