May I suggest the following additions/edits to 11l docs?
I'm looking forward to hear your opinion on these changes.
Regards.
MODULE RANDOM
- The doc is missing the seed function. It should be added (especially since it already exists in random.hpp)
BUILT-IN TYPES
- I feel like it's not explained clearly enough how someone could, for example, declare an empty DefaultDict String -> Int.
- In Dict it tells you that a dictionary String -> Int is [String = Int], which is fine. but how to make a DefaultDict?
- By trial and error you eventually find out you can declare it as DefaultDict[String, Int]
- Same applies to Set and Deque.
- They're declared as Set[type] and Deque[type], respectively
- On a similar note as the precedent points, it should probably be more clear that:
- A dictionary can either be declared as Dict[keyType, valueType] or as [keyType = valueType]
- An array can either be declared as [type] or as Array[type]
- A tuple can either be declared as (type1, type2, ...) or as Tuple[type1, type2, ...]
F/fn KEYWORD
- Named-only arguments could use a line of text that explains why "habr_html" is the named only argument (because it's preceded by a ' argument)
OTHER/UNCATEGORIZED
- I couldn't find anywhere in the doc where it's explained how to use command-line arguments.
- By looking on Rosetta Code you find out that :argv exists and that also :start: exists!
I'm looking forward to hear your opinion on these changes.
Regards.