// aoc2015-day3-part1.kt

fun part1(s: String) = s
  .scan(0, nextPos)
  .distinct()
  .count()
}