diff --git a/BFLib/BFLib.fsproj b/BFLib/BFLib.fsproj index 34c1fcd..a447533 100644 --- a/BFLib/BFLib.fsproj +++ b/BFLib/BFLib.fsproj @@ -52,7 +52,7 @@ - + diff --git a/BFLib/FunkyFish.fs b/BFLib/FunkyFish.fs new file mode 100644 index 0000000..0e94d19 --- /dev/null +++ b/BFLib/FunkyFish.fs @@ -0,0 +1,4 @@ +module FunkyFish + let LibraryTest1 x y = x + y + let LibraryTest2 x y z = (x * y) * z + let LibraryTest3 name = "Hello " + name diff --git a/BFLib/Library1.fs b/BFLib/Library1.fs deleted file mode 100644 index 33da172..0000000 --- a/BFLib/Library1.fs +++ /dev/null @@ -1,4 +0,0 @@ -namespace BFLib - -type Class1() = - member this.X = "F#" diff --git a/BFLib/Script.fsx b/BFLib/Script.fsx index 8a130f8..b282c3f 100644 --- a/BFLib/Script.fsx +++ b/BFLib/Script.fsx @@ -1,8 +1,8 @@ // Learn more about F# at http://fsharp.org // See the 'F# Tutorial' project for more help. -#load "Library1.fs" -open BFLib +#load "FunkyFish.fs" +open FunkyFish -// Define your library scripting code here +// Feel free to add your own code in here... diff --git a/BrittleFish/ConsoleCommands.fs b/BrittleFish/ConsoleCommands.fs index efcd816..cca55b4 100644 --- a/BrittleFish/ConsoleCommands.fs +++ b/BrittleFish/ConsoleCommands.fs @@ -4,6 +4,7 @@ open System open Console.Waterworks open Console.Waterworks.Attributes + open FunkyFish // This is where the "LibraryTest" functions are -- in BFLib [] [] @@ -25,3 +26,11 @@ let liaison = CW_Liaison() liaison.RequestHelpDocumentation("Commands") + let libtest1 x y = String.Format("Result: {0}" , LibraryTest1 x y) + + + let libtest2 x y z = String.Format("Result: {0}", (LibraryTest2 x y z)) + + + let libtest3 name = String.Format("Result: {0}", LibraryTest3 name) +