Frostillicus has quit [Ping timeout: 276 seconds]
Frostillicus has joined #ocaml
Frostillicus has quit [Ping timeout: 276 seconds]
myrkraverk__ has joined #ocaml
myrkraverk_ has quit [Ping timeout: 260 seconds]
humasect has joined #ocaml
Frostillicus has joined #ocaml
Frostillicus has quit [Ping timeout: 252 seconds]
humasect_ has joined #ocaml
humasect has quit [Ping timeout: 276 seconds]
humasect_ is now known as humasect
toastal has left #ocaml [#ocaml]
humasect has quit [Remote host closed the connection]
<
discocaml>
<nanodijkstra> I’m going over the jane street ocaml bootcaml and am completely stumped by this problem
<
discocaml>
<nanodijkstra>
<
discocaml>
<nanodijkstra> write a function that creates a list from range from and to_. The list must include from and exclude to_
<
discocaml>
<nanodijkstra>
<
discocaml>
<nanodijkstra> and i wrote something like:
<
discocaml>
<nanodijkstra>
<
discocaml>
<nanodijkstra> let range from to_ =
<
discocaml>
<nanodijkstra> match from with
<
discocaml>
<nanodijkstra> | _ -> from :: range from+1 to_
<
discocaml>
<nanodijkstra> | to_ -> (* have no idea how to discard this element *)
<
discocaml>
<nanodijkstra> ;;
<
discocaml>
<nanodijkstra>
<
discocaml>
<nanodijkstra> any hints would be appreciated! i’m trying to solve this through pure logic and not w anything i haven’t learned yet.
<
discocaml>
<nanodijkstra>
casastorta has joined #ocaml
<
discocaml>
<nanodijkstra> I’m going over the jane street ocaml bootcaml and am completely stumped by this problem
<
discocaml>
<nanodijkstra>
<
discocaml>
<nanodijkstra> write a function that creates a list from range from and to_. The list must include from and exclude to_
<
discocaml>
<nanodijkstra>
<
discocaml>
<nanodijkstra> and i wrote something like:
<
discocaml>
<nanodijkstra> ~~~ocaml
<
discocaml>
<nanodijkstra> let range from to_ =
<
discocaml>
<nanodijkstra> match from with
<
discocaml>
<nanodijkstra> | _ -> from :: range from+1 to_
<
discocaml>
<nanodijkstra> | to_ -> (* have no idea how to discard this element *)
<
discocaml>
<nanodijkstra> ;;
<
discocaml>
<nanodijkstra> ~~~
<
discocaml>
<nanodijkstra> any hints would be appreciated! i’m trying to solve this through pure logic and not w anything i haven’t learned yet.
<
discocaml>
<nanodijkstra>
<
discocaml>
<nanodijkstra> I’m going over the jane street ocaml bootcaml and am completely stumped by this problem
<
discocaml>
<nanodijkstra>
<
discocaml>
<nanodijkstra> write a function that creates a list from range from and to_. The list must include from and exclude to_
<
discocaml>
<nanodijkstra>
<
discocaml>
<nanodijkstra> and i wrote something like:
<
discocaml>
<nanodijkstra>
<
discocaml>
<nanodijkstra> let range from to_ =
<
discocaml>
<nanodijkstra> match from with
<
discocaml>
<nanodijkstra> | _ -> from :: range from+1 to_
<
discocaml>
<nanodijkstra> | to_ -> (* have no idea how to discard this element *)
<
discocaml>
<nanodijkstra> ;;
<
discocaml>
<nanodijkstra>
<
discocaml>
<nanodijkstra> any hints would be appreciated! i’m trying to solve this through pure logic and not w anything i haven’t learned yet.
<
discocaml>
<nanodijkstra>
<
discocaml>
<Kali> 1) please use the #beginners channel for questions
<
discocaml>
<Kali> 2) please format the code with triple back ticks on a (separate) beginning and end line like this: \`\`\`ocaml
<
discocaml>
<Kali> code
<
discocaml>
<Kali> \`\`\`
<
discocaml>
<Kali> editing in this channel also resends the message to the irc bridge so please avoid that in the future
<
discocaml>
<nanodijkstra> ah my bad, will do
toastal has joined #ocaml
Frostillicus has joined #ocaml
Frostillicus has quit [Ping timeout: 252 seconds]
Frostillicus has joined #ocaml
Frostillicus has quit [Ping timeout: 248 seconds]
bartholin has joined #ocaml
Serpent7776 has joined #ocaml
toastal has left #ocaml [#ocaml]
end has quit [Ping timeout: 268 seconds]
bcksl has quit [Ping timeout: 276 seconds]
Absalom has joined #ocaml
toastal has joined #ocaml
szkl has quit [Quit: Connection closed for inactivity]
bcksl has joined #ocaml
end has joined #ocaml
hanker has quit [Ping timeout: 260 seconds]
toastal has quit [Ping timeout: 248 seconds]
toastal has joined #ocaml
LainIwakura has joined #ocaml
bartholin has quit [Remote host closed the connection]
<
discocaml>
<shalokshalom> and to restart them properly, you need pre-emptive scheduling.
toastal has quit [Quit: Gateway shutdown]
Frostillicus has joined #ocaml
toastal has joined #ocaml
Frostillicus has quit [Ping timeout: 252 seconds]
Frostillicus has joined #ocaml
LainIwakura has quit [Quit: Client closed]
pi3ce has joined #ocaml
Frostillicus has quit [Ping timeout: 276 seconds]
hanker has joined #ocaml
LainIwakura has joined #ocaml
myrkraverk_ has joined #ocaml
LainIwakura has quit [Ping timeout: 272 seconds]
myrkraverk__ has quit [Ping timeout: 244 seconds]
Putonlalla1 has joined #ocaml
Putonlalla has quit [Killed (NickServ (GHOST command used by Putonlalla1))]
Putonlalla1 is now known as Putonlalla
Frostillicus has joined #ocaml
Frostillicus has quit [Ping timeout: 248 seconds]
bartholin has joined #ocaml
wbooze has joined #ocaml
chiselfuse has quit [Ping timeout: 244 seconds]
chiselfuse has joined #ocaml
euphores has quit [Quit: Leaving.]
euphores has joined #ocaml
Exa has quit [Quit: see ya!]
Exa has joined #ocaml
divya has quit [Remote host closed the connection]
YuGiOhJCJ has joined #ocaml
divya has joined #ocaml
Frostillicus has joined #ocaml
Frostillicus has quit [Ping timeout: 245 seconds]
<
discocaml>
<rbjorklin> I'm not seeing a moderation channel so posting here. Do we ban users for spam?
<
discocaml>
<cod1r> usually people will @ Moderator
<
discocaml>
<cod1r> or just block
<
discocaml>
<cod1r> at least that's what i do
toastal has quit [Ping timeout: 248 seconds]
wbooze has quit [Quit: Leaving]
toastal has joined #ocaml
wbooze has joined #ocaml
wbooze has quit [Remote host closed the connection]
bartholin has quit [Quit: Leaving]
wbooze has joined #ocaml
Haudegen has joined #ocaml
Frostillicus has joined #ocaml
Frostillicus has quit [Ping timeout: 248 seconds]
wbooze has quit [Quit: Leaving]
inline has quit [Quit: Leaving]
johnridesabike has quit [Quit: johnridesabike]
Serpent7776 has quit [Ping timeout: 248 seconds]
Frostillicus has joined #ocaml
Frostillicus has quit [Ping timeout: 248 seconds]
wbooze has joined #ocaml
wbooze has quit [Quit: Leaving]
Haudegen has quit [Quit: Bin weg.]
Frostillicus has joined #ocaml
Tuplanolla has joined #ocaml
wbooze has joined #ocaml
wbooze has quit [Quit: Leaving]