File: coffeescript.coffee

package info (click to toggle)
jekyll 2.2.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,908 kB
  • ctags: 687
  • sloc: ruby: 6,811; sh: 121; xml: 106; makefile: 35
file content (10 lines) | stat: -rw-r--r-- 172 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
---
---

$ ->
  list   = [1, 2, 3, 4, 5]
  square = (x) -> x * x
  cube   = (x) -> square(x) * x
  cubes  = (math.cube num for num in list)

  alert "I knew it!" if elvis?