cueckoo
cueckoo
_Original reply by @jba in https://github.com/cuelang/cue/issues/78#issuecomment-527859884_ Or maybe generalize unary comparators by picking a token to mean "the value of this field": ``` foo: $ < 5 bar: list.Sum($) ==...
_Original reply by @xinau in https://github.com/cuelang/cue/issues/78#issuecomment-527867573_ I'm still not sure if CUE needs a function like `list.Sum` if we add a `reduce` functionality to list comprehension. The plus side of...
_Original reply by @xinau in https://github.com/cuelang/cue/issues/78#issuecomment-527878854_ @jba I like your idea of generalizing unary comparators, but maybe instead of introducing a new token we could do something similar to auto-currying...
_Original reply by @joshburkart in https://github.com/cuelang/cue/issues/78#issuecomment-531331490_ I think I'd like a `sum` builtin... For example, say I have a list comprehension that produces a list of lists. I then want...
_Original reply by @xinau in https://github.com/cuelang/cue/issues/78#issuecomment-532341327_ @joshburkart the sum built-in is available with cue version [v0.0.9](https://github.com/cuelang/cue/releases/tag/v0.0.9) under `list.Sum`. A flatten function is being worked on ;) but if you know...
_Original reply by @mpvl in https://github.com/cuelang/cue/issues/770#issuecomment-779291340_ This could be. As the release notes remarked (IIRC), the implementation is not entirely correct. We have slightly changed the definition and reimplemented it....
_Original reply by @eonpatapon in https://github.com/cuelang/cue/issues/770#issuecomment-779293341_ Not really as I can just use `string` instead of the disjunction in the meantime. And that will work
_Original reply by @eonpatapon in https://github.com/cuelang/cue/issues/770#issuecomment-779298450_ Thanks for the quick intial fix btw :)
_Original reply by @verdverm in https://github.com/cuelang/cue/issues/1026#issuecomment-854270594_ Some thoughts - Go struct tags are much like CUE attributes, in that they are purely string based metadata for tools build to read...
_Original reply by @mpvl in https://github.com/cuelang/cue/issues/772#issuecomment-779762917_ Yes, slices were once supported, but were removed from the language spec as their semantics was complicated and not desirable. At some point during...