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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
6510de302f95 add "which" command
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
2 local error = Luan.error
6510de302f95 add "which" command
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
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
6510de302f95 add "which" command
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
5 local which = Which_mod.which or error()
6510de302f95 add "which" command
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
6
6510de302f95 add "which" command
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
7 for name in values(...) do
6510de302f95 add "which" command
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
8 which(name)
6510de302f95 add "which" command
Franklin Schmidt <fschmidt@gmail.com>
parents:
diff changeset
9 end