lambda’s?


lambda’s?

first page into a tutorial website and its showing me anonymous functions, its striking me as lambdas, does scala have lambdas? if not if I only use one anonymous function in a script, can I call it lambda, or is it a reserved word or something?

Submitted February 20, 2017 at 11:14PM by 955559
via reddit http://ift.tt/2kEtp62

Can I alter elements of a landing page depending on where the user navigates from?


Can I alter elements of a landing page depending on where the user navigates from?

So, I'm new to JS and i'm trying to learn just by creating a project and then implementing it. Right now, I have this idea that depending on where the user comes from within my page, the background or some other elements will be determined by the previous location of the user.

I know I can just create multiple pages, but that seems like hammering a round peg through a square hole.

If you want to know exactly what I'm planning, it will be to display groups of Robert Frost poems based on certain similarities or categories.

I plan on using JS to insert the poems into the page, and of course there's similarities amongst much of his writings. But say I want a link to go to a group of his poems about winter, I want the elements to reflect that. But then, maybe I want to link to a group of his poems about birds, this will contain a few of his winter poems, as well of course. So maybe I want just one page to link to, and the appropriate items are displayed based on the originating link, and not writing and rewriting all of my HTML.

Is this possible?

Submitted February 20, 2017 at 10:52PM by slacovdael
via reddit http://ift.tt/2lDtx5D