Mercurial Hosting > luan
annotate src/luan/modules/which.luan @ 889:5731a7707466
remove _forwarded
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Thu, 06 Oct 2016 23:24:30 -0600 |
parents | 1a68fc55a80c |
children |
rev | line source |
---|---|
693
ca169567ce07
module URIs must now include ".luan"
Franklin Schmidt <fschmidt@gmail.com>
parents:
628
diff
changeset
|
1 local Luan = require "luan:Luan.luan" |
628 | 2 local error = Luan.error |
3 local values = Luan.values or error() | |
693
ca169567ce07
module URIs must now include ".luan"
Franklin Schmidt <fschmidt@gmail.com>
parents:
628
diff
changeset
|
4 local Which_mod = require "luan:Which_mod.luan" |
628 | 5 local which = Which_mod.which or error() |
6 | |
7 for name in values(...) do | |
8 which(name) | |
9 end |