Skip to content

Instantly share code, notes, and snippets.

@fourohfour
Created February 19, 2018 12:34
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 fourohfour/028464472b9d5d245be8a718f783b247 to your computer and use it in GitHub Desktop.
Save fourohfour/028464472b9d5d245be8a718f783b247 to your computer and use it in GitHub Desktop.
n : 10
i : 0
sq : [n - i : ( @s
's' : 0
'c' : 0
'sum': [i - 'c' : (@c
's' : 's' + i
'c' : 'c' + 1
)
]
)
i : i + 1
]
! : sq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment