Re: [go-nuts] Re: no direct write to a complex types components?

2024-11-09 Thread 'Dan Kortschak' via golang-nuts
On Sat, 2024-11-09 at 17:01 -0800, 'simon place' via golang-nuts wrote: > > > That's because Complex numbers are immutable - just like strings, > > and regular numbers for that matter. > > > > Hence to replace one component of a complex number, you have to > > create a new complex number. > > htt

[go-nuts] Re: no direct write to a complex types components?

2024-11-09 Thread 'simon place' via golang-nuts
That's because Complex numbers are immutable - just like strings, and regular numbers for that matter. Hence to replace one component of a complex number, you have to create a new complex number. https://go.dev/play/p/Cf06Ui6fR59 new_imag := 3.0 a = complex(real(a), new_imag) really, string

[go-nuts] Re: no direct write to a complex types components?

2024-11-09 Thread 'Brian Candler' via golang-nuts
On Saturday 9 November 2024 at 00:25:21 UTC simon place wrote: but whereas you can read a component... real com.:=Real(cmplx) imaginary com.:=Imag(cmplx) i can't see any way to write to a component. That's because Complex numbers are immutable - just like strings, and regular numbers for that

Re: [go-nuts] LLM development toolkit.

2024-11-09 Thread alex-coder
Thanks everyone ! I forgot to provide the checksum for the archive. Sorry. пятница, 8 ноября 2024 г. в 20:17:24 UTC+3, scott beeker: > You might like this > > dev.to/pullreview/creating-a-remote-git-hub-for-your-companywithout-github-1fdb > On Friday, November 8, 2024 at 8:34:55 AM UTC-8 Dimas