aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBraxton Hall2022-10-24 19:38:28 +0000
committerGitHub2022-10-24 19:38:28 +0000
commit3277f1684cb654620356395c1ea7dec4153b572d (patch)
treebbc0837d1a492e1fb946c9fa6a4e6aea66b28305
parenta139a04ba0a5de1c36044e3dae1c6833193d2bea (diff)
parent59e81fca4d450c71f10722792d36abf1b721caff (diff)
Merge pull request #24 from nxjfxu/main
add haskell entry
-rw-r--r--entries/nxjfxu/fib.hs5
-rw-r--r--people.json11
2 files changed, 16 insertions, 0 deletions
diff --git a/entries/nxjfxu/fib.hs b/entries/nxjfxu/fib.hs
new file mode 100644
index 0000000..0f0d871
--- /dev/null
+++ b/entries/nxjfxu/fib.hs
@@ -0,0 +1,5 @@
+fib :: Int -> Int
+fib = (fibs !!)
+ where
+ fibs = 0 : 1 : [fibs !! (i - 2) + fibs !! (i - 1) | i <- [2..]]
+
diff --git a/people.json b/people.json
index b957009..67fb11d 100644
--- a/people.json
+++ b/people.json
@@ -223,6 +223,17 @@
]
},
{
+ "github": "nxjfxu",
+ "name": "Junfeng Xu",
+ "title": "MSc Student, UBC",
+ "entries": [
+ {
+ "name": "ouroboros",
+ "link": "./entries/nxjfxu/fib.hs"
+ }
+ ]
+ },
+ {
"github": "zgrannan",
"name": "Zack Grannan",
"title": "MSc Computer Science Student, UBC",