Thanks! This works.
func main() {
var n int
s := os.Args[1]
n, err := strconv.Atoi(s)
if err != nil {panic(err)}
On Thursday, February 13, 2025 at 5:23:10 PM UTC-5 Ian Lance Taylor wrote:
> On Thu, Feb 13, 2025 at 2:12 PM Jabari Zakiya wrote:
> >
> > I want to i
I want to input an integer directly after the function
$ ./myfunction n (CR)
not
$ ./myfunction (CR)
n (CR)
None of my search results explains how to do this.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group
nc(n uint) bool { return
> slices.Contains(lhr_del, n) })
>
> Jabari Zakiya:
> > I have two slice, lhr and lhr_dels.
> > I want to remove everything in lhr_dels from lhr.
> >
> > I tried these:
> >
> > lhr = slices.DeleteFunc(lhr, func(n uint) []uint {
I have two slice, lhr and lhr_dels.
I want to remove everything in lhr_dels from lhr.
I tried these:
lhr = slices.DeleteFunc(lhr, func(n uint) []uint { return lhr_del})
or
lhr = slices.Delete(lhr, lhr_del)
and can't figure out from the error messages|docs how to fix it.
Can someone set me strai
Hi
I primarly use Ruby for math/science problems/projects because it's so easy
to program in, and it allows me to think about how to solve problems
without worrying about how to code it. I've also played around with Crystal
(aka Ruby on steroids) but it's still young, and doesn't let me (curren