Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update fold-db example to be syntactically correct #1021

Merged
merged 1 commit into from
Aug 10, 2022
Merged

Update fold-db example to be syntactically correct #1021

merged 1 commit into from
Aug 10, 2022

Conversation

Luzzotica
Copy link
Contributor

Turned
(f (lambda (x) [(at 'firstName x), (at 'b x)]))
into
(f (lambda (k obj) [(at 'firstName obj), (at 'b obj)]))

Because the consumer must accept two arguments as described in the doc string, the key and the object (Row).

Turned 
`(f (lambda (x) [(at 'firstName x), (at 'b x)]))`
into
`(f (lambda (k obj) [(at 'firstName obj), (at 'b obj)]))`

Because the consumer must accept two arguments as described in the doc string, the key and the object (Row).
Copy link
Member

@emilypi emilypi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch! thanks @Luzzotica

@emilypi emilypi merged commit 899539c into kadena-io:master Aug 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants