Skip to content

Instantly share code, notes, and snippets.

@Spuffynism
Last active June 28, 2019 00:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Spuffynism/72c0aef8681a7c1db094956c443f35ee to your computer and use it in GitHub Desktop.
Save Spuffynism/72c0aef8681a7c1db094956c443f35ee to your computer and use it in GitHub Desktop.
`0 7→ 20, 1 7→ 13, 2 7→ 21, 3 7→ 0, 4 7→ 1, 5 7→ 2, 6 7→ 3, 7 7→ 4, 8 7→ 5,
9 7→ 6, 10 7→ 7, 11 7→ 8, 12 7→ 9, 13 7→ 10, 14 7→ 11, 15 7→ 12, 16 7→ 14,
17 7→ 15, 18 7→ 16, 19 7→ 17, 20 7→ 18, 21 7→ 19, 22 7→ 22,
23 7→ 23, 24 7→ 24, 25 7→ 25`.split(',')
.map(v =>
v.replace('7→','')
.trim()
.split(' '))
.map(v=>({[v[1]]:v[0]}))
.reduce((v, acc) => Object.assign(acc,v),{});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment