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
/
10
/
src
/
interpreter.function.ts
6 lines
(4 loc)
•
236 B
text/typescript
View Raw
1
2
3
4
5
6
import
{ split }
from
'@alexaegis/advent-of-code-lib'
;
import
{
MotionVector
}
from
'./model/motion-vector.class.js'
;
export
const
interpreter = (
input
:
string
):
MotionVector
[] =>
split
(input).
map
(
(
line
) =>
MotionVector
.
parse
(line));