question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build Validation from List

See original GitHub issue

Hello,

Is there a reason why we can not build a Validation from list through apply() method as

Validation(List(Ok, KO, KO))

Currently, I have to use Traditional approach with the new operator. We could add the apply(l:List) in companion object of Validation class, what do you think about it ?

Many thanks for you help,

Fabrice

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Fabszncommented, Feb 17, 2017

Aaah yes!! You right! 👍 I forgot this operator and it fully answer to my need

Many thanks!

0reactions
loicdescottecommented, Feb 17, 2017

Hi @Fabszn and @dgouyette ,

I think you can use the ":_* " syntax, that converts a list to varargs :

val eithers = List(Ok, KO, KO)
val validation = Validation(eithers :_*)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Excel Drop Down Lists - Data Validation - Contextures
Easy steps to make drop down list wth Excel data validation. Show list of valid entries, reduce data entry errors.
Read more >
Create a drop-down list - Microsoft Support
Select the cell in the worksheet where you want the drop-down list. Go to the Data tab on the Ribbon, then Data Validation...
Read more >
Custom Data Validation in Excel : formulas and rules - Ablebits
The tutorial shows how to make custom Data Validation rules in Excel. You will find a few examples of Excel data validation formulas...
Read more >
How to Create a Drop Down List in Excel (the Only Guide You ...
Here are the steps to create an Excel Drop Down List: Select a cell where you want to create the drop down list....
Read more >
Create Validation List (CRTVLDL) - IBM
Validation list (VLDL) Specifies the validation list to be created. This is a required parameter. Specify the name to be given to the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found