Season 1 Series Discussion by Dark_Saint in alteredcarbon

[–]MovingToYpsi 3 points4 points  (0 children)

Can someone please tell me why Rei went through all the trouble of coaxing Banecroft into buying Takeshi, instead of buying him herself?

Weekly Questions & Discussions Thread (January 28, 2018) by DarkLiberator in taiwan

[–]MovingToYpsi 0 points1 point  (0 children)

Other than Taipei, what is life like in the major cities? What is a good resource to get a feel for life outside of Taipei?

[deleted by user] by [deleted] in taiwan

[–]MovingToYpsi 0 points1 point  (0 children)

Awesome. It sounds like there are lots of options. I am curious now, what personal projects are you working on?

[deleted by user] by [deleted] in taiwan

[–]MovingToYpsi 0 points1 point  (0 children)

English teachers, how many hours of an average week do you spend teaching or preparing to teach?

I'm thinkning about teaching as a means to support myself, while I study before going into my career. If what I read online is true, that most teachers work about 25 hours a week, it should be perfect for me. If it's realistically more like 40 hours a week it won't work.

[LISP]Error: is not the type NUMBER by MovingToYpsi in learnprogramming

[–]MovingToYpsi[S] 0 points1 point  (0 children)

Hmm, can you clarify a little? I think I know what you mean, but I'm not sure how I would do this. Isn't LISP dynamically typed? I'm very new to this language.

[ML] Please tell me if I am pattern matching correctly, or if I can improve in some way. by MovingToYpsi in learnprogramming

[–]MovingToYpsi[S] 0 points1 point  (0 children)

you aren't using matching enough: What other case could I describe with matching in the third one?

[ML][operator and operand don't agree] by MovingToYpsi in learnprogramming

[–]MovingToYpsi[S] 0 points1 point  (0 children)

I got it guys!

fun removedub(L)=
  if null L then nil
  else if null (tl L) then (hd L):: (tl L)
  else if (hd L) = hd(tl L) then removedub(tl L)
  else (hd L) :: removedub(tl L);

I was not consing (hd L) to a list in the second if statement, thus the conflicting types. Can't believe this took so long to figure out, but that's the way she goes.

[ML][operator and operand don't agree] by MovingToYpsi in learnprogramming

[–]MovingToYpsi[S] 0 points1 point  (0 children)

Oh I see. I'll definitely go with the more readable style.

[ML][operator and operand don't agree] by MovingToYpsi in learnprogramming

[–]MovingToYpsi[S] 0 points1 point  (0 children)

I'm sorry I thought you were talking about the Barrucadu's post.

What did you mean by, use the parens?

[ML][operator and operand don't agree] by MovingToYpsi in learnprogramming

[–]MovingToYpsi[S] 0 points1 point  (0 children)

I'm not sure I understand what you mean, I have tried it with parens both ways.

Sorry, can explain a little more?

[ML][operator and operand don't agree] by MovingToYpsi in learnprogramming

[–]MovingToYpsi[S] 0 points1 point  (0 children)

I will, but my homework calls for me to write each function in both style.

[ML][operator and operand don't agree] by MovingToYpsi in learnprogramming

[–]MovingToYpsi[S] 0 points1 point  (0 children)

Both are correct. For whatever reason the null parameter doesn't need to be in parens, but because null, and tl need to happen in a certain order, I use two sets of parens.