You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
even less consistently in the playground but it still happens every 2nd run, the other half of outputs is the same as the next step
always the same on my home machine
If I comment out the line d[Lit(fmt.Sprint(perm))] = Index().Int().Values(spell(Cast(Lit, Anify(perm)))...), I get:
%!v(PANIC=GoString method: unsupported type for literal: []int)
which may also be output in playground with both lines uncommented
I don't think this should happen at all if it can actually print a slice literal, maybe this is a language issue, but maybe there's something worth exploiting here?
this part is a little less relevant, mainly just shows
If I, instead, comment out the line d[Lit(fmt.Sprint(perm))] = Lit(perm), I get:
This could well be better placed in the Go issue tracker, sorry if so.
playground
If I run the code I, usually (see the bullet), get the following output:
If I comment out the line
d[Lit(fmt.Sprint(perm))] = Index().Int().Values(spell(Cast(Lit, Anify(perm)))...)
, I get:this part is a little less relevant, mainly just shows
If I, instead, comment out the line
d[Lit(fmt.Sprint(perm))] = Lit(perm)
, I get:Which is what I wanted all along
May I also suggest adding conversion functions
func([]T)[]interface{}
andfunc([]*Statement)[]Code
to the library (assuming they aren't already there)The text was updated successfully, but these errors were encountered: