mirror of
https://github.com/Cian-H/dotfiles.git
synced 2025-12-23 11:51:57 +00:00
Changed . token to _dot
This change allows the dotfiles to work with chezmoi (e.g: on windows) and improves grepability with neovim/telescope
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env nu
|
||||
# This is a much less efficient, recursive version of fibonacci that can be used to test our
|
||||
# command call performance.
|
||||
|
||||
use std bench
|
||||
|
||||
def fib [n: int] {
|
||||
match $n {
|
||||
0 => 0,
|
||||
1 => 1,
|
||||
$n => { (fib ($n - 1)) + (fib ($n - 2)) },
|
||||
}
|
||||
}
|
||||
|
||||
def main [] {
|
||||
print (bench { 0..20 | each { |n| fib $n } } | reject times)
|
||||
}
|
||||
Reference in New Issue
Block a user