Skip to content

Commit

Permalink
changed path function to allow it to load in library into windows (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
fionncarr authored Dec 17, 2018
1 parent 65de15d commit 48ab13a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion init.q
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
\d .ml
/ bootstrap load ml library
system"l ",{$[count u:@[{1_string first` vs hsym`$u -3+count u:get .z.s};`;""];u;"ml"]}[],"/ml.q"
system"l ",{$[count u:@[{1_string first` vs hsym`$ssr[;"\\";"/"]u -3+count u:get .z.s};`;""];u;"ml"]}[],"/ml.q"
/load in all the .q scripts within the ml library
loadfile`:util/init.q
loadfile`:fresh/init.q
2 changes: 1 addition & 1 deletion ml.q
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
version:@[{TOOLKITVERSION};0;`development]
sstring:{$[10=type x;;string]x}
loadfile:{$[.z.q;;-1]"Loading ",x:1_string hsym`$sstring x;system"l ",path,"/",x;}
path:{$[count u:@[{1_string first` vs hsym`$u -3+count u:get .z.s};`;""];u;"ml"]}[]
path:{$[count u:@[{1_string first` vs hsym`$ssr[;"\\";"/"]u -3+count u:get .z.s};`;""];u;"ml"]}[]

/ evenly spaced values between x and y in steps of length z.
arange:{x+z*til ceiling(y-x)%z}
Expand Down

0 comments on commit 48ab13a

Please sign in to comment.