this repo has no description
1{
2 "cells": [
3 {
4 "cell_type": "code",
5 "execution_count": 4,
6 "metadata": {},
7 "outputs": [
8 {
9 "ename": "",
10 "evalue": "",
11 "output_type": "error",
12 "traceback": [
13 "<interactive>:1:1: error:\n Could not find module ‘Papa’\n Use -v to see a list of the files searched for."
14 ]
15 }
16 ],
17 "source": [
18 "import Data.List\n",
19 "import Combinatorics\n"
20 ]
21 },
22 {
23 "cell_type": "code",
24 "execution_count": 5,
25 "metadata": {},
26 "outputs": [
27 {
28 "data": {
29 "text/plain": [
30 "[[1,1,1],[1,1,2],[1,2,1],[1,2,2],[2,1,1],[2,1,2],[2,2,1],[2,2,2]]"
31 ]
32 },
33 "metadata": {},
34 "output_type": "display_data"
35 }
36 ],
37 "source": [
38 "variateRep 3 [1,2]"
39 ]
40 },
41 {
42 "cell_type": "code",
43 "execution_count": 7,
44 "metadata": {},
45 "outputs": [
46 {
47 "data": {
48 "text/plain": [
49 "[[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,1,2],[3,2,1]]"
50 ]
51 },
52 "metadata": {},
53 "output_type": "display_data"
54 }
55 ],
56 "source": [
57 "variate 3 [1,2,3]"
58 ]
59 }
60 ],
61 "metadata": {
62 "kernelspec": {
63 "display_name": "Haskell",
64 "language": "haskell",
65 "name": "haskell"
66 },
67 "language_info": {
68 "codemirror_mode": "ihaskell",
69 "file_extension": ".hs",
70 "name": "haskell",
71 "pygments_lexer": "Haskell",
72 "version": "8.6.5"
73 }
74 },
75 "nbformat": 4,
76 "nbformat_minor": 2
77}