Mercurial Hosting > luan
comparison core/src/luan/modules/which.luan @ 628:6510de302f95
add "which" command
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Mon, 18 Jan 2016 06:42:50 -0700 |
parents | |
children | ca169567ce07 |
comparison
equal
deleted
inserted
replaced
627:a98812908fbc | 628:6510de302f95 |
---|---|
1 local Luan = require "luan:Luan" | |
2 local error = Luan.error | |
3 local values = Luan.values or error() | |
4 local Which_mod = require "luan:Which_mod" | |
5 local which = Which_mod.which or error() | |
6 | |
7 for name in values(...) do | |
8 which(name) | |
9 end |