Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local MakeList in
- fun{MakeList M}
- if M == 0 then nil
- else
- {OS.rand}|{MakeList M-1}
- end
- end
- if N == 0 then nil
- else
- local L in
- L = {New List init({MakeList M})}
- L|{Producer M N-1}
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement