Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vito/566058 to your computer and use it in GitHub Desktop.
Save vito/566058 to your computer and use it in GitHub Desktop.
> { [a, @+] -> 0 } contents head targets head as: Pattern
<pattern [a, @+]>
> { [a, @+] -> 0 } contents head targets head (as: Pattern) matches?: [1, 2]
@no
> { [a, @+] -> 0 } contents head targets head (as: Pattern) matches?: [1, @+]
@(yes: <object>)
> @(yes: o) = { [a, @+] -> 0 } contents head targets head (as: Pattern) matches?: [1, @+]
@(yes: <object>)
> o a
1
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment