File: simple.lua

package info (click to toggle)
lua-moses 2.1.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 764 kB
  • sloc: makefile: 2
file content (4 lines) | stat: -rw-r--r-- 110 bytes parent folder | download | duplicates (3)
1
2
3
4
local _ = require 'moses'

-- test _.each and _.map
_.each(_.map({1,2,3}, function(x) return x*x end), print)