Fork me on GitHub
#clojure-uk
<
2017-04-18
>
Rachel Westmacott08:04:31

random core function of the day:

-------------------------
clojure.core/case
([e & clauses])
Macro
  Takes an expression, and a set of clauses.

  Each clause can take the form of either:

  test-constant result-expr

  (test-constant1 ... test-constantN)  result-expr

  The test-constants are not evaluated. They must be compile-time
  literals, and need not be quoted.  If the expression is equal to a
  test-constant, the corresponding result-expr is returned. A single
  default expression can follow the clauses, and its value will be
  returned if no clause matches. If no default expression is provided
  and no clause matches, an IllegalArgumentException is thrown.

  Unlike cond and condp, case does a constant-time dispatch, the
  clauses are not considered sequentially.  All manner of constant
  expressions are acceptable in case, including numbers, strings,
  symbols, keywords, and (Clojure) composites thereof. Note that since
  lists are used to group multiple constants that map to the same
  expression, a vector can be used to match a list if needed. The
  test-constants need not be all of the same type.

Rachel Westmacott08:04:05

(if this gets annoying I am happy to desist)

Rachel Westmacott08:04:13

(or move it to another channel)

thomas08:04:33

I like it as well.

reborg08:04:10

Very useful indeed!

Sam H09:04:21

👍 keep going

thomas09:04:19

rumours of a snap election in the UK.... interesting one. especially if all the remain voters voted LibDem for a change 🙂

Rachel Westmacott09:04:43

I’m not sure anyone would trust the lib dems after their last spell in power

Rachel Westmacott09:04:06

but I’m also not sure who else I’d want to vote for at the moment…

thomas09:04:31

one could argue the LibDems actually stopped quite a few things...(and let go through quite a few as well unfortunately)....

Rachel Westmacott09:04:06

I’m not saying I wouldn’t vote for them - but their popularity took a hit

thomas09:04:54

it certainly did 2 years ago.... but eehhh... things have changed since... 😉

thomas09:04:13

well 30 more minutes and we'll find out..

thomas09:04:40

mind you... I should have sold me pounds earlier this morning. Pound is going down like a stone at the moment.

Rachel Westmacott09:04:26

depending on what she says, they might rebound?

minimal09:04:41

it was at a local peak this morning anyway

minimal10:04:34

GE 8th june

thomas10:04:12

good luck with that folks...

minimal10:04:58

“stability”

thomas10:04:35

sounds like an oxymoron in this context TBH.

agile_geek10:04:14

It's just a cynical attempt by the Tory party to extend their time in Government by riding a wave of populism now so they've another 5 years in power. It's like the causal equivalent of gerrymandering

thomas11:04:26

well the pound has gone up... going to sell remaining sterling soon

yogidevbear13:04:30

Oh FFS Because, consistency Morning all

yogidevbear13:04:29

Don't know why I'd expect anything different from a politician. Complete 180s at the drop of a hat

thomas15:04:49

funny old world: The Lib Dems claim they have gained 2,500 new members since the general election was called this morning.

seancorfield16:04:44

@yogidevbear She’s taken a lead from Herr Drumpf who’s been doing 180's on almost everything lately 🙂

yogidevbear16:04:13

Yeah, I noticed that too 😞

yogidevbear16:04:21

It's a crazy world

yogidevbear16:04:40

When's your flight?

seancorfield16:04:01

7:30pm Pacific tonight. We arrive 2:15pm tomorrow BST.

seancorfield16:04:28

We may be a bit late to the Hen & Chicken on Friday but hopefully not by much.

yogidevbear16:04:31

Exciting 🙂 I was in the vet today and noticed a flyer for a catstravaganza in Warnham this Saturday

seancorfield16:04:11

We’ll be driving up from Sidmouth (visiting a cousin I haven’t seen since I was a child) to Ripley where we’re staying for the rest of the trip, to check-in, then we’ll head down to Southwater.

seancorfield16:04:00

The cat show we’ll be at is in the Leather Leisure Center, both Saturday and Sunday. In case any of y’all want to come to a cat show this weekend? 😸

yogidevbear16:04:31

Unfortunately @thomas is out of the country at the moment 😉 Mogge 😸