Tomohiro Matsuyama
Tomohiro Matsuyama
Something like this: ``` Variable pattern: O(1) Constructor pattern: O(n) where n = arity of the constructor ```
## References - [Compiling pattern matching to good decision trees](http://dl.acm.org/citation.cfm?id=1411311) - [The Implementation of Functional Programming Languages](http://research.microsoft.com/en-us/um/people/simonpj/papers/slpj-book-1987/index.htm)
``` # Uri.get_query_param' (Uri.of_string "/?a=1&a=2") "a";; - : string list option = Some ["1"] ``` This code is expected to return `Some ["1"; "2"]`.