Is the following code valid?
namespace A let a = 1
A. Yes
B. No
A. Yes β
B. No β
β A namespace cannot contain values!
namespace A module B let a = 1
β module B is declared as top-level β forbidden after a namespace
Valid equivalent code:
Option 1: top-level module
Option 2: namespace + local module
Give the fully-qualified name for add?
add
A. add
B. IntHelper.add
IntHelper.add
C. Utilities.IntHelper.add
Utilities.IntHelper.add
D. Common.Utilities.IntHelper.add
Common.Utilities.IntHelper.add
A. add β
B. IntHelper.add β
C. Utilities.IntHelper.add β
D. Common.Utilities.IntHelper.add β
β IntHelper for the parent module β Common.Utilities for the root namespace
IntHelper
Common.Utilities
Last updated 9 months ago
module A.B let a = 1
namespace A module B = let a = 1
namespace Common.Utilities module IntHelper = let add x y = x + y