weatherlight
searching PlanetScale…
- 1.▲
- 2.▲
- 3.▲
- 4.▲
- 5.▲
- 6.▲
8 ms·
- 61.▲
- 62.▲
- 63.▲
- 64.▲
- 65.▲
- 66.▲
- 67.▲
- 68.▲
- 69.▲
- 70.▲
its not quite the same. you have to write quiet a bit of OCaml or Haskell to do the following. [foo, [2, 3, bar], baz, 5] = [1,[2,3,4], 5] If there's a match, the bindings "foo", "bar", "baz" will be bound - 71.▲
It's not the same. > [a, 2, 2, b] = [1, 2, 2, 3]
[1, 2, 2, 3]
> a
1
> b
3
> [foo, 2, bar] = [3,3,3]
%MatchError{term: [3, 3, 3]}
> foo
%CompileError{description: "undefined - 72.▲
- 73.▲
- 74.▲
- 75.▲
- 76.▲
- 77.▲
- 78.▲
- 79.▲
- 80.▲
- 81.▲
- 82.▲
- 83.▲
- 84.▲
- 85.▲
- 86.▲
- 87.▲
- 88.▲
- 89.▲
- 90.▲
More ›