Still catching up. Day 9 part 1 was quite easy in ansible
- hosts: localhost gather_facts: no vars: input_file: input preamble: 25 tasks: - name: Read program set_fact: numbers: "{{ lookup('file', input_file).splitlines() | list | map('int') | list }}" - name: Bonza debug: msg="{{ item }}" loop: "{{ numbers[preamble | int:] }}" loop_control: index_var: idx when: item not in numbers[idx:idx + preamble | int] | list | product(numbers[idx:idx + preamble | int] | list) | map('sum') | list
@rhowe started
London Fixed Gear and Single-Speed is a community of predominantly fixed gear and single-speed cyclists in and around London, UK.
This site is supported almost exclusively by donations. Please consider donating a small amount regularly.
Still catching up. Day 9 part 1 was quite easy in ansible