xref: /third_party/node/test/fixtures/source-map/tabs.coffee (revision 1cb0ef41)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/fixtures/source-map/
11cb0ef41Sopenharmony_ci# Assignment:
21cb0ef41Sopenharmony_cinumber   = 42
31cb0ef41Sopenharmony_ciopposite = true
41cb0ef41Sopenharmony_ci
51cb0ef41Sopenharmony_ci# Conditions:
61cb0ef41Sopenharmony_cinumber = -42 if opposite
71cb0ef41Sopenharmony_ci
81cb0ef41Sopenharmony_ci# Functions:
91cb0ef41Sopenharmony_cisquare = (x) -> x * x
101cb0ef41Sopenharmony_ci
111cb0ef41Sopenharmony_ci# Arrays:
121cb0ef41Sopenharmony_cilist = [1, 2, 3, 4, 5]
131cb0ef41Sopenharmony_ci
141cb0ef41Sopenharmony_ci# Objects:
151cb0ef41Sopenharmony_cimath =
161cb0ef41Sopenharmony_ci	root:   Math.sqrt
171cb0ef41Sopenharmony_ci	square: square
181cb0ef41Sopenharmony_ci	cube:   (x) -> x * square x
191cb0ef41Sopenharmony_ci
201cb0ef41Sopenharmony_ci# Splats:
211cb0ef41Sopenharmony_cirace = (winner, runners...) ->
221cb0ef41Sopenharmony_ci	print winner, runners
231cb0ef41Sopenharmony_ci
241cb0ef41Sopenharmony_ci# Existence:
251cb0ef41Sopenharmony_ciif true
261cb0ef41Sopenharmony_ci	alert "I knew it!"
271cb0ef41Sopenharmony_ci
281cb0ef41Sopenharmony_ci# Array comprehensions:
291cb0ef41Sopenharmony_cicubes = (math.cube num for num in list)
30

Indexes created Thu Nov 07 10:32:03 CST 2024