|
|
|
@ -28,28 +28,28 @@ namespace Commands
|
|
|
|
|
open Console.Waterworks.Attributes |
|
|
|
|
open FunkyFish // This is where the "LibraryTest" functions are -- in BFLib |
|
|
|
|
|
|
|
|
|
// The other functions in this file/module have been removed from brevity. |
|
|
|
|
// The other functions in this file/module have been removed from brevity. |
|
|
|
|
|
|
|
|
|
[<ListCommand>] |
|
|
|
|
[<Description "Adds the two numbers together.">] |
|
|
|
|
[<Parameters "x:int y:int">] |
|
|
|
|
[<Usage "> libtest1 5 10">] |
|
|
|
|
let libtest1 x y = |
|
|
|
|
String.Format("Result: {0}" , LibraryTest1 x y) // Library Call to FunkyFish. |
|
|
|
|
|
|
|
|
|
[<ListCommand>] |
|
|
|
|
[<Description "Multiplies x and y together then mulitplies that by z or... (x * y) * z">] |
|
|
|
|
[<Parameters "x:int y:int z:int">] |
|
|
|
|
[<Usage "> libtest2 5 10 2">] |
|
|
|
|
let libtest2 x y z = |
|
|
|
|
String.Format("Result: {0}", (LibraryTest2 x y z))// Library Call to FunkyFish. |
|
|
|
|
|
|
|
|
|
[<ListCommand>] |
|
|
|
|
[<Description "Appends the named passed into the console onto \"Hello\" and displays it in the console.">] |
|
|
|
|
[<Parameters "name: string">] |
|
|
|
|
[<Usage "> libtest3 \"Craig Oates\"">] |
|
|
|
|
let libtest3 name = |
|
|
|
|
String.Format("Result: {0}", LibraryTest3 name) // Library Call to FunkyFish. |
|
|
|
|
[<ListCommand>] |
|
|
|
|
[<Description "Adds the two numbers together.">] |
|
|
|
|
[<Parameters "x:int y:int">] |
|
|
|
|
[<Usage "> libtest1 5 10">] |
|
|
|
|
let libtest1 x y = |
|
|
|
|
String.Format("Result: {0}" , LibraryTest1 x y) // Library Call to FunkyFish. |
|
|
|
|
|
|
|
|
|
[<ListCommand>] |
|
|
|
|
[<Description "Multiplies x and y together then mulitplies that by z or... (x * y) * z">] |
|
|
|
|
[<Parameters "x:int y:int z:int">] |
|
|
|
|
[<Usage "> libtest2 5 10 2">] |
|
|
|
|
let libtest2 x y z = |
|
|
|
|
String.Format("Result: {0}", (LibraryTest2 x y z))// Library Call to FunkyFish. |
|
|
|
|
|
|
|
|
|
[<ListCommand>] |
|
|
|
|
[<Description "Appends the named passed into the console onto \"Hello\" and displays it in the console.">] |
|
|
|
|
[<Parameters "name: string">] |
|
|
|
|
[<Usage "> libtest3 \"Craig Oates\"">] |
|
|
|
|
let libtest3 name = |
|
|
|
|
String.Format("Result: {0}", LibraryTest3 name) // Library Call to FunkyFish. |
|
|
|
|
``` |
|
|
|
|
|
|
|
|
|
IMAGE OF FUNCTION TO FUNCTION RELATIONSHIP. |
|
|
|
|